/* The reports website's own pages (12 Oct 2026): sign-up, invitations,
   buying a report, orders, account, how to record. The library's look
   (library.html) carries on: paper, ink, Georgia headings. */

/* the navigation in the header (16 Oct 2026): pill links and the one call to
   action; on a phone, a Menu button opens them under the header */
.pf-nav { display: flex; align-items: center; gap: 2px; }
.pf-nav a { padding: 8px 12px; border-radius: 999px; color: var(--secondary); font-size: 14px; line-height: 18px; white-space: nowrap; }
.pf-nav a:hover { color: var(--ink); background: rgba(28,30,34,0.05); }
.pf-nav a.on { color: var(--ink); background: rgba(28,30,34,0.08); }
.pf-nav a.cta { margin-left: 8px; background: var(--ink); color: var(--paper); }
.pf-nav a.cta:hover, .pf-nav a.cta.on { background: #33363C; color: var(--paper); }
.pf-menu { display: none; }
@media (max-width: 900px) {
  .pf-menu { display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--ink); font: inherit; font-size: 14px; cursor: pointer; }
  .pf-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 2px; padding: 10px 16px 18px; background: var(--paper); border-bottom: 1px solid var(--line); box-shadow: 0 22px 34px rgba(28,30,34,0.14); }
  .pf-nav.open { display: flex; }
  .pf-nav a { padding: 14px 14px; font-size: 16px; border-radius: 12px; }
  .pf-nav a.cta { margin: 8px 0 0; text-align: center; }
}

