/* AceLink / courtside: functional training records, not promotional cards.
   Final brand: graphite on warm white; gold is a small accent, not body text.
   Legacy --cs-court remains a compatible graphite action alias. */
body[data-app-screen="train"] { background: #fcfbf8; min-height: 100dvh; }
#trainingHub.courtside-hub {
  --cs-ink: #252b2d;
  --cs-muted: #666964;
  --cs-rule: #ded9cf;
  --cs-court: #252b2d;
  display: grid;
  grid-template-columns: minmax(0,1.15fr) minmax(300px,.85fr);
  gap: 32px 56px;
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 28px 0 38px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: var(--cs-ink);
}
.courtside-header { grid-column: 1/-1; display: flex; justify-content: space-between; align-items: baseline; gap: 20px; padding-bottom: 18px; border-bottom: 1px solid var(--cs-rule); }
.courtside-header h2 { margin: 0; font-size: clamp(28px,3vw,38px); font-weight: 650; letter-spacing: -.04em; line-height: 1.25; }
.courtside-header time { font-size: 13px; color: var(--cs-muted); white-space: nowrap; }
.courtside-session-column,.courtside-capture-column { min-width: 0; }
.cs-session { padding: 0; margin: 0; background: transparent; }
.cs-session-meta { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 0 16px; font-size: 13px; }
.cs-session-meta>small { display: flex; align-items: center; gap: 8px; font: inherit; color: var(--cs-ink); }
.cs-session-meta>small::before { content: ""; width: 7px; height: 7px; background: #8b877d; border-radius: 50%; }
.cs-session.is-approved .cs-session-meta>small::before,.cs-session.is-retest .cs-session-meta>small::before { background: #276749; }
.cs-session-meta>span { color: var(--cs-muted); font-size: 12px; }
.cs-session h3 { margin: 0; max-width: 20ch; font-size: clamp(25px,2.65vw,34px); font-weight: 650; letter-spacing: -.03em; line-height: 1.42; text-wrap: pretty; overflow-wrap: anywhere; }
.cs-session-instruction { max-width: 42ch; margin: 14px 0 0; color: #5b605e; font-size: 15px; font-weight: 400; line-height: 1.75; overflow-wrap: anywhere; }
.cs-prescription { display: flex; flex-wrap: wrap; gap: 20px 34px; margin: 24px 0 0; padding: 17px 0; border-top: 1px solid var(--cs-rule); border-bottom: 1px solid var(--cs-rule); }
.cs-prescription>div { min-width: 100px; }
.cs-prescription dt { color: var(--cs-muted); font-size: 11px; }
.cs-prescription dd { margin: 6px 0 0; font-size: 17px; font-weight: 550; line-height: 1.45; }
.cs-session .student-plan-actions { display: flex; flex-direction: row; align-items: center; flex-wrap: wrap; gap: 10px 18px; margin-top: 24px; }
.cs-session button,.cs-invitation button,.cs-training-record button,.cs-record-heading button {
  min-height: 44px; border: 0; border-radius: 4px; padding: 10px 14px; background: transparent; color: var(--cs-court); font: inherit; font-size: 14px; font-weight: 550; cursor: pointer; box-shadow: none;
}
.cs-session .student-plan-actions button { flex: 1 1 auto; min-height: 48px; background: var(--cs-court); color: #fff; border: 1px solid var(--cs-court); }
.cs-session .student-plan-actions button[data-training-completed="true"] { flex: 0 1 auto; order: 3; padding: 8px 0; border: 0; color: var(--cs-muted); background: transparent; font-size: 12px; }
.cs-session .student-plan-actions button[data-training-plan-retest] { order: 0; }
.cs-session .student-plan-actions button[data-training-open-report] { order: 0; }
.cs-session .training-evidence-note { margin: 10px 0 0; font-size: 12px; color: var(--cs-muted); line-height: 1.6; }
.cs-session .cs-session-archive { display: inline-flex; align-items: center; gap: 16px; margin: 12px 0 0; padding: 6px 0; color: var(--cs-muted); font-size: 13px; }
.cs-session .training-action-status { margin: 8px 0 0; font-size: 12px; color: var(--cs-muted); line-height: 1.55; }
.cs-session .training-action-status:empty { display: none; }
.cs-session .training-action-status.is-error { color: #973f2f; }
.cs-session.is-new { padding-bottom: 24px; }
.cs-session.is-new h3 { max-width: 12ch; }
.cs-invitation { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 20px; padding: 12px 0; border-top: 1px solid var(--cs-rule); }
.cs-invitation>span { color: var(--cs-muted); font-size: 13px; line-height: 1.5; }
.cs-section-heading { margin: 0 0 12px; font-size: 13px; font-weight: 550; color: var(--cs-muted); }
.stroke-selector { display: grid; gap: 0; border-top: 1px solid var(--cs-ink); }
.stroke-entry { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 12px; min-height: 79px; width: 100%; padding: 16px 0; border: 0; border-bottom: 1px solid var(--cs-rule); border-radius: 0; background: transparent; color: var(--cs-ink); text-align: left; box-shadow: none; cursor: pointer; }
.stroke-entry>span { display: grid; gap: 5px; }
.stroke-entry strong { font-size: 21px; font-weight: 600; line-height: 1.3; }
.stroke-entry small { color: var(--cs-muted); font-size: 12px; font-weight: 400; line-height: 1.4; }
.stroke-entry em { padding: 3px 6px; margin-left: 8px; border: 1px solid #ded9cf; border-radius: 2px; color: var(--cs-muted); font-size: 10px; font-weight: 400; font-style: normal; vertical-align: middle; }
.stroke-entry>b { width: 28px; color: var(--cs-court); font-size: 22px; font-weight: 400; text-align: center; }
.stroke-entry:hover { background: #f7f2e8; }
.courtside-records { margin-top: 28px; }
.cs-record-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0; }
.cs-record-heading h3 { margin: 0; font-size: 13px; font-weight: 550; color: var(--cs-muted); }
.cs-record-heading button { min-height: 44px; padding: 5px 0 5px 12px; font-size: 12px; }
.cs-training-record { padding: 15px 0 0; border-top: 1px solid var(--cs-rule); }
.cs-record-meta { display: flex; align-items: start; justify-content: space-between; gap: 14px; }
.cs-record-meta strong { display: block; margin-bottom: 7px; font-size: 17px; font-weight: 550; }
.cs-record-meta p { margin: 0; color: var(--cs-muted); font-size: 12px; line-height: 1.5; }
.cs-record-meta time { font-size: 11px; white-space: nowrap; color: var(--cs-muted); }
.cs-record-actions { display: flex; gap: 20px; margin-top: 11px; }
.cs-record-actions button { padding: 8px 0; font-size: 13px; }
.cs-record-actions button+button { color: var(--cs-muted); }
.cs-record-empty { margin: 0; padding: 17px 0; border-top: 1px solid var(--cs-rule); color: var(--cs-muted); font-size: 13px; line-height: 1.7; }
.cs-record-count { margin: 12px 0 0; color: var(--cs-muted); font-size: 11px; }
#trainingHub.courtside-hub button:focus-visible { outline: 3px solid #252b2d; outline-offset: 4px; }
#trainingHub.courtside-hub button:disabled { opacity: .48; cursor: wait; }
/* The report uses the same record-sheet hierarchy, with provenance before conclusions. */
#report>.report-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 22px; }
#report>.report-toolbar>button { width: auto; min-height: 44px; margin: 0; padding: 8px 0; border: 0; border-radius: 0; background: none; color: #666964; font-size: 12px; font-weight: 400; box-shadow: none; }
#report>.report-toolbar>.training-report-back { display: inline-flex; align-items: center; gap: 10px; color: #252b2d; }
#report>.report-toolbar>.training-report-back>em { font-size: 13px; font-style: normal; font-weight: 500; }
@media screen { #report .report-brand-band { display: none; } }
@media print { #report>.report-toolbar { display: none; } }
#report .cs-report-sharing { margin: 30px 0 0; padding: 20px 0; border: 0; border-top: 1px solid #ded9cf; border-radius: 0; background: transparent; box-shadow: none; }
#report .cs-report-sharing strong { font-size: 15px; font-weight: 500; }
#report .cs-report-sharing small { color: #666964; font-size: 12px; }
#report .cs-report-sharing button { min-height: 44px; border: 1px solid #8b877d; border-radius: 4px; color: #252b2d; background: none; font-size: 13px; font-weight: 500; }
.report-hero-v2.cs-report-sheet {
  display: block; min-height: 0; padding: 28px; border: 0; border-top: 2px solid #252b2d;
  border-radius: 0; background: #fff; color: #252b2d; box-shadow: none;
}
.report-hero-v2.cs-report-sheet::after { display: none; }
.cs-report-sheet .report-hero-copy { display: grid; gap: 22px; }
.cs-report-sheet .cs-report-meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 20px; padding: 0; margin: 0; }
.cs-report-sheet .cs-report-meta span,.cs-report-sheet .cs-report-meta em { border: 0; padding: 0; background: none; color: #666964; border-radius: 0; font-size: 12px; font-weight: 400; font-style: normal; }
.cs-report-source { display: flex; flex-wrap: wrap; gap: 7px 16px; align-items: center; padding: 12px 0; border-top: 1px solid #ded9cf; border-bottom: 1px solid #ded9cf; }
.cs-report-source strong { font-size: 13px; font-weight: 600; color: #252b2d; }
.cs-report-source span { font-size: 12px; color: #666964; }
.cs-report-source small { flex-basis: 100%; font-size: 12px; font-weight: 400; color: #666964; }
.cs-report-sheet.is-insufficient .cs-report-source small { color: #98553b; }
.cs-report-sheet .cs-report-observation h2 { margin: 0; max-width: 24ch; font-size: clamp(26px,3vw,38px); line-height: 1.4; font-weight: 600; letter-spacing: -.03em; }
.cs-report-observation p { margin: 13px 0; max-width: 65ch; font-size: 15px; line-height: 1.85; color: #5b605e; }
.cs-report-observation>small { display: block; font-size: 12px; line-height: 1.6; color: #666964; }
.cs-report-evidence-link { display: inline-flex; align-items: center; min-height: 44px; padding: 5px 0; color: #252b2d; text-decoration: none; font-size: 14px; font-weight: 550; }
.cs-report-sheet .cs-report-review { border: 0; border-left: 2px solid #b88a3e; border-radius: 0; padding: 2px 0 2px 16px; background: none; }
.cs-report-sheet .cs-report-review>small { margin: 0 0 8px; color: #5b605e; font-weight: 500; font-size: 12px; }
.cs-report-review p { margin: 8px 0; font-size: 14px; line-height: 1.75; color: #252b2d; }
.cs-report-review .cs-report-review-meta { color: #666964; font-size: 11px; }
.cs-report-sheet .cs-report-next { border: 0; border-top: 1px solid #ded9cf; border-radius: 0; padding: 20px 0 0; background: transparent; color: #252b2d; }
.cs-report-sheet .cs-report-next>small { font-size: 12px; font-weight: 400; color: #666964; margin-bottom: 10px; }
.cs-report-sheet .cs-report-next>strong { font-size: 17px; font-weight: 500; line-height: 1.7; }
.cs-report-sheet .cs-report-next>p { font-size: 13px; line-height: 1.65; color: #666964; }
.cs-report-sheet .cs-report-next .cs-report-plan-status { font-size: 12px; }
.cs-report-sheet .cs-report-next>button { min-height: 46px; margin-top: 14px; border: 0; border-radius: 4px; padding: 11px 18px; color: #fff; background: #252b2d; font-size: 14px; font-weight: 550; }
.cs-report-sheet .report-actions { display: flex; align-items: center; justify-content: flex-start; gap: 12px; margin: 0; }
.cs-report-sheet .report-actions>button { min-height: 44px; padding: 8px 0; border: 0; border-radius: 0; background: none; color: #666964; font-size: 13px; font-weight: 400; box-shadow: none; }
.cs-report-sheet button:focus-visible,.cs-report-sheet a:focus-visible { outline: 3px solid #252b2d; outline-offset: 4px; }
.student-training-plan.cs-training-plan { padding: 22px 0; border: 0; border-top: 1px solid #ded9cf; border-radius: 0; background: transparent; box-shadow: none; }
.cs-training-plan>header small,.cs-training-plan .student-plan-flow small { color: #666964; font-size: 12px; font-weight: 500; }
.cs-training-plan>header strong { color: #252b2d; font-size: 18px; font-weight: 600; }
.cs-training-plan .cs-plan-summary { grid-template-columns: minmax(0,1fr); }
.cs-training-plan .cs-plan-summary>article { padding: 0; border: 0; border-radius: 0; background: transparent; }
.cs-plan-summary strong { margin-top: 8px; font-size: 19px; font-weight: 550; }
.cs-plan-summary p { font-size: 14px; line-height: 1.75; }
.cs-plan-summary .cs-plan-dose { padding: 12px 0; border-top: 1px solid #ded9cf; border-bottom: 1px solid #ded9cf; color: #252b2d; }
.cs-training-plan .student-plan-actions button { background: #252b2d; color: #fff; border-radius: 4px; font-weight: 550; }
.cs-training-plan .training-evidence-note { color: #666964; font-size: 12px; line-height: 1.65; }
@media (max-width: 760px) {
  #trainingHub.courtside-hub { grid-template-columns: minmax(0,1fr); gap: 27px; padding: 16px 20px 26px; box-sizing: border-box; }
  .courtside-header { padding-bottom: 16px; }
  .courtside-header h2 { font-size: 28px; }
  .cs-session h3 { font-size: 26px; max-width: 18ch; }
  .cs-session-meta { padding-bottom: 12px; }
  .cs-session-instruction { margin-top: 10px; font-size: 14px; }
  .cs-prescription { margin-top: 18px; padding: 13px 0; }
  .cs-prescription dd { font-size: 16px; }
  .cs-session .student-plan-actions { margin-top: 18px; }
  .cs-session .cs-session-archive { margin-top: 5px; }
  .cs-session.is-new { padding-bottom: 0; }
  .stroke-entry { min-height: 72px; padding: 13px 0; }
  .stroke-entry strong { font-size: 19px; }
  .courtside-records { margin-top: 24px; }
  .report-hero-v2.cs-report-sheet { padding: 20px 16px; }
  .cs-report-sheet .report-hero-copy { gap: 19px; }
  .cs-report-sheet .cs-report-observation h2 { font-size: 26px; }
  .cs-report-observation p { font-size: 14px; }
}
