/* ===========================================================================
   Catchline — shared UI layer
   ---------------------------------------------------------------------------
   The design tokens below are copied verbatim from catchline.html. That file
   keeps its own inline copy on purpose: the analyzer must stay a single
   self-contained file that works with nothing beside it. Everything else in
   the suite (index, crew, program, viewer) loads this stylesheet instead.

   If a token changes here, change it in catchline.html too. There is no build
   step and there is not going to be one.
   =========================================================================== */

@import url('vendor/fonts/fonts.css');

:root{
  --ink:#0A1613;
  --hull:#102420;
  --hull-2:#16302A;
  --line: rgba(237,234,224,0.10);
  --line-2: rgba(237,234,224,0.18);
  --chalk:#EDEAE0;
  --chalk-dim: rgba(237,234,224,0.62);
  --chalk-faint: rgba(237,234,224,0.34);
  --brass:#C79A56;
  --stroke:#5FD4C4;
  --stroke-dim: rgba(95,212,196,0.25);
  --alert:#E2725B;
  --good:#7FBF8F;
  --radius: 14px;
}

*{ box-sizing:border-box; }
html,body{ margin:0; padding:0; }
body{
  background:
    radial-gradient(1200px 600px at 15% -10%, rgba(95,212,196,0.06), transparent 60%),
    radial-gradient(900px 500px at 100% 0%, rgba(199,154,86,0.05), transparent 55%),
    var(--ink);
  background-attachment: fixed;
  color:var(--chalk);
  font-family:'IBM Plex Sans', sans-serif;
  min-height:100vh;
  -webkit-font-smoothing:antialiased;
}
::selection{ background:var(--stroke-dim); }
:focus-visible{ outline:2px solid var(--stroke); outline-offset:2px; border-radius:4px; }
a{ color:var(--stroke); }

.wrap{ max-width:1080px; margin:0 auto; padding: 28px 20px 80px; }
.wrap.wide{ max-width:1340px; }

/* ---------- TOP BAR / NAV ---------- */
header.top{
  display:flex; align-items:center; justify-content:space-between; gap:16px; flex-wrap:wrap;
  padding: 6px 2px 20px; border-bottom: 1px solid var(--line); margin-bottom: 28px;
}
.brand{ display:flex; align-items:center; gap:12px; text-decoration:none; color:inherit; }
.brand-mark{ width:30px; height:30px; flex-shrink:0; }
.brand-name{ font-family:'Space Grotesk', sans-serif; font-weight:700; font-size:19px; letter-spacing:0.01em; }
.brand-sub{ font-size:12px; color:var(--chalk-faint); font-family:'IBM Plex Mono', monospace; letter-spacing:0.03em; margin-top:1px; }
nav.modules{ display:flex; gap:4px; flex-wrap:wrap; }
nav.modules a{
  font-size:13px; color:var(--chalk-dim); text-decoration:none;
  padding:7px 12px; border-radius:9px; border:1px solid transparent; transition:.15s ease;
}
nav.modules a:hover{ color:var(--chalk); border-color:var(--line); }
nav.modules a.active{ color:var(--chalk); background:rgba(95,212,196,0.10); border-color:var(--stroke); }

/* ---------- SESSION CHIP (catchline-auth.js mounts into .session-slot) ----------
   Who is signed in, and the way out. Sits at the end of the top bar on every
   gated page. Empty and invisible when nobody is signed in — the login page
   itself has no chip. */
.session-slot{ display:flex; align-items:center; gap:9px; }
.session-slot:empty{ display:none; }
.session-role{
  font-family:'IBM Plex Mono', monospace; font-size:10.5px; letter-spacing:0.06em;
  text-transform:uppercase; padding:3px 8px; border-radius:6px;
  border:1px solid var(--stroke); color:var(--stroke); background:rgba(95,212,196,0.10);
}
/* One role signs in (coach), so there is nothing to tell apart by colour any
   more — the athlete variant was removed with the account. The word is always
   there regardless; colour alone was never the label (A8.1/A8.3). */
.session-user{ font-size:12.5px; color:var(--chalk-dim); }
/* The Lock button stays visible at every width — it is the one control that
   has to be reachable in a hurry on a machine someone else is about to use. */