/* forms */
form.pf { display: flex; flex-direction: column; gap: 16px; max-width: 480px; }
form.pf label, form.pf .label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--secondary); }
form.pf input, form.pf select { font: inherit; font-size: 16px; padding: 11px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--ink); min-height: 44px; }
form.pf input:focus, form.pf select:focus, .btn:focus-visible, .choice:focus-within { outline: 2px solid var(--ink); outline-offset: 2px; }
form.pf input[aria-invalid="true"], form.pf select[aria-invalid="true"] { border-color: var(--accent); }
form.pf .hint { display: block; min-height: 0; padding: 0; border: 0; border-radius: 0; background: none; cursor: auto; font-size: 12px; line-height: 16px; color: var(--muted); }  /* not the report pages' .hint pill */
form.pf .fielderr { font-size: 13px; color: var(--accent); }
form.pf fieldset { border: 0; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
form.pf legend { font-size: 13px; color: var(--secondary); padding: 0; margin-bottom: 6px; }
.radios { display: flex; flex-wrap: wrap; gap: 8px; }
.radios label { flex-direction: row !important; align-items: center; gap: 8px !important; padding: 10px 14px; border: 1px solid var(--line); border-radius: 22px; background: var(--surface); color: var(--ink) !important; font-size: 15px !important; cursor: pointer; min-height: 44px; }
.radios input { min-height: 0 !important; margin: 0; accent-color: var(--ink); }
.pair { display: flex; gap: 10px; align-items: flex-end; }
.pair > * { flex: 1; min-width: 0; }
.code-input { letter-spacing: 6px; font-size: 24px !important; text-align: center; max-width: 220px; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 18px; border: 0; border-radius: 12px; background: var(--ink); color: var(--paper); font: inherit; font-size: 15px; cursor: pointer; text-decoration: none; }
.btn:hover { color: var(--paper); background: #33363C; }
.btn[disabled] { opacity: 0.5; cursor: default; }
.btn.secondary { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.btn.secondary:hover { background: var(--surface); color: var(--ink); }
.btn.small { min-height: 36px; padding: 6px 12px; font-size: 13px; border-radius: 10px; }
.btn.accent { background: var(--accent); }
.btn.accent:hover { background: var(--accent-dark); }
.actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.linkish { background: none; border: 0; padding: 0; font: inherit; color: var(--accent); cursor: pointer; text-decoration: none; }
.linkish:hover { color: var(--accent-dark); }

/* notes and banners */
.notice { border-radius: 12px; padding: 14px 16px; background: var(--elevated); border: 1px solid var(--line); font-size: 14px; line-height: 20px; color: var(--secondary); }
.notice.warn { border-color: #E8C9A0; background: #FBF1E2; color: #6B4A12; }
.notice.good { border-color: #BFD9C5; background: #EEF6F0; color: #24543A; }
.notice strong { color: var(--ink); }
.divider { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 13px; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
#pf-apple { min-height: 44px; max-width: 320px; }
.signin-extra { display: flex; flex-direction: column; gap: 14px; max-width: 420px; }

/* the report list: the row and its PDF side by side */
.reportline { display: flex; align-items: center; gap: 10px; border-bottom: 1px solid var(--line); }
.reportline.first { border-top: 1px solid var(--line); }
.reportline > a.row { flex: 1; min-width: 0; border-bottom: 0; }
.reportline > a.row.first { border-top: 0; }
.reportline .btn { flex-shrink: 0; }
@media (max-width: 480px) {
  .reportline { flex-wrap: wrap; padding-bottom: 12px; }
  .reportline > a.row { flex-basis: 100%; }
}

/* buying: the two products, the clips */
.choices { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; }
.choice { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); cursor: pointer; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice.on { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.choice .t { font-family: Georgia, serif; font-size: 20px; line-height: 24px; }
.choice .price { font-family: Georgia, serif; font-size: 28px; line-height: 30px; }
.steps { display: flex; gap: 6px; font-size: 12px; letter-spacing: 0.6px; text-transform: uppercase; color: var(--muted); flex-wrap: wrap; }
.steps span.on { color: var(--ink); }
.tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.cliplist { display: flex; flex-direction: column; }
.clipitem { display: flex; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.clipitem:first-child { border-top: 1px solid var(--line); }
.clipitem .thumb { width: 96px; height: 54px; border-radius: 8px; background: #1C1E22; object-fit: cover; flex-shrink: 0; }
.clipitem.on { background: rgba(255,255,255,0.6); }
.preview video { width: 100%; max-height: 50vh; border-radius: 12px; background: #1C1E22; display: block; }
.progress { height: 8px; border-radius: 4px; background: var(--line); overflow: hidden; }
.progress > div { height: 100%; width: 0; background: var(--ink); transition: width 0.2s; }
.summary { display: flex; flex-direction: column; }
.summary .row .value { font-size: 16px; }

/* how to record */
/* the guide: 16:9 on a wide screen, 4:5 (and no taller than the screen) on a phone */
.guide { margin: 8px 0 0; display: flex; flex-direction: column; gap: 8px; }
.guide video { width: 100%; display: block; border-radius: 14px; background: #0b1220; aspect-ratio: 16 / 9; }
.guide video.tall { aspect-ratio: 4 / 5; max-height: 82vh; width: auto; max-width: 100%; margin: 0 auto; }
.guide figcaption { font-size: 13px; line-height: 18px; color: var(--on-night-dim); }
.demo { display: grid; grid-template-columns: 1fr; gap: 16px; }
/* side 16:9 and rear 4:3 at the same height: widths in the ratio 4 : 3 */
@media (min-width: 680px) { .demo.two { grid-template-columns: 4fr 3fr; } }
.demo figure { margin: 0; display: flex; flex-direction: column; gap: 8px; }
.demo video { width: 100%; border-radius: 12px; background: #1C1E22; display: block; aspect-ratio: 4 / 3; object-fit: cover; }
.demo video.wide { aspect-ratio: 16 / 9; }
.card .t.mono { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 22px; letter-spacing: 1px; }
form.pf .label input[name="height_cm"] { max-width: 180px; }
.demo figcaption { font-size: 13px; line-height: 18px; color: var(--secondary); }
ol.howto, ul.howto { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 8px; font-size: 15px; line-height: 21px; }
.howpanel { display: flex; flex-direction: row; gap: 14px; align-items: flex-start; }
.howpanel video { width: 160px; border-radius: 10px; background: #1C1E22; flex-shrink: 0; }
@media (max-width: 520px) { .howpanel { flex-direction: column; } .howpanel video { width: 100%; } }

/* orders */
.stage { font-size: 12px; letter-spacing: 0.6px; text-transform: uppercase; }
.mono { font-family: ui-monospace, Menlo, Consolas, monospace; letter-spacing: 0.5px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); border: 0; }
/* a heading focused for screen readers when a page draws needs no ring */
h1[tabindex="-1"]:focus { outline: none; }

/* The staff area (14 Oct 2026): the access map for reviewers. Same paper,
   ink and accent as the rest of the website; amber marks a thing to check. */
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.staff-row { align-items: flex-start; }
.staff-row .dot { margin-top: 6px; }
.staff-row .chev { align-self: center; }
.staff-row .chips { margin-top: 8px; }
form.pf.search-row { flex-direction: row; align-items: flex-end; gap: 10px; max-width: 560px; }
form.pf.search-row label { flex: 1; min-width: 0; }
form.pf.search-row .btn { min-height: 46px; }
:root { --warn-bg: #FBF1E2; --warn-line: #E8C9A0; --warn-ink: #6B4A12; --warn-dot: #C9862A; --good-bg: #EEF6F0; --good-line: #BFD9C5; --good-ink: #24543A; --good-dot: #3D8A55; }
/* .tag, not .chip: the report pages' .chip (library.html) keeps its own look */
.tag { display: inline-flex; align-items: center; padding: 3px 9px; border-radius: 999px; font-size: 12px; line-height: 16px; white-space: nowrap;
  background: var(--surface); border: 1px solid var(--line); color: var(--secondary); }
.tag.warn { background: var(--warn-bg); border-color: var(--warn-line); color: var(--warn-ink); }
.tag.good { background: var(--good-bg); border-color: var(--good-line); color: var(--good-ink); }
.tag.staff { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.staff-nav { margin-top: -8px; }
.qr { width: 200px; height: 200px; background: #FFFFFF; border-radius: 12px; padding: 8px; border: 1px solid var(--line); }
.secret { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 13px; word-break: break-all; }
.codes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 16px; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 15px; }
.player { display: flex; flex-direction: column; gap: 8px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.player:first-child { border-top: 1px solid var(--line); }
.player .title { font-size: 15px; line-height: 20px; }
.player .sub { font-size: 13px; line-height: 17px; color: var(--secondary); margin-top: 2px; }
.viewers { display: flex; flex-direction: column; gap: 3px; padding: 2px 0 2px 12px; border-left: 2px solid var(--line); }
.viewers .report-head { font-size: 13px; line-height: 18px; color: var(--ink); }
.viewers .who { font-size: 13px; line-height: 18px; color: var(--ink); }
.viewers .why { color: var(--secondary); }
.viewers .lead { font-size: 11px; line-height: 14px; letter-spacing: 0.8px; text-transform: uppercase; color: var(--secondary); margin-top: 2px; }
.notice ul { margin: 6px 0 0; padding-left: 18px; }
/* the staff area's changes (15 Oct 2026): small actions that open an inline check */
.act { margin-top: 8px; }
form.pf.confirm { gap: 10px; max-width: 520px; padding: 12px; background: var(--surface); border: 1px solid var(--ink); border-radius: 12px; }
form.pf.confirm .caption { margin: 0; color: var(--ink); }
.btn.danger { background: var(--accent); }
.btn.danger:hover { background: var(--accent-dark); }
.player-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-start; }
.player-actions .act { margin-top: 0; }
.player-actions .act:has(form) { flex-basis: 100%; }
.btn.secondary.quiet-danger { color: var(--accent-dark); border-color: currentColor; }
fieldset.who-sees { border: 0; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
fieldset.who-sees legend { font-size: 11px; line-height: 14px; letter-spacing: 0.8px; text-transform: uppercase; color: var(--secondary); padding: 0; margin-bottom: 4px; }
.ticks { display: flex; flex-wrap: wrap; gap: 8px; }
label.tick { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; min-height: 40px; border: 1px solid var(--line); border-radius: 22px; background: var(--surface); color: var(--ink); font-size: 14px; cursor: pointer; }
label.tick input { width: 18px; height: 18px; margin: 0; accent-color: var(--ink); }
label.tick:has(input:disabled) { opacity: 0.55; cursor: default; }
label.tick:focus-within { outline: 2px solid var(--ink); outline-offset: 2px; }
.twin { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; font-size: 13px; color: var(--secondary); }
.twin .q { color: var(--ink); }
.twin .act { margin-top: 0; }
.twin .act:has(form) { flex-basis: 100%; }
.row.undone .title { color: var(--muted); text-decoration: line-through; }
.invite { display: flex; flex-direction: column; gap: 6px; }
.invite .act { margin-top: 0; }
.invite input[readonly] { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 13px; }
.links { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.upload { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 8px; }
.upload input[type="file"] { font: inherit; font-size: 13px; max-width: 100%; }
.upload input[type="file"]::file-selector-button { font: inherit; min-height: 36px; padding: 6px 12px; margin-right: 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--ink); cursor: pointer; }
@media (max-width: 560px) { .btn.small, label.tick { min-height: 44px; } }
/* hidden means hidden, even on elements the staff area lays out with flex */
.upload[hidden], .act [hidden], .btn[hidden] { display: none !important; }
/* Report design (15 Oct 2026) */
.design-group { margin-top: 6px; }
.design-group.off { opacity: 0.6; }
.design-state .player-actions { margin-top: 8px; }
.preview-banner a { font-weight: 600; }
/* An area then and now (16 Oct 2026): the old PaceFlow on the left, now on the
   right, one person to a row; amber marks what is different. The staff pages
   take a wider column than the client's, for the two sides. */
body.staff-wide .wrap { max-width: 1080px; }
.tn-grid { display: flex; flex-direction: column; }
.tn-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 24px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.tn-row > .tn-then, .tn-row > .tn-now { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.tn-row .title { font-size: 15px; line-height: 20px; }
.tn-then .title { color: var(--secondary); }
.tn-row .sub { font-size: 13px; line-height: 18px; color: var(--secondary); overflow-wrap: anywhere; }
.tn-row .sub.changed { color: var(--warn-ink); }
.tn-row .sub.muted { color: var(--muted); }
.tn-row.diff .tn-now { background: var(--warn-bg); border-radius: 10px; padding: 8px 10px; margin: -8px 0; }
.tn-row .chips, .tn-row .player-actions { margin-top: 6px; }
.tn-head { padding: 0 0 8px; font-size: 11px; line-height: 14px; letter-spacing: 0.8px; text-transform: uppercase; color: var(--secondary); }
.tn-k { display: none; font-size: 11px; line-height: 14px; letter-spacing: 0.8px; text-transform: uppercase; color: var(--muted); }
.tn-more { grid-column: 1 / -1; display: flex; flex-direction: column; gap: 10px; margin-top: 14px; padding: 4px 0 4px 14px; border-left: 2px solid var(--ink); }
.tn-more[hidden] { display: none; }
.tn-toggle { align-self: flex-start; margin-top: 6px; font-size: 13px; min-height: 32px; }
@media (max-width: 680px) {
  .tn-row { grid-template-columns: minmax(0, 1fr); row-gap: 10px; }
  .tn-head { display: none; }
  .tn-k { display: block; }
  .tn-row.diff .tn-now { margin: 0; }
  .tn-toggle { min-height: 44px; }
}
.tile.diff { border-color: var(--warn-line); background: var(--warn-bg); }
.tile .arrow { margin: 0 6px; color: var(--muted); font-size: 18px; }
@media (min-width: 640px) { .tiles.n2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .tiles.n3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.card.area-state .act { margin-top: 0; }
.statusline { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.progress-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 16px; }
.progress-card .progress > div { background: var(--good-dot); }
.warn-ink { color: var(--warn-ink); }
.check { display: flex; flex-direction: column; gap: 6px; margin: 2px 0 4px; }
.check .act { margin-top: 0; }
.checkline { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.row.quiet .title { color: var(--muted); }
.preview-banner .check { margin-top: 10px; }
.player-actions[hidden] { display: none !important; }
.card.area-state { flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; }
.area-now { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.player-reports { display: flex; flex-direction: column; gap: 10px; }
.names-toggle { align-self: flex-start; font-size: 13px; line-height: 18px; text-align: left; }
.names-toggle.changed { color: var(--warn-ink); }
.tn-row .names { font-size: 13px; line-height: 18px; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 6px 9px; }
.tn-row .names[hidden] { display: none; }
.tn-row.focus { outline: 2px solid var(--ink); outline-offset: 4px; border-radius: 10px; }
a.person-link { color: inherit; text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 3px; }
a.person-link:hover { color: var(--accent); text-decoration-color: currentColor; }
.emails { display: flex; flex-direction: column; gap: 6px; }
.emails .lead { font-size: 11px; line-height: 14px; letter-spacing: 0.8px; text-transform: uppercase; color: var(--secondary); }
.email-line { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-size: 14px; }
.email-line .k { min-width: 110px; color: var(--secondary); font-size: 13px; }
.email-line .act { margin-top: 0; }
.email-line .act:has(form) { flex-basis: 100%; }

/* A coach's own squad (16 Oct 2026): the players and coaches to choose, as a wrapping list of checkboxes */
.own-squad { display: grid; gap: 8px; margin: 6px 0; }
.own-squad .picks { display: flex; flex-wrap: wrap; gap: 6px 14px; }
.own-squad .pick { display: inline-flex; align-items: center; gap: 4px; font-size: 14px; }
/* squads (21 Oct 2026): what was said, a code and its message to send */
.said-t { display: block; color: var(--ink); }
.said { display: block; white-space: pre-line; margin-top: 4px; }
.code-show { font-size: 26px; line-height: 32px; letter-spacing: 4px; color: var(--ink); }
.sharebox { display: flex; flex-direction: column; gap: 8px; }
.sharebox textarea { width: 100%; box-sizing: border-box; resize: vertical; font: inherit; font-size: 14px; line-height: 20px; padding: 10px 12px;
  border: 1px solid var(--line); border-radius: 10px; background: var(--elevated); color: var(--ink); }
.player .fielderr:empty { display: none; }
.actions > .act { margin-top: 0; }

/* the staff area's "View as" window (23 Oct 2026): the customer's own website, framed, with Exit */
.viewas { position: fixed; inset: 0; z-index: 1000; display: flex; flex-direction: column; padding: 16px; background: rgba(28, 30, 34, 0.6); }
.viewas-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 14px; border-radius: 14px 14px 0 0; background: var(--ink); color: var(--paper); font-size: 14px; }
.viewas-bar .btn { background: var(--paper); color: var(--ink); }
.viewas-bar .btn:hover { background: #FFFFFF; color: var(--ink); }
.viewas-frame { flex: 1; width: 100%; border: 0; border-radius: 0 0 14px 14px; background: var(--paper); }
html.viewas-open, html.viewas-open body { overflow: hidden; }
@media (max-width: 640px) { .viewas { padding: 0; } .viewas-bar, .viewas-frame { border-radius: 0; } }

/* the "View as" window over an account that has not agreed to the terms yet (6 Nov 2026) */
.notice.viewas-terms { margin: 16px 0 0; }
