/* Training (SPEC 72): the member pages (a track's day, a part, My PRs, a lift, the locked page). Mobile first. */

.tr-page { max-width: 760px; margin: 0 auto; display: grid; gap: 16px; }
.tr-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.tr-head .page-title { margin: 0; }
.tr-head-links { display: flex; flex-wrap: wrap; gap: 8px; }
.tr-head-links .btn, .tr-day-head .btn { display: inline-flex; align-items: center; gap: 6px; }
.tr-banner, .tr-owner-note { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 0; padding: 10px 14px;
  border-radius: 10px; background: var(--surface-2); font-size: 14px; }
.tr-owner-note { color: var(--text-2); }
.tr-about { margin: -6px 0 0; }
.tr-crumbs { margin: 0; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.tr-crumbs .link { display: inline-flex; align-items: center; gap: 4px; }

.tr-tracks { display: flex; gap: 8px; overflow-x: auto; padding: 4px; margin: -4px; scrollbar-width: none; }
.tr-tracks::-webkit-scrollbar { display: none; }
.tr-tracks .chip { flex: none; }

/* the week strip */
.tr-week { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 4px; }
.tr-week-arrow { width: 36px; height: 36px; }
.tr-strip { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.tr-strip-day { display: grid; justify-items: center; gap: 2px; padding: 8px 0 6px; border-radius: 12px; color: var(--text-2);
  text-decoration: none; min-width: 0; }
.tr-strip-day:hover { background: var(--hover); }
.tr-strip-wd { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.tr-strip-num { font-size: 17px; font-weight: 700; color: var(--text); line-height: 1.2; }
.tr-strip-dot { width: 5px; height: 5px; border-radius: 50%; background: transparent; }
.tr-strip-day.has-parts .tr-strip-dot { background: var(--accent); }
.tr-strip-day.is-today .tr-strip-num { color: var(--accent-text); }
.tr-strip-day[aria-current="date"] { background: var(--text); color: var(--bg); }
.tr-strip-day[aria-current="date"] .tr-strip-num { color: var(--bg); }
.tr-strip-day[aria-current="date"].has-parts .tr-strip-dot { background: var(--bg); }

.tr-day { display: grid; gap: 12px; }
.tr-day-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.tr-day-head h2 { margin: 0; font-size: 20px; line-height: 1.3; }
.tr-day-sub { color: var(--text-2); font-weight: 600; }
.tr-parts { display: grid; gap: 12px; }
.tr-empty { display: grid; justify-items: center; gap: 8px; padding: 36px 16px; text-align: center; color: var(--text-2);
  background: var(--surface); border-radius: var(--radius); }
.tr-empty p { margin: 0; }
.tr-empty-icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--surface-2); }

/* a part */
.tr-part { background: var(--surface); border-radius: var(--radius); padding: 16px; display: grid; gap: 10px; min-width: 0; }
.tr-part-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.tr-part-title { margin: 0; font-family: var(--font-display); font-size: 22px; font-weight: 700; letter-spacing: .01em; line-height: 1.15; }
.tr-part-title a { color: inherit; text-decoration: none; }
.tr-part-title a:hover { text-decoration: underline; }
.tr-prefix { display: inline-block; margin-right: 2px; padding: 0 6px; border-radius: 6px; background: var(--accent-soft); color: var(--accent-text); font-size: .8em; vertical-align: 2px; } /* the workout builder's Prefix (A1) */
.tr-chip { font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 999px; background: var(--surface-2); color: var(--text-2);
  white-space: nowrap; }
.tr-text { font-size: 15px; line-height: 1.55; overflow-wrap: anywhere; }
.tr-text .tr-lead { font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.tr-text a { color: var(--accent-text); }
.tr-text a.tr-move { text-decoration: underline dotted; text-underline-offset: 3px; } /* a movement with a demo video: tap to play it */
.tr-pct { margin: 0; padding: 10px 12px; border-radius: 10px; background: var(--accent-soft); font-size: 14px; line-height: 1.45; }
.tr-pct-missing { background: var(--surface-2); color: var(--text-2); }
.tr-more { border-top: 1px solid var(--line); padding-top: 8px; }
.tr-more > summary { cursor: pointer; list-style: none; display: flex; align-items: center; gap: 6px; font-weight: 600; font-size: 14px;
  color: var(--text-2); padding: 2px 0; }
.tr-more > summary::-webkit-details-marker { display: none; }
.tr-more > summary .icon { transition: transform .15s; }
.tr-more[open] > summary .icon { transform: rotate(180deg); }
.tr-more > .tr-text { margin-top: 8px; }
.tr-rxplus > summary { color: var(--accent-text); }

.tr-videos { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 2px; }
.tr-video { flex: none; width: 168px; display: grid; gap: 6px; color: inherit; text-decoration: none; font-size: 13px; }
.tr-video-thumb { position: relative; aspect-ratio: 16 / 9; border-radius: 8px; overflow: hidden; background: var(--surface-2);
  display: grid; place-items: center; }
.tr-video-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tr-video-thumb .icon { position: relative; color: #fff; filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .6)); }
.tr-video-title { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-weight: 600; }

.tr-result { display: grid; gap: 8px; border-top: 1px solid var(--line); padding-top: 10px; }
.tr-mine { margin: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 10px; }
.tr-mine-label { color: var(--text-2); font-size: 13px; font-weight: 600; }
.tr-mine-score { font-size: 18px; display: inline-flex; align-items: center; gap: 4px; }
.tr-mine-note { flex-basis: 100%; color: var(--text-2); font-size: 14px; }
.tr-div { font-size: 11px; font-weight: 700; padding: 2px 7px; border-radius: 6px; background: var(--surface-2); color: var(--text-2); }
.tr-div-rx_plus { background: var(--accent-soft); color: var(--accent-text); }
.tr-div-rx { box-shadow: inset 0 0 0 1px var(--line); }
.tr-done-form { display: grid; gap: 8px; justify-items: start; }
.tr-done-form .btn, .tr-log > summary { display: inline-flex; align-items: center; gap: 6px; }
.tr-log > summary { list-style: none; cursor: pointer; width: max-content; }
.tr-log > summary::-webkit-details-marker { display: none; }
.tr-log[open] > summary { display: none; }
.tr-form { display: grid; gap: 12px; }
.tr-form fieldset { border: 0; padding: 0; margin: 0; }
.tr-form .label, .tr-form legend { font-weight: 600; font-size: 14px; margin-bottom: 6px; }
.tr-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.tr-pair-unit { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
.tr-form .form-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.tr-form .form-actions .tr-delete { margin-right: auto; display: inline-flex; align-items: center; gap: 6px; }
.tr-form .form-error, .tr-done-form .form-error { margin: 0; }
.tr-form .segmented { display: flex; gap: 14px; }
/* a time box (2026-10-27 late): 00:00, the phone's number keypad, the digits filling in from the right like a stopwatch */
.field input.tr-clock { max-width: 200px; font-size: 22px; font-weight: 700; letter-spacing: .04em; font-variant-numeric: tabular-nums;
  text-align: center; }
.field input.tr-clock::placeholder { color: var(--text-3); font-weight: 600; }
.field input.tr-clock[aria-invalid="true"] { border-color: var(--danger-text); }

/* the whiteboard */
.tr-wb { border-top: 1px solid var(--line); padding-top: 8px; }
.tr-wb > summary { cursor: pointer; list-style: none; display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 15px; padding: 4px 0; }
.tr-wb > summary::-webkit-details-marker { display: none; }
.tr-wb > summary .icon:last-child { margin-left: auto; transition: transform .15s; color: var(--text-2); }
.tr-wb[open] > summary .icon:last-child { transform: rotate(180deg); }
.tr-count { font-size: 12px; font-weight: 700; padding: 1px 8px; border-radius: 999px; background: var(--surface-2); color: var(--text-2); }
.tr-wb-body { display: grid; gap: 10px; margin-top: 8px; }
.tr-wb-filters { display: flex; gap: 6px; flex-wrap: wrap; }
.tr-wb-filters .chip { padding: 4px 12px; font-size: 13px; }
.tr-wb-empty { margin: 0; }
.tr-wb-sec { display: grid; gap: 4px; }
.tr-wb-div { margin: 4px 0 0; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.tr-wb-list { list-style: none; margin: 0; padding: 0; display: grid; }
.tr-wb-row { display: grid; grid-template-columns: 28px 32px minmax(0, 1fr) auto auto; align-items: center; gap: 10px; padding: 8px 6px;
  border-radius: 10px; }
.tr-wb-row + .tr-wb-row { border-top: 1px solid var(--line); }
.tr-wb-row.is-me { background: var(--accent-soft); }
.tr-rank { font-weight: 800; text-align: center; color: var(--text-2); font-variant-numeric: tabular-nums; }
.tr-wb-sec:not(:has(.tr-rank)) .tr-wb-row, .tr-wb-row:not(:has(.tr-rank)) { grid-template-columns: 32px minmax(0, 1fr) auto auto; }
.tr-wb-pic { display: block; line-height: 0; }
.tr-wb-who { min-width: 0; display: grid; }
.tr-wb-name { color: inherit; font-weight: 600; text-decoration: none; overflow-wrap: anywhere; }  /* (the full name: it wraps, never cut short; the owner, 2026-10-27) */
.tr-wb-name:hover { text-decoration: underline; }
.tr-wb-note { color: var(--text-2); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tr-wb-score { font-variant-numeric: tabular-nums; white-space: nowrap; }
.tr-wb-actions { display: flex; align-items: center; gap: 2px; }
.tr-wb-actions form { display: contents; }
.tr-like { display: inline-flex; align-items: center; gap: 3px; min-width: 36px; height: 32px; padding: 0 6px; border: 0; border-radius: 8px;
  background: none; color: var(--text-3); font: inherit; font-size: 13px; cursor: pointer; }
.tr-like:hover { background: var(--hover); }
.tr-like[aria-pressed="true"] { color: var(--accent-text); }
.tr-like[aria-pressed="true"] .icon { fill: currentColor; }
.tr-like.is-own { cursor: default; }
.tr-like.is-own:hover { background: none; }
.tr-remove { width: 32px; height: 32px; color: var(--text-3); }

/* My PRs, a lift, history */
.tr-panel { background: var(--surface); border-radius: var(--radius); padding: 16px; display: grid; gap: 10px; min-width: 0; }
.tr-h2 { margin: 0; font-size: 17px; }
.tr-table-wrap { overflow-x: auto; margin: 0 -4px; }
.tr-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.tr-table th, .tr-table td { padding: 8px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.tr-table thead th { font-size: 12px; color: var(--text-2); text-transform: uppercase; letter-spacing: .04em; white-space: nowrap; }
.tr-table tbody th a { color: inherit; font-weight: 700; }
.tr-table td strong, .tr-table td .small { display: block; white-space: nowrap; }
.tr-marks { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.tr-mark { display: grid; gap: 2px; padding: 10px 12px; border-radius: 10px; background: var(--surface-2); color: inherit; text-decoration: none; }
.tr-mark:hover { background: var(--hover); }
.tr-mark-name { font-size: 15px; }
.tr-hist { list-style: none; margin: 0; padding: 0; display: grid; }
.tr-hist li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.tr-hist li:last-child { border-bottom: 0; }
.tr-hist-day { color: var(--text-2); font-size: 13px; min-width: 92px; }
.tr-hist-note { flex-basis: 100%; color: var(--text-2); font-size: 13px; }
.tr-pr { font-size: 11px; font-weight: 800; padding: 2px 7px; border-radius: 6px; background: var(--star); color: #111; }
.tr-inline { display: inline; }
.tr-max-num { margin: 0; font-family: var(--font-display); font-size: 40px; font-weight: 800; line-height: 1; }
.tr-chart { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.tr-chart li { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; align-items: center; gap: 10px; font-variant-numeric: tabular-nums; }
.tr-chart-pct { color: var(--text-2); font-size: 13px; font-weight: 700; text-align: right; }
.tr-chart-bar { height: 8px; border-radius: 4px; background: linear-gradient(90deg, var(--accent) var(--w), var(--surface-2) var(--w)); }
.tr-rep-prs { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tr-rep-prs li { padding: 8px 12px; border-radius: 10px; background: var(--surface-2); display: grid; gap: 2px; }
.tr-lift-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; align-items: end; }
.tr-lift-name { grid-column: 1 / -1; }
.tr-lift-go { grid-column: 1 / -1; display: flex; justify-content: flex-end; }

/* the locked page */
.tr-locked { display: grid; justify-items: center; gap: 12px; text-align: center; padding: 40px 16px; max-width: 520px; margin: 24px auto; }
.tr-locked p { margin: 0; }
.tr-locked-lead { color: var(--text-2); font-size: 16px; line-height: 1.5; }
.tr-locked-icon { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 18px; background: var(--accent-soft);
  color: var(--accent-text); }
.tr-locked .btn { display: inline-flex; align-items: center; gap: 6px; }

/* the join page (2026-10-27 late; training_join.html): the two plans, phone first, plus.css's look (its tag) */
.tr-page.tr-join { max-width: 980px; }
.tr-join-hero { display: grid; justify-items: center; gap: 10px; text-align: center; padding: 8px 0 0; }
.tr-join-hero .page-title { margin: 0; }
.tr-join-lead { margin: 0; max-width: 46ch; color: var(--text-2); font-size: 16px; line-height: 1.5; }
.tr-join-note { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 8px 10px; margin: 0;
  padding: 12px 14px; border-radius: 12px; background: var(--surface-2); font-size: 15px; line-height: 1.45; text-align: center; }
.tr-join-note p { margin: 0; }
.tr-join-note.is-ok .icon { color: var(--ok-text); }
.tr-join-confirm { display: grid; justify-items: center; }
.tr-join-plans { display: grid; gap: 14px; min-width: 0; }
.tr-join-card { display: grid; gap: 12px; align-content: start; min-width: 0; padding: 18px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line); }
.tr-join-card.is-training { border: 2px solid var(--accent); }
.tr-join-card p { margin: 0; }
.tr-join-name { display: flex; align-items: center; gap: 8px; margin: 0; font-family: var(--font-display); font-size: 26px;
  font-weight: 800; line-height: 1.1; letter-spacing: .01em; text-transform: uppercase; overflow-wrap: anywhere; }
.tr-join-name .icon { flex: none; color: var(--accent-text); }
.tr-join-line { font-size: 15.5px; line-height: 1.5; }
.tr-join-perks { line-height: 1.5; }
.tr-join-sub { margin: 2px 0 0; font-size: 13px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--text-2); }
.tr-join-features { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.tr-join-features li { display: flex; align-items: flex-start; gap: 10px; font-size: 14.5px; line-height: 1.45; min-width: 0; }
.tr-join-features .icon { flex: none; margin-top: 2px; color: var(--accent-text); }
.tr-join-prices { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.tr-join-price { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; padding: 12px;
  border-radius: 12px; background: var(--surface-2); min-width: 0; }
.tr-join-price-what { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; min-width: 0; }
.tr-join-price-amount { color: var(--text-2); font-size: 14.5px; }
.tr-join-price-amount strong { color: var(--text); font-family: var(--font-display); font-size: 26px; font-weight: 800; line-height: 1; }
.tr-join-price .plus-tag { align-self: center; }
.tr-join-form { margin: 0; flex: 1 1 200px; display: flex; justify-content: flex-end; }
.tr-join-form .btn { white-space: normal; height: auto; min-height: 44px; text-align: center; }
.tr-join-soon { justify-self: start; padding: 6px 14px; border-radius: 999px; background: var(--surface-2); color: var(--text-2);
  font-weight: 800; font-size: 14px; letter-spacing: .02em; }
.tr-join-signin { min-height: 46px; }
.tr-join-member { display: flex; align-items: center; gap: 8px; font-weight: 700; }
.tr-join-member .icon { flex: none; color: var(--ok-text); }
.tr-join-hf { display: grid; gap: 10px; justify-items: center; text-align: center; padding: 18px 16px; border-radius: var(--radius);
  background: var(--surface); }
.tr-join-hf p { margin: 0; max-width: 52ch; line-height: 1.5; }
.tr-join-hf .btn { display: inline-flex; align-items: center; gap: 6px; }
.tr-join-contact { margin: 0; text-align: center; }
@media (max-width: 380px) {
  .tr-join-card { padding: 14px; }
  .tr-join-name { font-size: 22px; }
  .tr-join-form { flex-basis: 100%; }
  .tr-join-form .btn { width: 100%; }
}
@media (min-width: 860px) {
  .tr-join-plans { grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); align-items: start; }
}

@media (min-width: 720px) {
  .tr-part, .tr-panel { padding: 20px; }
  .tr-lift-form { grid-template-columns: minmax(0, 2fr) 80px minmax(0, 1fr) 90px minmax(0, 1fr); }
  .tr-lift-name, .tr-lift-go { grid-column: auto; }
  .tr-lift-go { justify-content: flex-start; }
}
@media (max-width: 380px) {
  .tr-week { gap: 0; }
  .tr-week-arrow { width: 30px; }
  .tr-strip-num { font-size: 15px; }
  .tr-wb-row { gap: 6px; grid-template-columns: 22px 32px minmax(0, 1fr) auto auto; padding: 8px 2px; }
  .tr-pair-unit { grid-template-columns: minmax(0, 1fr) 84px; }
}

/* SPEC 72 round 2: tabs, drop-downs, comments, the feed, streaks */
.tr-wb-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); }
.tr-wb-tab { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; color: var(--text-2); font-weight: 700; font-size: 14px;
  text-decoration: none; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tr-wb-tab[aria-selected="true"] { color: var(--text); border-bottom-color: var(--accent); }
/* four levels (with Foundations): the tabs scroll in place on a phone instead of widening the page */
.tr-wb-tabs.is-many { overflow-x: auto; overflow-y: hidden; scrollbar-width: none; gap: 2px; }
.tr-wb-tabs.is-many::-webkit-scrollbar { display: none; }
.tr-wb-tabs.is-many .tr-wb-tab { flex: none; margin-bottom: 0; padding: 8px 9px; }
@media (max-width: 420px) { .tr-wb-tabs.is-many .tr-wb-tab { padding: 8px 6px; gap: 4px; font-size: 13px; } }
.tr-wb-row { display: block; padding: 0; }
.tr-wb-line { display: grid; grid-template-columns: 28px 32px minmax(0, 1fr) auto auto; align-items: center; gap: 10px; padding: 8px 6px; }
.tr-wb-line:not(:has(.tr-rank)) { grid-template-columns: 32px minmax(0, 1fr) auto auto; }
.tr-wb-drop { padding: 0 6px 10px 44px; }
.tr-open { display: inline-flex; align-items: center; gap: 3px; min-width: 36px; height: 32px; padding: 0 6px; border-radius: 8px;
  color: var(--text-3); text-decoration: none; font-size: 13px; }
.tr-open:hover { background: var(--hover); }
.tr-open[aria-expanded="true"] { color: var(--text); background: var(--surface-2); }
.tr-private { color: var(--text-3); margin-right: 3px; }
.tr-private-row { margin-top: 6px; font-weight: 500; }
.tr-last { margin: 0; }
.tr-panel-drop { display: grid; gap: 8px; }
.tr-likes-line { margin: 0; }
.tr-comments { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.tr-comment { display: grid; grid-template-columns: 24px minmax(0, 1fr) auto; gap: 8px; align-items: start; }
.tr-comment-body p { margin: 0; }
.tr-comment-text { font-size: 14px; white-space: pre-wrap; overflow-wrap: anywhere; }
.tr-comment-form { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; align-items: center; }
.tr-comment-form input { min-width: 0; padding: 8px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--bg);
  color: var(--text); font: inherit; font-size: 14px; }
.tr-comment-form .form-error { grid-column: 1 / -1; margin: 0; }
.tr-report { display: flex; gap: 4px; align-items: center; }
.tr-report select { max-width: 110px; font: inherit; font-size: 12px; padding: 4px; border-radius: 8px; border: 1px solid var(--line);
  background: var(--surface); color: var(--text-2); }
/* Someone else's comment has its Report list and button under it, on every screen (2026-10-29, the owner's "Approve + fix
   both"): beside it they squeezed the comment to a letter or two a line on a phone, to about 50 px in the dashboard's
   whiteboard on a computer at 1440 px and to nothing at 1100 px. Under it the comment keeps its row's width. */
.tr-comment > .tr-report { grid-column: 2 / -1; flex-wrap: wrap; }
.tr-composer textarea { width: 100%; resize: vertical; min-height: 80px; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line);
  background: var(--bg); color: var(--text); font: inherit; }
.tr-composer-go { display: flex; justify-content: flex-end; }
.tr-post-head { display: flex; align-items: center; gap: 10px; }
.tr-post-tools { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.tr-post-tools form { display: inline-flex; }
.tr-streak { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 999px; background: var(--surface-2);
  color: var(--text-2); font-size: 13px; font-weight: 700; }
.tr-streak.is-on { background: var(--accent-soft); color: var(--accent-text); }
.tr-streak-panel h2 { font-family: var(--font-display); font-size: 26px; }
.tr-streak-panel p { margin: 0; }
@media (max-width: 380px) {
  .tr-wb-line { gap: 6px; grid-template-columns: 22px 32px minmax(0, 1fr) auto auto; padding: 8px 2px; }
  .tr-wb-drop { padding-left: 8px; }
  .tr-report select { max-width: 90px; }
}

/* SPEC 72 review fixes: the medical line, the typo guard's box, Before you start, Membership */
.tr-medical { margin: 6px 0 0; }
.tr-confirm-big { padding: 8px 10px; border-radius: 10px; background: var(--accent-soft); font-weight: 600; }
.tr-foot { margin: 0; text-align: center; font-size: 14px; }
.tr-welcome { max-width: 640px; margin: 0 auto; }
.tr-welcome .page-title { margin: 0; }
.tr-release { display: grid; gap: 10px; padding: 14px 16px; border-radius: 10px; background: var(--surface-2); font-size: 14px; line-height: 1.55;
  max-height: min(45vh, 360px); overflow-y: auto; overscroll-behavior: contain; border: 1px solid var(--line, rgba(127,127,127,.3)); }
/* (the owner, 2026-10-28: "a small scrollable window with a click to agree to terms option": the agreement scrolls in its box,
   the I agree box and button stay right under it) */
.tr-release:focus-visible { outline: 2px solid var(--accent, #e5262a); outline-offset: 2px; }
.tr-release p, .tr-release ul, .tr-release h2, .tr-release h3 { margin: 0; }
.tr-release-title { font-size: 16px; line-height: 1.35; font-weight: 800; }
.tr-release h3 { margin-top: 8px; font-size: 15px; line-height: 1.35; font-weight: 800; }
.tr-release-strong { font-weight: 700; }
.tr-release ul { display: grid; gap: 4px; padding-left: 20px; }
.tr-cancel-done { margin: 0; padding: 10px 12px; border-radius: 10px; background: var(--surface-2); }

/* SPEC 72 round 3: celebrations, hidden results, sets, plates, the pinned note, the demo sheet, progress charts */
.tr-cheer { margin: 0; display: flex; gap: 8px; align-items: center; padding: 10px 12px; border-radius: 10px;
  background: color-mix(in srgb, var(--star) 22%, transparent); color: var(--text); font-weight: 700; animation: tr-pop .45s ease-out; }
.tr-cheer .icon { color: var(--star); flex: none; }
@keyframes tr-pop { 0% { transform: scale(.94); opacity: 0; } 70% { transform: scale(1.02); opacity: 1; } 100% { transform: none; } }
@media (prefers-reduced-motion: reduce) { .tr-cheer { animation: none; } }
.tr-hidden-mark { display: inline-flex; align-items: center; gap: 3px; font-size: 12px; color: var(--text-3); }
.tr-prefilled { margin: 0; }
.tr-sets { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 10px; }
.tr-set label { font-size: 13px; }
.tr-plates { display: block; margin-top: 4px; font-size: 13px; font-weight: 600; color: var(--text-2); }
.tr-chart li { grid-template-columns: 44px minmax(0, 1fr) auto; }
.tr-chart-plates { grid-column: 2 / -1; margin-top: -4px; }
.tr-announce { padding: 12px 14px; border-radius: var(--radius); background: var(--surface); border-left: 4px solid var(--accent); display: grid; gap: 4px; }
.tr-announce-label { margin: 0; font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: var(--accent-text); }
.tr-demo { width: min(720px, calc(100vw - 24px)); padding: 12px; border: 0; border-radius: var(--radius); background: var(--surface);
  color: var(--text); box-shadow: var(--shadow); }
.tr-demo::backdrop { background: rgba(0, 0, 0, .7); }
.tr-demo-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.tr-demo video { width: 100%; aspect-ratio: 16 / 9; background: #000; border-radius: 8px; display: block; }
.tr-demo .link { display: inline-block; margin-top: 8px; }
.tr-progress { margin: 0; display: grid; gap: 4px; }
.tr-progress svg { width: 100%; height: 120px; overflow: visible; }
.tr-progress polyline { stroke: var(--accent); stroke-width: 2.5; vector-effect: non-scaling-stroke; }
.tr-progress circle { fill: var(--accent); }
.tr-progress figcaption { display: flex; justify-content: space-between; gap: 8px; }
.tr-offline { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin: 0; padding: 10px 12px; border-radius: 10px;
  background: var(--surface-2); font-size: 14px; }
.tr-offline[hidden] { display: none; }
/* Training settings: "A date" under its choice (SPEC 72) */
.field input.tr-prs-date { max-width: 220px; margin: 0 0 6px 28px; padding: 8px 12px; }

/* SPEC 72 (2026-10-27): the overall board (training_board.html) and Today's line on the day page */
.tr-board-line { display: flex; align-items: center; gap: 8px; margin: -4px 0 0; padding: 10px 14px; border-radius: 12px;
  background: var(--accent-soft); color: var(--text); text-decoration: none; font-size: 14px; font-weight: 700; min-width: 0; }
.tr-board-line:hover { background: var(--hover); }
.tr-board-line > span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tr-board-line .icon { flex: none; color: var(--accent-text); }
.tr-board-line .icon:last-child { color: var(--text-3); }
.tr-ob-lead { margin: -6px 0 0; }
.tr-ob-periods { display: flex; gap: 8px; flex-wrap: wrap; }
.tr-ob-board { gap: 8px; }
.tr-ob-head { display: grid; gap: 2px; }
.tr-ob-sub { margin: 0; }
.tr-ob-list { list-style: none; margin: 0; padding: 0; display: grid; }
/* golf scoring (2026-10-27): a row is its line (place, person, points) and its drop-down (points by workout) */
.tr-ob-row { border-radius: 10px; min-width: 0; }
.tr-ob-line { display: grid; grid-template-columns: 28px 32px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 8px 6px; }
.tr-ob-row + .tr-ob-row { border-top: 1px solid var(--line); }
.tr-ob-row.is-me { background: var(--accent-soft); }
.tr-ob-row.is-unranked .tr-rank { color: var(--text-3); }
.tr-ob-count { color: var(--text-2); font-size: 13px; }
.tr-ob-points { display: inline-flex; align-items: center; gap: 2px; padding: 4px 2px 4px 8px; margin: -4px 0; border-radius: 8px;
  color: var(--text); text-decoration: none; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tr-ob-points:hover { background: var(--hover); }
.tr-ob-points .icon { color: var(--text-3); transition: transform .15s ease; }
.tr-ob-points[aria-expanded="true"] .icon { transform: rotate(180deg); }
.tr-ob-row.is-unranked .tr-ob-points strong { font-weight: 600; color: var(--text-2); }
.tr-ob-drop { padding: 0 6px 10px 44px; }
.tr-ob-drop[hidden] { display: none; }
.tr-ob-wlist { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.tr-ob-w { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding: 6px 10px; border-radius: 8px;
  background: var(--surface-2); font-size: 14px; min-width: 0; }
.tr-ob-w-what { display: grid; min-width: 0; }
.tr-ob-w-title { color: var(--text); font-weight: 600; text-decoration: none; overflow-wrap: anywhere; }
.tr-ob-w-title:hover { text-decoration: underline; }
.tr-ob-w-day { color: var(--text-2); font-size: 12.5px; }
.tr-ob-w-pts { flex: none; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tr-ob-w.is-missed { background: transparent; border: 1px dashed var(--line); }
.tr-ob-w.is-missed .tr-ob-w-pts { color: var(--text-2); font-weight: 600; }
.tr-ob-w-total { margin: 6px 0 0; font-size: 13.5px; font-weight: 700; text-align: right; padding: 0 10px; }
.tr-ob-more { margin: 0; padding: 0 6px; }
.tr-ob-rest { display: grid; gap: 4px; margin-top: 10px; padding-top: 10px; border-top: 2px solid var(--line); }
.tr-ob-rest-title { margin: 0; font-size: 15px; font-weight: 800; }
.tr-ob-rest-help { margin: 0 0 4px; }
.tr-ob-pinned { border-top: 2px dashed var(--line); padding-top: 6px; }
.tr-ob-how-list { margin: 0; padding-left: 18px; display: grid; gap: 6px; font-size: 14px; line-height: 1.5; color: var(--text-2); }
.tr-cancel-lead { margin: 0; }
@media (max-width: 380px) {
  .tr-ob-line { gap: 6px; grid-template-columns: 22px 32px minmax(0, 1fr) auto; padding: 8px 2px; }
  .tr-ob-points { font-size: 14px; padding-left: 4px; }
  .tr-ob-drop { padding: 0 2px 10px; }
  .tr-ob-w { padding: 6px 8px; }
}

/* A piece that counts on the leaderboard (training.on_board; the owner, 2026-10-27: "a red outline on the workout box ...
   so they are easily distinguishable"): the site's accent red, 2 px, on the card's rounded edge, and a red mark */
.tr-part.is-board { box-shadow: inset 0 0 0 2px var(--accent); }
.tr-board-mark { display: inline-flex; align-items: center; gap: 4px; padding: 2px 9px 2px 7px; border-radius: 999px;
  background: var(--accent); color: #fff; font-size: 12px; font-weight: 700; white-space: nowrap; }
.tr-board-mark .icon { flex: none; }
.tr-part-marks { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px; }
@media (forced-colors: active) {
  .tr-part.is-board { outline: 2px solid CanvasText; outline-offset: -2px; }
  .tr-board-mark { border: 1px solid CanvasText; }
}

/* SPEC 72 (2026-10-27): pounds or kilograms (section 4e). A weight box says the member's unit inside it, at the right */
.tr-unit-box { position: relative; min-width: 0; }
.field .tr-unit-box input:not([type="range"]):not([type="file"]):not([type="checkbox"]):not([type="radio"]) { padding-right: 40px; }
.tr-unit { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); pointer-events: none; font-size: 14px;
  font-weight: 700; color: var(--text-2); }
.tr-load .tr-unit-box { max-width: 260px; }
@media (min-width: 720px) {
  .tr-add-lift .tr-lift-form { grid-template-columns: minmax(0, 2fr) 80px minmax(0, 1fr) minmax(0, 1fr) auto; }
}
/* Max Reps (the workout builder's, 2026-10-27): the last set takes its weight and the reps they got, side by side */
.tr-set-max { grid-column: span 2; }
.tr-set-max-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.field .tr-reps-box input:not([type="range"]):not([type="file"]):not([type="checkbox"]):not([type="radio"]) { padding-right: 52px; }
.tr-load-row.tr-pair .tr-load .tr-unit-box { max-width: none; }
.tr-wb-last { color: var(--text-2); font-size: 13px; font-weight: 600; }  /* (a Max Reps row's last set, under the name) */
/* The Bodyweight checkmark (the owner, 2026-10-29): under a bodyweight movement's weight box(es). While it's ticked those
   boxes are off and empty (static/training.js): dimmed, their lb / kg too */
.tr-load .tr-bw-row { margin-top: 4px; }
.field .tr-unit-box input:disabled { opacity: .5; cursor: not-allowed; }
.field .tr-unit-box input:disabled::placeholder { color: transparent; }  /* (no grey "185" in a box that's off) */
.tr-unit-box:has(input:disabled) .tr-unit { opacity: .5; }

/* The desktop dashboard's parts of a piece's card (SPEC 72 section 4g, training_desk.py): they show only on the day page
   from 1100 px (static/training_desk.css), so phones, a piece's own page and the builder's preview stay as they were */
.trd-foot, .trd-level-note { display: none; }

/* A piece they've logged folds up on a phone (the owner, 2026-10-29: "I want the workouts to be start fully (as they are
   now) and be minimized upon athlete entry ... The completed or minimzed workout can be made full again by tapping"):
   training.folds draws it folded (.is-folded), its title a button ([data-tr-fold], aria-expanded) beside the title as it
   always was (.tr-fold-off). It folds only on the day page with its script ([data-tr-folds], set before the first paint)
   and only where the dashboard isn't: the @media is training_desk.MEDIA turned around (phones, a phone on its side, a
   computer's narrower window). There the button shows instead of the plain title, a folded piece shows only its title
   row, and the whole folded card is the button's to tap (a stacking of its own: the tap layer over the Leaderboard tag
   and the score chip, Save and Original above it keeping their own taps); static/training.js opens it, folds it again
   and folds it after a save. Everywhere else (no script, the dashboard, a piece's own page, the builder's preview)
   nothing folds and the title is the link it always was. */
.tr-fold { display: none; }
@media not (((min-width: 1100px) and (hover: hover) and (pointer: fine)) or ((min-width: 744px) and (min-height: 600px) and (pointer: coarse)) or ((min-width: 744px) and (max-width: 1099.98px) and (min-height: 600px) and (any-pointer: coarse))) {
  .tr-parts[data-tr-folds] .tr-fold { display: inline-block; margin: 0; padding: 0; border: 0; border-radius: 6px; background: none;
    color: inherit; font: inherit; letter-spacing: inherit; word-spacing: inherit; text-transform: inherit; text-align: left;
    cursor: pointer; -webkit-tap-highlight-color: transparent; }
  .tr-parts[data-tr-folds] .tr-fold-off { display: none; }
  .tr-parts[data-tr-folds] .tr-fold > .icon { vertical-align: -0.1em; margin-left: 2px; color: var(--text-2); transition: transform .2s ease; }
  .tr-parts[data-tr-folds] .tr-fold[aria-expanded="true"] > .icon { transform: rotate(180deg); }
  .tr-parts[data-tr-folds] .tr-fold:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
  .tr-parts[data-tr-folds] > .tr-part.is-folded > :not(.tr-part-head):not(.tre-orig) { display: none; }
  .tr-parts[data-tr-folds] > .tr-part.is-folded { position: relative; z-index: 0; }
  .tr-parts[data-tr-folds] > .tr-part.is-folded .tr-fold::after { content: ""; position: absolute; inset: 0; z-index: 1; }
  .tr-parts[data-tr-folds] > .tr-part.is-folded .trm-save-form { z-index: 2; }
  .tr-parts[data-tr-folds] > .tr-part.is-folded .tre-orig-face { position: relative; z-index: 2; }
}
@media (prefers-reduced-motion: reduce) { .tr-fold > .icon { transition: none !important; } }

/* Touch screens (style.css's "Touch screens", 2026-10-29: a phone, or a tablet away from the dashboard, whose own touch
   block is in training_desk.css): a piece's actions at least 44 x 44 px for a finger. Its folds (the other levels, Coach's
   notes, the whiteboard) are 44 px rows; its title's link, a whiteboard row's picture and name and the points on the
   board get their 44 px from padding taken back by a negative margin, so nothing on the page moves; likes, comments and
   ×, the whiteboard's level tabs, Report's list and the comment box are 44 px. The week's arrows are 44 px squares in
   their 36 px of room. A movement's demo link inside a piece's own words stays the size of the words around it. */
@media (pointer: coarse) {
  .tr-week-arrow { margin-inline: -4px; }
  .tr-part-title a { display: inline-block; padding-block: 10px; margin-block: -10px; }
  .tr-parts[data-tr-folds] .tr-fold { padding-block: 10px; margin-block: -10px; }   /* (a logged piece's title, 2026-10-29) */
  .tr-more > summary, .tr-wb > summary { min-height: 44px; }
  .tr-wb-tab { min-height: 44px; }
  .tr-wb-pic { padding: 6px; margin: -6px; }
  .tr-wb-who > .tr-wb-name { padding-block: 11px; margin-block: -11px; }
  .tr-comment .tr-wb-name, .tr-wb-body > .link, .tr-pct a.link { display: inline-block; padding-block: 13px; margin-block: -13px; }
  .tr-comment .tr-wb-name { min-width: 44px; padding-inline: 10px; margin-inline: -10px; }
  .tr-like, .tr-open { min-width: 44px; min-height: 44px; justify-content: center; }
  .tr-report select, .tr-comment-form input { min-height: 44px; }
  .tr-ob-points { min-height: 44px; margin-block: -11px; }
  .tr-board-line, .tr-crumbs .link { min-height: 44px; }
  .tr-foot .link { display: inline-flex; align-items: center; min-height: 44px; }
  .tr-demo .link { padding-block: 13px; margin-block: -5px -13px; }
  /* (someone else's comment has its Report list and button under it on every screen now: .tr-comment > .tr-report above) */
}