@media (max-width:700px){ .session-user{ display:none; } }

/* ---------- SECTION FURNITURE ---------- */
.eyebrow{
  font-family:'IBM Plex Mono', monospace; font-size:11.5px; letter-spacing:0.08em;
  text-transform:uppercase; color:var(--brass); margin-bottom:8px;
}
h1.page-ttl{ font-family:'Space Grotesk', sans-serif; font-weight:700; font-size: clamp(26px,3.4vw,34px); margin:0 0 10px; letter-spacing:-0.01em; }
h2.section-ttl{ font-family:'Space Grotesk', sans-serif; font-weight:600; font-size:22px; margin:0 0 4px; }
h3.sub-ttl{ font-family:'Space Grotesk', sans-serif; font-weight:600; font-size:15px; margin:0 0 10px; }
p.section-sub{ font-size:13.5px; color:var(--chalk-faint); margin:0 0 20px; max-width:680px; line-height:1.55; }
.mono{ font-family:'IBM Plex Mono', monospace; }
.dim{ color:var(--chalk-dim); }
.faint{ color:var(--chalk-faint); }
.nowrap{ white-space:nowrap; }

.panel{
  background: linear-gradient(180deg, var(--hull), var(--hull-2));
  border:1px solid var(--line); border-radius: var(--radius); padding: 22px;
}
.card{ background:var(--hull); border:1px solid var(--line); border-radius:12px; padding:16px; }
.card + .card{ margin-top:12px; }

/* ---------- BANNER ---------- */
.banner{
  display:none; align-items:flex-start; gap:12px;
  padding:14px 16px; border-radius:10px; margin-bottom:22px;
  border:1px solid rgba(226,114,91,0.4); background:rgba(226,114,91,0.08);
  font-size:13.5px; line-height:1.55; color:var(--chalk-dim);
}
.banner.visible{ display:flex; }
.banner strong{ color:var(--chalk); display:block; font-family:'Space Grotesk'; font-size:14px; margin-bottom:3px; }
.banner .dot{ width:9px; height:9px; border-radius:50%; background:var(--alert); flex-shrink:0; margin-top:6px; }
.banner.info{ border-color:rgba(95,212,196,0.35); background:rgba(95,212,196,0.06); }
.banner.info .dot{ background:var(--stroke); }
.banner.warn{ border-color:rgba(199,154,86,0.4); background:rgba(199,154,86,0.08); }
.banner.warn .dot{ background:var(--brass); }
/* Built by banner() rather than authored into each page's markup — the rescue
   export button has to exist on every page that can show a save failure, and
   five hand-maintained copies is five chances for it to be missing on the one
   page a coach happens to be on. */
.banner-actions{ display:flex; flex-wrap:wrap; gap:8px; margin-top:10px; }

/* Raised by the <head> snippet on every gated page when catchline-auth.js is
   missing, so that "the sign-in is not running" is a thing on the screen and
   not a line in a console nobody opened. Full-bleed and above the nav on
   purpose — this one is not dismissible and should not look like the rest of
   the furniture. It is styled here rather than inline so a page with no
   stylesheet still gets readable default text rather than nothing. */
.gate-missing-note{
  position:sticky; top:0; z-index:120;
  padding:11px 18px; margin:0;
  background:var(--alert, #e2725b); color:#150c09;
  font-family:'Space Grotesk', system-ui, sans-serif;
  font-size:13px; font-weight:600; line-height:1.5; text-align:center;
}
@media print{ .gate-missing-note{ display:none; } }

/* ---------- BUTTONS ---------- */
.btn{
  font-family:'IBM Plex Sans'; font-size:13.5px; font-weight:500;
  padding: 10px 18px; border-radius: 9px; border:1px solid transparent;
  cursor:pointer; transition:.15s ease; letter-spacing:0.01em; white-space:nowrap;
}
.btn-primary{ background:var(--stroke); color:#08201B; font-weight:600; }
.btn-primary:hover{ background:#7FE0D2; }
.btn-primary:disabled{ background:rgba(95,212,196,0.25); color:rgba(8,32,27,0.5); cursor:not-allowed; }
.btn-ghost{ background:transparent; color:var(--chalk-dim); border-color:var(--line); }
.btn-ghost:hover{ color:var(--chalk); border-color:rgba(237,234,224,0.3); }
.btn-ghost:disabled{ opacity:.45; cursor:not-allowed; }
.btn-danger{ background:transparent; color:var(--alert); border-color:rgba(226,114,91,0.35); }
.btn-danger:hover{ background:rgba(226,114,91,0.10); }
.btn-sm{ padding:6px 11px; font-size:12.5px; border-radius:7px; }
.btn-icon{
  background:none; border:none; color:var(--chalk-faint); cursor:pointer;
  font-size:14px; padding:4px 6px; line-height:1; border-radius:6px;
}
.btn-icon:hover{ color:var(--chalk); background:rgba(237,234,224,0.06); }
.btn-row{ display:flex; gap:9px; flex-wrap:wrap; align-items:center; }

/* ---------- FORMS ---------- */
label.field{ display:block; margin-bottom:12px; }
label.field > span.lbl{
  display:block; font-size:11.5px; letter-spacing:0.05em; text-transform:uppercase;
  font-family:'IBM Plex Mono', monospace; color:var(--chalk-faint); margin-bottom:5px;
}
input[type=text], input[type=number], input[type=date], input[type=search],
input[type=time], input[type=password], select, textarea{
  width:100%; font-family:'IBM Plex Sans'; font-size:13.5px; color:var(--chalk);
  background:rgba(10,22,19,0.55); border:1px solid var(--line-2); border-radius:8px;
  padding:9px 11px; transition:.15s ease;
}
input.mono, .mono input{ font-family:'IBM Plex Mono', monospace; }
textarea{ min-height:74px; resize:vertical; line-height:1.5; }
input:hover, select:hover, textarea:hover{ border-color:rgba(237,234,224,0.28); }
input:focus, select:focus, textarea:focus{ outline:none; border-color:var(--stroke); background:rgba(10,22,19,0.8); }
input::placeholder, textarea::placeholder{ color:rgba(237,234,224,0.28); }
select{ appearance:none; cursor:pointer;
  background-image:linear-gradient(45deg,transparent 50%,rgba(237,234,224,0.45) 50%),linear-gradient(135deg,rgba(237,234,224,0.45) 50%,transparent 50%);
  background-position:calc(100% - 16px) 50%, calc(100% - 11px) 50%;
  background-size:5px 5px, 5px 5px; background-repeat:no-repeat; padding-right:30px;
}
select option{ background:var(--hull-2); color:var(--chalk); }
input[type=checkbox]{ accent-color:var(--stroke); width:15px; height:15px; }
.field-row{ display:grid; grid-template-columns:repeat(auto-fit,minmax(150px,1fr)); gap:0 14px; }
.hint{ font-size:11.5px; color:var(--chalk-faint); line-height:1.45; margin-top:-6px; margin-bottom:12px; }

/* ---------- TOOLBAR ---------- */
.toolbar{
  display:flex; gap:10px; align-items:center; flex-wrap:wrap;
  padding:12px 14px; background:var(--hull); border:1px solid var(--line);
  border-radius:12px; margin-bottom:18px;
}
.toolbar .grow{ flex:1 1 160px; min-width:120px; }
.toolbar input, .toolbar select{ padding:8px 10px; font-size:13px; }
.toolbar select{ width:auto; min-width:130px; }
.seg{ display:flex; gap:0; border:1px solid var(--line-2); border-radius:9px; overflow:hidden; }
.seg button{
  font-family:'IBM Plex Sans'; font-size:12.5px; padding:8px 14px; border:none;
  background:transparent; color:var(--chalk-faint); cursor:pointer; transition:.15s ease;
}
.seg button + button{ border-left:1px solid var(--line-2); }
.seg button:hover{ color:var(--chalk); }
.seg button.active{ background:rgba(95,212,196,0.12); color:var(--chalk); }

/* ---------- LINKED FILE LINE ----------
   Where a Save button used to sit. It states whether changes are reaching a
   .json on disk and, when they are not, carries the one click that fixes it —
   so the only time it asks for anything is the time the browser insists. */
.file-line{
  display:flex; align-items:center; gap:7px; flex-wrap:wrap;
  font-family:'IBM Plex Mono', monospace; font-size:11px; line-height:1.5;
  color:var(--chalk-faint);
}
.file-dot{ width:7px; height:7px; border-radius:50%; background:var(--chalk-faint); flex-shrink:0; }
.file-line.good .file-dot{ background:var(--good); }
.file-line.warn .file-dot{ background:var(--brass); }
.file-line.bad  .file-dot{ background:var(--alert); }
.file-line.warn .file-txt{ color:var(--brass); }
.file-line.bad  .file-txt{ color:var(--alert); }
/* A file name or an OS error message is arbitrary text with no spaces to break
   on, and this line lives in a narrow column. */
.file-txt{ min-width:0; overflow-wrap:anywhere; }
.file-act{
  font-family:'IBM Plex Sans', sans-serif; font-size:11px; padding:2px 8px;
  background:transparent; color:var(--chalk-dim); border:1px solid var(--line);
  border-radius:6px; cursor:pointer; transition:.15s ease; white-space:nowrap;
}
.file-act:hover{ color:var(--chalk); border-color:rgba(237,234,224,0.3); }
.file-act:disabled{ opacity:.45; cursor:not-allowed; }

/* ---------- CHIPS ---------- */
/* Chips render as <button> in the season view. Without an explicit background
   those get the UA's light ButtonFace, which swallows the pale chip text —
   only the variants below, which set their own, stayed readable. */
.chip{
  display:inline-flex; align-items:center; gap:5px;
  font-family:'IBM Plex Mono', monospace; font-size:10.5px; letter-spacing:0.04em;
  padding:3px 8px; border-radius:99px; border:1px solid var(--line-2);
  background:rgba(10,22,19,0.4); color:var(--chalk-dim); white-space:nowrap;
}
.chip.good{ color:var(--good); border-color:rgba(127,191,143,0.4); background:rgba(127,191,143,0.08); }
.chip.warn{ color:var(--brass); border-color:rgba(199,154,86,0.4); background:rgba(199,154,86,0.08); }
.chip.bad{ color:var(--alert); border-color:rgba(226,114,91,0.4); background:rgba(226,114,91,0.08); }
.chip.accent{ color:var(--stroke); border-color:rgba(95,212,196,0.4); background:rgba(95,212,196,0.08); }
/* Last, so it lifts a variant's own tint instead of replacing it. */
button.chip:hover{ border-color:rgba(237,234,224,0.32); filter:brightness(1.35); }
.chip-row{ display:flex; gap:6px; flex-wrap:wrap; }

/* ---------- STATS ---------- */
.stat-grid{ display:grid; grid-template-columns:repeat(4,1fr); gap:12px; }
.stat-grid.three{ grid-template-columns:repeat(3,1fr); }
@media (max-width:720px){ .stat-grid, .stat-grid.three{ grid-template-columns:repeat(2,1fr); } }
.stat-card{ background:var(--hull); border:1px solid var(--line); border-radius:12px; padding:15px; }
.stat-val{ font-family:'IBM Plex Mono', monospace; font-size:24px; font-weight:600; color:var(--stroke); line-height:1.05; }
.stat-val.small{ font-size:19px; }
.stat-val.warn{ color:var(--brass); }
.stat-val.bad{ color:var(--alert); }
.stat-val.neutral{ color:var(--chalk); }
.stat-lbl{ font-size:11.5px; color:var(--chalk-faint); margin-top:7px; letter-spacing:0.01em; }

/* ---------- TABLES ---------- */
.table-wrap{ overflow-x:auto; border:1px solid var(--line); border-radius:12px; background:var(--hull); }
table.data{ width:100%; border-collapse:collapse; font-size:13px; min-width:520px; }
table.data th{
  text-align:left; font-family:'IBM Plex Mono', monospace; font-weight:500;
  font-size:10.5px; letter-spacing:0.06em; text-transform:uppercase; color:var(--chalk-faint);
  padding:11px 14px; border-bottom:1px solid var(--line); white-space:nowrap;
  background:rgba(10,22,19,0.35); position:sticky; top:0;
}
table.data td{ padding:11px 14px; border-bottom:1px solid var(--line); vertical-align:middle; }
table.data tr:last-child td{ border-bottom:none; }
table.data tbody tr:hover{ background:rgba(237,234,224,0.03); }
table.data td.num, table.data th.num{ text-align:right; font-family:'IBM Plex Mono', monospace; }
table.data td.act{ text-align:right; white-space:nowrap; width:1%; }

/* ---------- EMPTY STATES ---------- */
.empty{
  padding:34px 22px; text-align:center; color:var(--chalk-faint); font-size:13px; line-height:1.6;
  border:1.5px dashed rgba(237,234,224,0.14); border-radius:12px;
}
.empty b{ display:block; font-family:'Space Grotesk'; font-size:14.5px; color:var(--chalk-dim); margin-bottom:5px; font-weight:600; }

/* ---------- SPLIT LAYOUT ---------- */
.split{ display:grid; grid-template-columns: 306px 1fr; gap:18px; align-items:start; }
@media (max-width:900px){ .split{ grid-template-columns:1fr; } }
.side-list{ background:var(--hull); border:1px solid var(--line); border-radius:12px; overflow:hidden; }
.side-group-ttl{
  font-family:'IBM Plex Mono', monospace; font-size:10.5px; letter-spacing:0.07em; text-transform:uppercase;
  color:var(--brass); padding:11px 14px 7px; border-bottom:1px solid var(--line);
  background:rgba(10,22,19,0.3);
}
.side-item{
  display:flex; align-items:center; gap:10px; width:100%; text-align:left;
  padding:11px 14px; border:none; border-bottom:1px solid var(--line);
  background:transparent; color:var(--chalk); cursor:pointer; font-family:'IBM Plex Sans'; font-size:13.5px;
  transition:.12s ease;
}
.side-item:hover{ background:rgba(237,234,224,0.04); }
.side-item.active{ background:rgba(95,212,196,0.10); box-shadow: inset 3px 0 0 var(--stroke); }
.side-item .who{ flex:1; min-width:0; }
.side-item .who b{ display:block; font-weight:500; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.side-item .who span{ display:block; font-size:11px; color:var(--chalk-faint); font-family:'IBM Plex Mono'; margin-top:2px; }
.avatar{
  width:30px; height:30px; border-radius:50%; flex-shrink:0;
  display:flex; align-items:center; justify-content:center;
  font-family:'IBM Plex Mono'; font-size:11px; font-weight:600;
  background:rgba(95,212,196,0.12); color:var(--stroke); border:1px solid rgba(95,212,196,0.25);
}
.avatar.lg{ width:46px; height:46px; font-size:16px; }

/* ---------- TABS ---------- */
.tabs{ display:flex; gap:2px; border-bottom:1px solid var(--line); margin-bottom:18px; overflow-x:auto; }
.tabs button{
  font-family:'IBM Plex Sans'; font-size:13px; padding:10px 15px; border:none; background:none;
  color:var(--chalk-faint); cursor:pointer; border-bottom:2px solid transparent; margin-bottom:-1px;
  white-space:nowrap; transition:.15s ease;
}
.tabs button:hover{ color:var(--chalk-dim); }
.tabs button.active{ color:var(--chalk); border-bottom-color:var(--stroke); }
.tab-panel{ display:none; }
.tab-panel.visible{ display:block; }

/* ---------- MODAL ---------- */
.modal-back{
  position:fixed; inset:0; background:rgba(6,14,12,0.72); backdrop-filter:blur(3px);
  display:none; align-items:flex-start; justify-content:center; padding:6vh 18px 40px; z-index:60; overflow-y:auto;
}
.modal-back.visible{ display:flex; }
.modal{
  background: linear-gradient(180deg, var(--hull), var(--hull-2));
  border:1px solid var(--line-2); border-radius:var(--radius); padding:24px;
  width:100%; max-width:620px; box-shadow:0 24px 60px rgba(0,0,0,0.5);
}
.modal.wide{ max-width:860px; }
.modal-head{ display:flex; align-items:flex-start; justify-content:space-between; gap:16px; margin-bottom:18px; }
.modal-head h3{ font-family:'Space Grotesk'; font-weight:600; font-size:18px; margin:0 0 3px; }
.modal-head p{ font-size:12.5px; color:var(--chalk-faint); margin:0; line-height:1.5; }
.modal-actions{ display:flex; gap:9px; justify-content:flex-end; margin-top:20px; flex-wrap:wrap; }

/* ---------- TOAST ---------- */
#clToast{
  position:fixed; left:50%; bottom:28px; transform:translateX(-50%) translateY(14px);
  background:var(--hull-2); border:1px solid var(--line-2); border-radius:10px;
  padding:11px 18px; font-size:13px; color:var(--chalk); z-index:90;
  box-shadow:0 12px 30px rgba(0,0,0,0.45); opacity:0; pointer-events:none; transition:.2s ease;
  max-width:min(560px, 90vw); line-height:1.45;
}
#clToast.show{ opacity:1; transform:translateX(-50%) translateY(0); }
#clToast.bad{ border-color:rgba(226,114,91,0.5); }
#clToast.good{ border-color:rgba(127,191,143,0.45); }

/* ---------- CALENDAR / PROGRAM ---------- */
.cal-grid{ display:grid; grid-template-columns:repeat(7,1fr); gap:8px; }
.cal-head{
  font-family:'IBM Plex Mono', monospace; font-size:10.5px; letter-spacing:0.07em;
  text-transform:uppercase; color:var(--chalk-faint); padding:0 0 6px 3px;
}
.cal-cell{
  background:var(--hull); border:1px solid var(--line); border-radius:10px;
  padding:8px; min-height:104px; display:flex; flex-direction:column; gap:5px;
}
.cal-cell.dim{ opacity:0.42; }
.cal-cell.today{ border-color:var(--stroke); box-shadow:0 0 0 1px rgba(95,212,196,0.25); }
.cal-date{ font-family:'IBM Plex Mono', monospace; font-size:11px; color:var(--chalk-faint); display:flex; justify-content:space-between; }
.cal-date b{ color:var(--chalk-dim); font-weight:500; }
@media (max-width:820px){
  .cal-grid{ grid-template-columns:1fr; }
  .cal-head{ display:none; }
  .cal-cell{ min-height:0; }
  .cal-cell.dim{ display:none; }
}

.sess{
  width:100%; text-align:left; border:1px solid var(--line); border-left-width:3px;
  border-radius:8px; padding:7px 9px; background:rgba(10,22,19,0.4);
  cursor:pointer; color:var(--chalk); font-family:'IBM Plex Sans'; transition:.12s ease;
}
.sess:hover{ background:rgba(237,234,224,0.05); border-color:var(--line-2); }
.sess b{ display:block; font-size:12px; font-weight:600; line-height:1.3; margin-bottom:2px; }
.sess span{ display:block; font-size:11px; color:var(--chalk-faint); font-family:'IBM Plex Mono'; line-height:1.35; }
.sess.t-water{ border-left-color:var(--stroke); }
.sess.t-erg{ border-left-color:var(--brass); }
.sess.t-weights{ border-left-color:#9B8AC4; }
.sess.t-cross{ border-left-color:var(--good); }
.sess.t-other{ border-left-color:var(--chalk-faint); }
.sess.test{ box-shadow: inset 0 0 0 1px rgba(226,114,91,0.35); }
.dot-type{ display:inline-block; width:8px; height:8px; border-radius:50%; margin-right:6px; vertical-align:middle; }
.c-water{ background:var(--stroke); }
.c-erg{ background:var(--brass); }
.c-weights{ background:#9B8AC4; }
.c-cross{ background:var(--good); }
.c-other{ background:rgba(237,234,224,0.34); }

.week-row{
  display:grid; grid-template-columns:120px 1fr; gap:14px; align-items:start;
  padding:13px 0; border-bottom:1px solid var(--line);
}
.week-row:last-child{ border-bottom:none; }
.week-label{ font-family:'IBM Plex Mono', monospace; font-size:11.5px; color:var(--chalk-faint); line-height:1.5; padding-top:3px; }
.week-label b{ display:block; color:var(--chalk-dim); font-size:12.5px; font-weight:500; }
.week-sessions{ display:flex; gap:6px; flex-wrap:wrap; }
@media (max-width:640px){ .week-row{ grid-template-columns:1fr; gap:8px; } }

.load-bar{ display:flex; height:6px; border-radius:99px; overflow:hidden; background:rgba(237,234,224,0.07); margin-top:6px; }
.load-bar i{ display:block; height:100%; }

/* ---------- MISC ---------- */
.kv{ display:grid; grid-template-columns:auto 1fr; gap:6px 16px; font-size:13px; }
.kv dt{ color:var(--chalk-faint); font-family:'IBM Plex Mono'; font-size:11.5px; padding-top:2px; }
.kv dd{ margin:0; color:var(--chalk); }
.divider{ height:1px; background:var(--line); margin:22px 0; border:none; }
/* Thresholds are unvalidated placeholders and must say so wherever a judgement
   derived from them is shown. Deliberately not styled down to a faint footnote:
   the brass rule and the solid text are there so it reads as a qualification of
   the findings rather than boilerplate under them. */
.provisional{
  border-left:3px solid var(--brass); background:rgba(199,154,86,0.07);
  padding:10px 14px; border-radius:0 8px 8px 0; margin:0 0 16px;
  font-size:12.5px; line-height:1.6; color:var(--chalk-dim);
}
.provisional[hidden]{ display:none; }
/* Provenance marker beside a joint angle in the stroke-report table. Brass and
   help-cursor rather than red: it qualifies the number, it does not condemn it. */
.angle-mark{
  color:var(--brass); font-family:'IBM Plex Mono', monospace; font-size:9.5px;
  margin-left:3px; cursor:help; vertical-align:super; line-height:0;
}
.disclaimer{
  margin-top:26px; padding:15px 17px; border-radius:10px; border:1px dashed rgba(237,234,224,0.18);
  font-size:12.5px; color:var(--chalk-faint); line-height:1.6;
}
.disclaimer strong{ color:var(--chalk-dim); }
.sr-only{ position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }

@media (prefers-reduced-motion: reduce){
  *{ animation-duration:.001ms !important; transition-duration:.001ms !important; }
}

/* ---------- PRINT ----------------------------------------------------------
   Everything in this suite is chalk on a dark hull, and printers drop
   backgrounds by default — so printing any page as-authored gave pale grey
   text on white paper, plus the nav, the toolbar and every button.

   A coach printing a page wants the content on it: an athlete's record, next
   week's sessions, a stroke report to hand over. Repaint the tokens for ink on
   paper rather than fighting each rule, drop the controls, and stop cards
   splitting across a page break. Canvases keep their own pixels — they are
   images, and print as drawn.
   -------------------------------------------------------------------------- */
@media print{
  :root{
    --ink:#fff; --hull:#fff; --hull-2:#fff;
    --chalk:#111; --chalk-dim:#333; --chalk-faint:#555;
    --line:#ccc; --line-2:#bbb;
    --stroke:#0b6b5e; --stroke-dim:rgba(11,107,94,0.15);
    --brass:#8a6a2f; --alert:#a33322; --good:#2f6b3d;
  }
  html,body{ background:#fff !important; color:#111; }
  body{ background-image:none !important; min-height:0; }
  .wrap, .wrap.wide{ max-width:none; padding:0; }

  /* Controls, navigation and anything that only exists to be clicked. */
  header.top, .toolbar, .btn, .btn-row, .btn-icon, .tabs, .modal-back,
  .banner, #clToast, .side-list, .footer-actions, .empty,
  .file-line{ display:none !important; }

  /* The split layouts collapse: with the roster gone there is one column. */
  .split, .cols{ display:block !important; }

  a{ color:inherit; text-decoration:none; }
  .card, .stat-card, .disclaimer, .kv, table{
    border-color:#ccc; background:#fff;
    break-inside:avoid; page-break-inside:avoid;
  }
  h1,h2,h3,.page-ttl,.section-ttl,.sub-ttl{ break-after:avoid; page-break-after:avoid; }
  .eyebrow{ color:#555; }
  canvas, img{ max-width:100%; break-inside:avoid; page-break-inside:avoid; }
  @page{ margin:14mm; }
}
