/* Athlete Home and the player sidebar (home.js). Owner: Dan. Built from Daniel's mockup, 2026-10-18. */
body.player-mode { background: #07090d; }
body.player-mode .topbar { display: none; }
body.player-mode main { max-width: none; padding: 0; margin: 0; }

.pw { --pw-bg: #07090d; --pw-card: #0f131a; --pw-line: #1d232d; --pw-text: #e8ebf0; --pw-muted: #8b93a1; --pw-blue: #2f6fed;
  display: grid; grid-template-columns: 236px minmax(0, 1fr); min-height: 100svh; background: var(--pw-bg); color: var(--pw-text); }
.pw .ic { width: 20px; height: 20px; flex-shrink: 0; }

/* Sidebar */
.pw-side { position: sticky; top: 0; height: 100svh; display: flex; flex-direction: column; padding: 26px 16px 20px; border-right: 1px solid var(--pw-line); }
.pw-logo { display: flex; align-items: center; gap: 12px; padding: 0 10px; color: #fff; text-decoration: none; font-family: var(--display); font-size: 16px; letter-spacing: 0.04em; }
.pw-logo svg { height: 28px; }
.pw-label { margin: 30px 12px 10px; font-size: 13px; color: var(--pw-muted); }
.pw-side nav { display: grid; gap: 6px; margin-top: 32px; }
.pw-item { display: flex; align-items: center; gap: 14px; padding: 10px 14px; border-radius: 10px; font-size: 15px; color: #cfd4dc; text-decoration: none; }
.pw-item:hover { background: #121823; color: #fff; }
.pw-item.on { background: #1b2a47; color: #fff; }
.pw-item.on .ic { color: #6f9bff; }
.pw-me { margin-top: auto; display: flex; align-items: center; gap: 12px; padding: 16px 6px 0; }
.pw-av { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: #1b2a47; color: #fff; font-weight: 600; font-size: 13px; flex-shrink: 0; }
.pw-me div { display: grid; min-width: 0; }
.pw-me b { font-size: 14px; font-weight: 600; color: #fff; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pw-me span { font-size: 12px; color: var(--pw-muted); }
.pw-me button { margin-left: auto; background: none; border: 0; color: var(--pw-muted); cursor: pointer; padding: 4px; }
.pw-me button:hover { color: #fff; }
.pw-main { min-width: 0; padding: 28px 36px 40px; }
.pw-main > :not(.ph) { max-width: 1100px; }
.pw-tabs { display: none; }

/* Home */
.ph { max-width: 1100px; display: grid; gap: 14px; }
.ph h1, .ph h2, .ph h3 { font-family: var(--body); text-transform: none; font-weight: 700; line-height: 1.15; }
.ph-head h1 { font-size: 32px; letter-spacing: -0.01em; }
.ph-head p { margin-top: 6px; font-size: 15px; color: var(--pw-muted); }
.ph-muted { color: var(--pw-muted); font-size: 13px; }
.ph-eyebrow { font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--pw-muted); }
.ph-card { background: var(--pw-card); border: 1px solid var(--pw-line); border-radius: 14px; padding: 16px 18px; color: inherit; text-decoration: none; }
.ph-btn { display: inline-flex; align-items: center; gap: 10px; padding: 9px 20px; border-radius: 999px; font-size: 14px; font-weight: 600; cursor: pointer; text-decoration: none; border: 1px solid transparent; width: max-content; }
.ph-btn .ic { width: 16px; height: 16px; }
.ph-btn.solid { background: #fff; color: #000; }
.ph-btn.ghost { background: transparent; color: #fff; border-color: #333b48; }
.ph-btn.ghost:hover { border-color: #56607000; background: #161c26; }

.ph-course { display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: 28px; padding: 0; overflow: hidden; }
.ph-course-art { position: relative; min-height: 160px; background: #000 var(--img) center / cover; }
.ph-play { position: absolute; inset: 0; margin: auto; display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%; background: #fff; color: #000; }
.ph-play .ic { width: 22px; height: 22px; fill: #000; margin-left: 3px; }
.ph-tag { position: absolute; left: 14px; bottom: 14px; padding: 4px 8px; border-radius: 6px; background: rgba(0,0,0,.6); font-size: 11px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; }
.ph-course-body { display: grid; align-content: center; gap: 6px; padding: 16px 20px 16px 0; }
.ph-course-body h2 { font-size: 21px; }
.ph-prog { display: flex; align-items: center; gap: 18px; margin: 6px 0 6px; }
.ph-prog span { font-size: 14px; color: var(--pw-muted); white-space: nowrap; }
.ph-bar { flex: 1; height: 8px; border-radius: 99px; background: #262d38; overflow: hidden; }
.ph-bar i { display: block; height: 100%; background: var(--pw-blue); border-radius: 99px; }

.ph-two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.ph-steps, .ph-perf { display: flex; flex-direction: column; gap: 14px; }
.ph-steps > .ph-btn, .ph-perf > .ph-btn { margin-top: auto; } /* both buttons line up at the bottom of their cards */
.ph-card-h { display: flex; align-items: flex-start; gap: 14px; }
.ph-card-h h3 { font-size: 16px; margin-bottom: 3px; }
.ph-icbox { display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid #333b48; border-radius: 12px; flex-shrink: 0; }
.ph-icbox .ic { width: 22px; height: 22px; }
.ph-chev { display: none; margin-left: auto; color: var(--pw-muted); }
.ph-track { display: flex; align-items: flex-start; padding: 0 6px; }
.ph-step { display: grid; justify-items: center; gap: 10px; width: 28px; }
.ph-step small { font-size: 13px; color: #c3c9d3; white-space: nowrap; }
.ph-track .ph-line { margin-top: 13px; }
.ph-dot { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; border: 2px solid #4a5260; flex-shrink: 0; }
.ph-dot.on { background: var(--pw-blue); border-color: var(--pw-blue); }
.ph-dot .ic { width: 15px; height: 15px; color: #fff; }
.ph-line { flex: 1; height: 2px; background: #333b48; }
.ph-line.on { background: var(--pw-blue); } /* both ends done */
.ph-line.half { background: linear-gradient(90deg, var(--pw-blue) 50%, #333b48 50%); } /* heading to the next step */
.ph-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.ph-metric { position: relative; display: grid; gap: 2px; padding: 10px 12px; border-radius: 10px; background: #151a23; color: inherit; text-decoration: none; }
.ph-metric:hover { background: #1a202b; }
.ph-plus { position: absolute; top: 10px; right: 10px; display: grid; place-items: center; width: 20px; height: 20px; border: 1.5px solid #c3c9d3; border-radius: 50%; font-style: normal; font-size: 15px; line-height: 1; }
.ph-pill { display: inline-block; margin-left: auto; padding: 3px 10px; border: 1px solid #333b48; border-radius: 999px; font-size: 12px; font-weight: 500; color: #c3c9d3; white-space: nowrap; align-self: flex-start; }
h3 .ph-pill { margin-left: 8px; vertical-align: 2px; }
.ph-pill.good { border-color: #1f5f3a; background: #0f2a1b; color: #6fdc8c; }

/* The call */
.ph-call { display: grid; gap: 10px; }
.ph-call-h { display: flex; align-items: center; gap: 12px; }
.ph-call-h h3 { font-size: 16px; }
.ph-live { padding: 3px 10px; border-radius: 6px; background: #e5484d; color: #fff; font-size: 12px; font-weight: 700; letter-spacing: 0.06em; }
.ph-call-b { display: flex; gap: 18px; align-items: flex-start; }
.ph-call-b b { display: block; font-size: 15px; margin-bottom: 2px; }
.ph-call-f { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; padding: 8px 12px; border-radius: 10px; background: #151a23; }
.ph-when { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: #e8ebf0; }
.ph-when .ic { width: 16px; height: 16px; color: var(--pw-muted); }
.ph-call-art { flex-shrink: 0; width: 180px; aspect-ratio: 199 / 84; border-radius: 10px; background: #000 var(--img) center / cover; }
.ph-metric span { font-size: 13px; color: #c3c9d3; }
.ph-metric b { font-size: 18px; }
.ph-metric small { font-size: 12px; color: var(--pw-muted); }
.ph-soon { padding: 14px; border-radius: 10px; background: #151a23; }

.ph-recs-h { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 12px; }
.ph-recs-h h2 { font-size: 18px; margin-bottom: 2px; }
.ph-recs-h a { display: inline-flex; align-items: center; gap: 6px; color: #5b8cff; text-decoration: none; font-size: 15px; white-space: nowrap; }
.ph-recs-h a .ic { width: 16px; height: 16px; }
.ph-rec-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.ph-rec { display: grid; gap: 8px; color: inherit; text-decoration: none; }
.ph-rec > .ic { display: none; }
.ph-rec-art { position: relative; aspect-ratio: 16 / 6; border-radius: 10px; background: #000 var(--img) center / cover; }
.ph-dur { position: absolute; right: 8px; bottom: 8px; padding: 2px 7px; border-radius: 5px; background: rgba(0,0,0,.75); font-size: 12px; font-weight: 600; }
.ph-rec-t { display: grid; gap: 6px; }
.ph-rec-t b { font-size: 14px; }
.ph-rec-t span { font-size: 13px; color: var(--pw-muted); }
.ph-rec:hover b { text-decoration: underline; }

.ph-sheet { margin: auto; width: min(440px, calc(100% - 32px)); padding: 0; border: 1px solid var(--pw-line, #1d232d); border-radius: 16px; background: #0f131a; color: #e8ebf0; }
.ph-sheet::backdrop { background: rgba(0,0,0,.7); }
.ph-form { display: grid; gap: 14px; padding: 24px; }
.ph-form h2 { font-family: var(--body); text-transform: none; font-weight: 700; font-size: 20px; }
.ph-form label { display: grid; gap: 6px; font-size: 13px; color: #c3c9d3; }
.ph-form input, .ph-form select { padding: 12px; border-radius: 10px; border: 1px solid #2a313d; background: #07090d; color: #fff; }
.ph-form-actions { display: flex; justify-content: flex-end; gap: 10px; }

/* Check In: blue button in the Home header + the QR pass */
.ph-head-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.ph-btn.blue:hover { filter: brightness(1.1); } /* .ph-btn.blue itself is defined below */
.ph-ci-btn { flex-shrink: 0; margin-top: 4px; }
.ph-ci .ph-form { justify-items: center; text-align: center; }
.ph-ci .ph-form-actions { justify-self: stretch; }
.ph-ci-qr { width: min(260px, 100%); aspect-ratio: 1; display: grid; place-items: center; padding: 10px; border-radius: 14px; background: #fff; }
.ph-ci-qr svg { width: 100%; height: 100%; display: block; }
.ph-ci-qr:empty::after { content: "Loading"; color: #6b7280; font-size: 13px; }
.ph-ci-code { display: grid; gap: 6px; color: #111; }
.ph-ci-code span { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: #6b7280; }
.ph-ci-code b { font-size: 28px; letter-spacing: .12em; }
.ph-ci-who { display: grid; gap: 4px; }
.ph-ci-who b { font-size: 16px; }
.ph-ci-who span { font-size: 13px; color: var(--pw-muted); }

/* Phone: bottom tabs, stacked cards (the mockup's right side) */
@media (max-width: 860px) {
  .pw { grid-template-columns: 1fr; }
  .pw-side { display: none; }
  .pw-main { padding: 24px 16px 96px; }
  .pw-tabs { position: fixed; left: 0; right: 0; bottom: 0; z-index: 10; display: grid; grid-template-columns: repeat(4, 1fr); padding: 8px 0 calc(8px + env(safe-area-inset-bottom)); background: rgba(10,13,18,.96); border-top: 1px solid var(--pw-line); backdrop-filter: blur(10px); }
  .pw-tabs a { display: grid; justify-items: center; gap: 4px; font-size: 11px; color: var(--pw-muted); text-decoration: none; }
  .pw-tabs a.on { color: #5b8cff; }
  .ph-head h1 { font-size: 32px; }
  .ph-head p { font-size: 15px; }
  .ph-head-row { flex-direction: column; gap: 14px; }
  .ph-ci-btn { width: 100%; justify-content: center; margin-top: 0; }
  .ph-course { grid-template-columns: 1fr; gap: 0; }
  .ph-course-art { min-height: 170px; }
  .ph-course-body { padding: 16px; }
  .ph-course-body h2 { font-size: 18px; }
  .ph-course-body .ph-eyebrow, .ph-course-body > .ph-muted { display: none; }
  .ph-course .ph-btn { width: 100%; justify-content: center; }
  .ph-two { grid-template-columns: 1fr; }
  .ph-card { padding: 16px; }
  .ph-card.ph-course { padding: 0; }
  .ph-chev { display: block; }
  .ph-steps > .ph-btn { width: 100%; justify-content: center; }
  .ph-perf > .ph-btn { width: 100%; justify-content: center; }
  .ph-icbox { width: 44px; height: 44px; }
  .ph-card-h h3 { font-size: 16px; }
  .ph-metric { padding: 10px; }
  .ph-metric b { font-size: 16px; }
  .ph-step small { font-size: 11px; }
  .ph-call-f .ph-btn { width: 100%; justify-content: center; }
  .ph-call-art { width: 104px; }
  .ph-recs-h p { display: none; }
  .ph-recs-h h2 { font-size: 18px; }
  .ph-rec-row { grid-template-columns: 1fr; gap: 12px; }
  .ph-rec { grid-template-columns: 96px minmax(0, 1fr) 20px; align-items: center; }
  .ph-rec > .ic { display: block; color: var(--pw-muted); }
  .ph-rec-art { aspect-ratio: 4 / 3; }
}

/* Athlete Profile checklist */
.ph-hint { margin-top: 6px; }
.ph-checks { list-style: none; padding: 0; display: grid; gap: 8px; font-size: 14px; color: #e8ebf0; }
.ph-checks li { display: flex; align-items: center; gap: 14px; }
.ph-checks li > span { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid #8b93a1; flex-shrink: 0; }
.ph-checks li.on > span { background: #3fbf6a; border-color: #3fbf6a; }
.ph-checks li.on .ic { width: 14px; height: 14px; color: #07090d; stroke-width: 3; }

/* My Profile (profile.js) */
.pf-top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 400px); gap: 14px; align-items: end; }
.pf-id h1 { font-size: 36px; margin: 2px 0 4px; }
.pf-line { font-size: 16px; color: #c3c9d3; }
.pf-chips { display: flex; gap: 8px; margin-top: 8px; }
.pf-chips .ph-pill { margin: 0; }
.pf-side { display: grid; gap: 10px; justify-items: end; }
.pf-strength { width: 100%; cursor: pointer; text-align: left; font: inherit; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 16px; align-items: center; }
.pf-ok { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 15px; margin-bottom: 4px; }
.pf-tick { display: grid; place-items: center; width: 18px; height: 18px; border-radius: 4px; background: #3fbf6a; }
.pf-tick .ic { width: 12px; height: 12px; color: #07090d; stroke-width: 3; }
.pf-ring { grid-row: 1; grid-column: 2; display: grid; place-items: center; width: 68px; height: 68px; border-radius: 50%;
  background: radial-gradient(closest-side, var(--pw-card) 80%, transparent 81%), conic-gradient(#3fbf6a calc(var(--p) * 1%), #262d38 0); }
.pf-ring b { font-size: 15px; }
.pf-ring-l { grid-column: 2; font-size: 12px; color: var(--pw-muted); text-align: center; }
.pf-facts { display: grid; grid-template-columns: 170px repeat(5, minmax(0, 1fr)); gap: 12px; align-items: stretch; padding: 12px; }
.pf-photo { display: grid; place-items: center; align-content: center; gap: 4px; min-height: 104px; border-radius: 12px; border: 1px dashed #3a4456; background: #121823; color: #fff; cursor: pointer; font: inherit; }
.pf-photo:hover { border-color: #5b8cff; }
.pf-cam { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: #1b2a47; }
.pf-photo b { font-size: 13px; }
.pf-photo small { font-size: 11px; color: var(--pw-muted); }
.pf-fact { display: grid; align-content: center; gap: 6px; padding: 14px; border-radius: 10px; background: #151a23; min-width: 0; }
.pf-fact span { font-size: 13px; color: #c3c9d3; }
.pf-fact b { font-size: 20px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pf-sec-h { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 12px; }
.pf-sec-h h2, .pf-privacy h2 { font-size: 18px; margin-bottom: 3px; }
.pf-sec-h .ph-btn { flex-shrink: 0; }
.pf-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.pf-metric { display: flex; align-items: center; gap: 14px; padding: 14px; border-radius: 10px; background: #151a23; color: inherit; text-decoration: none; }
.pf-metric:hover { background: #1a202b; }
.pf-metric > div { flex: 1; display: grid; gap: 3px; min-width: 0; }
.pf-metric > .ic { color: var(--pw-muted); }
.pf-mic { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 10px; background: #0f131a; flex-shrink: 0; }
.pf-mlab { font-size: 14px; }
.pf-metric b { font-size: 20px; }
.pf-metric small { font-size: 12px; color: var(--pw-muted); }
.pf-badge { display: inline-block; padding: 1px 8px; border-radius: 999px; background: #1b2a47; color: #8fb0ff; font-size: 11px; font-weight: 700; }
.pf-badge.v { background: #0f2a1b; color: #6fdc8c; border: 1px solid #1f5f3a; }
.pf-vids { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.pf-vid { display: grid; gap: 4px; color: inherit; text-decoration: none; }
.pf-vid-art { position: relative; aspect-ratio: 16 / 8; border-radius: 10px; background: #151a23 var(--img) center / cover; margin-bottom: 6px; }
.pf-vid-art .ph-play { width: 42px; height: 42px; background: rgba(0,0,0,.55); color: #fff; border: 2px solid #fff; }
.pf-vid-art .ph-play .ic { fill: #fff; width: 18px; height: 18px; }
.pf-vid b { font-size: 14px; }
.pf-vid span { font-size: 12px; color: var(--pw-muted); }
.pf-vid-add { display: grid; place-items: center; align-content: center; gap: 6px; min-height: 130px; border: 1px dashed #333b48; border-radius: 10px; background: transparent; color: #fff; cursor: pointer; text-align: center; }
.pf-vid-add > span { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: #1b2230; }
.pf-vid-add small { color: var(--pw-muted); font-size: 12px; }
.pf-vid-add:hover { border-color: #56607a; }
.pf-ach-empty { display: flex; align-items: center; gap: 12px; padding: 14px; border: 1px dashed #333b48; border-radius: 10px; color: var(--pw-muted); font-size: 13px; }
.pf-ach-empty .ic { color: #f0b44c; }
.pf-privacy { display: flex; justify-content: space-between; align-items: center; gap: 18px; flex-wrap: wrap; }
.pf-privacy > div:first-child { max-width: 520px; }
.pf-out { justify-self: start; margin-top: 4px; }
@media (min-width: 861px) { .pf-out { display: none; } }   /* the sidebar already has Sign out */
.pf-priv-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.pf-priv-actions select { padding: 9px 12px; border-radius: 999px; border: 1px solid #333b48; background: #07090d; color: #fff; }
.ph-btn.blue { background: var(--pw-blue); color: #fff; }
.pf-hw, .hw { display: flex; gap: 8px; }
.pf-hw select, .hw select { flex: 1; }
.pf-two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 860px) {
  .pf-top { grid-template-columns: 1fr; }
  .pf-side { justify-items: stretch; }
  .pf-id h1 { font-size: 30px; }
  .pf-facts { grid-template-columns: repeat(2, 1fr); }
  .pf-photo { grid-column: span 2; min-height: 90px; }
  .pf-metrics, .pf-vids { grid-template-columns: 1fr; }
  .pf-sec-h { flex-wrap: wrap; }
}

/* Progress (progress.js) */
.pg-h { font-family: var(--display) !important; text-transform: uppercase !important; font-weight: 400 !important; font-size: 40px; margin-top: 4px; }
.pg-h.sm { font-size: 30px; }
.pg-sub { font-size: 15px; margin-top: 4px; }
.pg .pf-sec-h h2, .pg-h2 { font-size: 18px; margin-bottom: 3px; }
.pg .pf-metric b { display: flex; align-items: center; gap: 10px; }
.pg-table { display: grid; }
.pg-row { display: grid; grid-template-columns: 120px minmax(0, 1.4fr) 110px 90px minmax(0, 1fr) 20px; align-items: center; gap: 10px; padding: 11px 6px; border-top: 1px solid var(--pw-line); color: inherit; text-decoration: none; font-size: 14px; }
.pg-row.static { grid-template-columns: 120px 120px 90px minmax(0, 1fr); }
.pg-row:hover:not(.static) { background: #121823; }
.pg-row > .ic { color: var(--pw-muted); width: 16px; height: 16px; }
.pg-by { color: var(--pw-muted); font-size: 13px; }
.pg-all { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; color: #5b8cff; text-decoration: none; font-size: 14px; }
.pg-all .ic { width: 16px; height: 16px; }
.pg-join { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.pg-join > div { flex: 1; min-width: 220px; }
.pg-join h3 { font-size: 16px; margin-bottom: 3px; }
.pg-join form { display: flex; gap: 10px; }
.pg-join input { padding: 9px 14px; border-radius: 999px; border: 1px solid #333b48; background: #07090d; color: #fff; text-transform: uppercase; width: 170px; }
.pg-back { color: var(--pw-muted); text-decoration: none; font-size: 14px; }
.pg-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.pg-up { color: #6fdc8c; }
.pg-down { color: #ff8a8a; }
.pg-chart { width: 100%; height: auto; display: block; }
.pg-chart text { fill: #c3c9d3; font-size: 12px; font-family: var(--body); }
.pg-chart text.d { fill: var(--pw-muted); font-size: 11px; }
.pg-picks { display: grid; gap: 8px; }
.pg-new { display: grid; gap: 14px; padding: 14px; border: 1px dashed #333b48; border-radius: 12px; }
.pg-new[hidden] { display: none; }
.pg-rm { margin-left: auto; background: none; border: 0; padding: 2px 0; color: #8b93a1; text-decoration: underline; font: inherit; font-size: 12px; cursor: pointer; }
.pg-pick { display: flex !important; align-items: center; gap: 10px; font-size: 14px !important; color: #fff !important; }
@media (max-width: 860px) {
  .pg-h { font-size: 30px; }
  .pg-row { grid-template-columns: 78px minmax(0, 1fr) auto auto 16px; font-size: 13px; }
  .pg-row .pg-by { display: none; }
  .pg-row.static { grid-template-columns: 78px auto auto minmax(0, 1fr); }
  .pg-row.static .pg-by { display: block; }
  .pg-stats { grid-template-columns: 1fr 1fr 1fr; }
  .pg-join form { width: 100%; }
  .pg-join input { flex: 1; }
}
.pg-two { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 14px; align-items: start; }
.pg-add-panel .ph-form { padding: 0; margin-top: 10px; }
.pg-add-panel .pg-save { width: 100%; justify-content: center; }
.pg-add-m { display: none; }
.pg-head { font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--pw-muted); border-top: 0; padding-top: 0; }
.pg-filter { padding: 8px 14px; border-radius: 999px; border: 1px solid #333b48; background: #07090d; color: #fff; }
.pg-two .pg-row { grid-template-columns: 96px minmax(0, 1.3fr) 90px 80px minmax(0, 1fr) 18px; }
@media (max-width: 1100px) { .pg-two { grid-template-columns: 1fr; } .pg-add-panel { display: none; } .pg-add-m { display: inline-flex; margin-top: 12px; width: 100%; justify-content: center; } }
@media (max-width: 860px) { .pg-two .pg-row { grid-template-columns: 78px minmax(0, 1fr) auto auto 16px; } .pg-head span:nth-child(5) { display: none; } }
.pf-metric b.pf-empty { color: var(--pw-muted); font-weight: 400; }
.pf-strength:hover { border-color: #3a4456; }
.pf-todo li { justify-content: flex-start; }
.pf-todo .ph-btn { margin-left: auto; padding: 5px 14px; font-size: 12px; }

/* Derrius's Hub, course player and library inside the player sidebar: same look as Home / Progress / My Profile.
   Re-tints his styles here (scoped to .pw-main) instead of editing app.css. */
.pw-main { --black: #07090d; --panel: #0f131a; --panel-2: #151a23; --line: #1d232d; --line-2: #333b48; --muted: #8b93a1; --silver: #c3c9d3; }
.pw-main .hub, .pw-main .course { max-width: 1100px; margin: 0; }
.pw-main .hub h1, .pw-main .hub h2, .pw-main .hub h3, .pw-main .course h1, .pw-main .course h2, .pw-main .lib h2, .pw-main .lib h3,
.pw-main .res-head h1, .pw-main .sheet h2 { font-family: var(--body); text-transform: none; font-weight: 700; line-height: 1.2; }
.pw-main .hub-head { padding: 0 0 18px; }
.pw-main .hub-head h1 { font-size: 32px; margin: 4px 0 6px; }
.pw-main .hub-course { border-color: var(--line); border-radius: 14px; grid-template-columns: 340px 1fr; }
.pw-main .hub-course:hover { border-color: #3a4456; }
.pw-main .hub-course-art { min-height: 170px; background: #000 url(/video/hero-still.jpg) center / cover; border-right: 0; }
.pw-main .hub-course-art span { width: 54px; height: 54px; }
.pw-main .hub-course-body { padding: 18px 22px; gap: 6px; }
.pw-main .hub-course-body h2 { font-size: 21px; }
.pw-main .hub-bar { height: 8px; background: #262d38; }
.pw-main .hub-bar i { background: #2f6fed; }
.pw-main .hub-tile, .pw-main .hub-next { border-radius: 14px; padding: 16px 18px; }
.pw-main .hub-tile h3 { font-size: 15px; }
.pw-main .btn { min-height: 36px; padding: 0 18px; font-size: 13px; letter-spacing: 0; text-transform: none; border-color: var(--line-2); color: #fff; }
.pw-main .btn:hover { background: #161c26; color: #fff; }
.pw-main .btn.solid { background: #fff; color: #000; border-color: #fff; }
.pw-main .btn.solid:hover { background: #dfe3ea; }
.pw-main .btn.sm { min-height: 30px; font-size: 12px; }
.pw-main .chip { letter-spacing: 0; font-size: 12px; }
.pw-main .eyebrow { letter-spacing: 0.12em; font-size: 12px; }
.pw-main .course-main h1 { font-size: 26px; }
.pw-main .course-video, .pw-main .course-side { border-radius: 14px; }
.pw-main .course-side { top: 24px; }
.pw-main .course-prog b { font-family: var(--body); font-weight: 700; font-size: 22px; }
@media (max-width: 860px) {
  .pw-main .hub-course { grid-template-columns: 1fr; }
  .pw-main .hub-course-art { min-height: 150px; }
  .pw-main .hub-head h1 { font-size: 26px; }
}

/* Loading: the D1 outline with a light running around it, everywhere the portal used to say "Loading".
   Any <p class="loading"> gets it, so no page code changes. The SVG animates on its own (pathLength 100). */
.loading { font-size: 0; color: transparent; width: 72px; height: 106px; margin: 22vh auto; padding: 0;
  background: center / contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-6 -6 162 234'%3E%3Cstyle%3E.b%7Bfill:none;stroke:%23333;stroke-width:5;stroke-linejoin:round%7D.r%7Bfill:none;stroke:%23fff;stroke-width:6;stroke-linecap:round;stroke-linejoin:round;stroke-dasharray:22 78;animation:run 1.3s linear infinite%7D.r2%7Banimation-delay:-.65s%7D@keyframes run%7Bfrom%7Bstroke-dashoffset:100%7Dto%7Bstroke-dashoffset:0%7D%7D%3C/style%3E%3Cpath class='b' d='M100 6 L142 36 V216 L100 186 Z'/%3E%3Cpath class='b' d='M52 86 H90 L42 150 L90 214 H52 L4 150 Z'/%3E%3Cpath class='r' pathLength='100' d='M100 6 L142 36 V216 L100 186 Z'/%3E%3Cpath class='r r2' pathLength='100' d='M52 86 H90 L42 150 L90 214 H52 L4 150 Z'/%3E%3C/svg%3E");
  filter: drop-shadow(0 0 6px rgba(255,255,255,.45)); }
@media (prefers-reduced-motion: reduce) { .loading { animation: none; } }
/* Progress: results full width, Add Result in a sheet (bottom sheet on phones), centered empty state */
.pg-tools { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.pg-tools .ph-pill { margin: 0; align-self: center; }
.pg-empty { display: grid; justify-items: center; gap: 8px; padding: 26px 16px 18px; text-align: center; }
.pg-empty > span { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 12px; background: #151a23; }
.pg-empty b { font-size: 17px; }
.pg-empty .ph-btn { margin-top: 8px; }
.ph-row-full .pg-row { grid-template-columns: 120px minmax(0, 1.4fr) 110px 90px minmax(0, 1fr) 20px; }
@media (max-width: 860px) {
  #pg-add-sheet { margin: auto 0 0; width: 100%; max-width: none; border-radius: 16px 16px 0 0; }
  .pg-tools { width: 100%; justify-content: flex-start; }
}
/* Trust levels: SR (blue), Coach-confirmed (green), GoD1 Verified (gold) */
.pf-badge.g { background: #2b2410; color: #f5c451; border: 1px solid #6b5420; }
.pg-key { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 8px; margin: -4px 0 10px; font-size: 12px; color: var(--pw-muted); }
.pg-key .pf-badge { margin-left: 8px; }
.pg-key .pf-badge:first-child { margin-left: 0; }
/* While an athlete page is drawn and before the sidebar wraps it: show only the loader. */
body.pw-pending .topbar { display: none; }
body.pw-pending #app > :not(.pw):not(.loading) { visibility: hidden; }
/* Sport switcher (multi-sport athletes) */
.pw-sports { display: inline-flex; gap: 4px; margin-top: 12px; padding: 4px; border: 1px solid var(--pw-line); border-radius: 999px; background: #0f131a; }
.pw-sports button { padding: 7px 16px; border: 0; border-radius: 999px; background: none; color: #c3c9d3; font: inherit; font-size: 13px; cursor: pointer; }
.pw-sports button.on { background: #1b2a47; color: #fff; }
.pw-sports small { font-size: 10px; color: var(--pw-muted); margin-left: 4px; }
.pf > .pw-sports { margin: 0 0 4px; }
.pf-addsport { justify-self: start; display: inline-flex; align-items: center; gap: 8px; padding: 0; border: 0; background: none; color: #5b8cff; font: inherit; font-size: 13px; cursor: pointer; }
.pf-addsport .ic { width: 16px; height: 16px; }
/* Page to page: the old page stays on top (still copy) while the next one loads underneath. */
.pw-still { position: fixed; inset: 0; z-index: 50; overflow: hidden; pointer-events: none; }
body.pw-swapping #app { visibility: hidden; }
/* Hub inside the sidebar: the name comes from the account as typed ("daniel"), so capitalize it; and athletes
   already have a profile by the time they're here, so Derrius's "Next: build your player profile" card is hidden. */
.pw-main .hub-head h1 { text-transform: capitalize; }
.pw-main .hub-next { display: none; }
/* Sidebar profile corner: one tidy card, name opens My Profile, sign out on the right */
.pw-me { margin-top: auto; display: flex; align-items: center; gap: 6px; padding: 10px; border: 1px solid var(--pw-line); border-radius: 12px; background: #0f131a; }
.pw-me-link { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; }
.pw-me-link:hover b { text-decoration: underline; }
.pw-av { width: 36px; height: 36px; background: linear-gradient(135deg, #2f6fed, #1b2a47); color: #fff; font-size: 13px; letter-spacing: 0.02em; }
.pw-me div { display: grid; gap: 1px; min-width: 0; }
.pw-me b { font-size: 14px; }
.pw-me span:not(.pw-av) { font-size: 12px; color: var(--pw-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pw-me button { margin-left: 0; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; flex-shrink: 0; }
.pw-me button:hover { background: #1a202b; color: #fff; }
.pw-me button .ic { width: 18px; height: 18px; }
.pw-me { padding: 8px; gap: 4px; }
.pw-me-link { gap: 8px; }
.pw-av { width: 32px; height: 32px; font-size: 12px; }
.pw-me b { font-size: 13px; }
.pw-me button { width: 28px; height: 28px; }
.pw-me button .ic { width: 16px; height: 16px; }
/* label.f { display: grid } in app.css beat the hidden attribute: bats/throws and "If other" showed when they shouldn't. */
label.f[hidden], .ph-form label[hidden], .pf-addsport[hidden] { display: none !important; }
.pw-sports { flex-wrap: wrap; max-width: 100%; }
@media (max-width: 860px) { .pg-stats .pf-fact b { font-size: 16px; } .pg-stats .pf-fact { padding: 10px; } }

/* Bell + notifications */
.pw-brand { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.pw-bell { position: relative; display: grid; place-items: center; width: 36px; height: 36px; border: 0; border-radius: 10px; background: none; color: #c3c9d3; cursor: pointer; }
.pw-bell:hover { background: #151a23; color: #fff; }
.pw-bell .ic { width: 20px; height: 20px; }
.pw-dot { position: absolute; top: 3px; right: 2px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 99px; background: #e5484d; color: #fff; font-size: 10px; font-weight: 700; font-style: normal; line-height: 16px; text-align: center; }
.pw-dot[hidden] { display: none; }
.pw-notes { position: fixed; z-index: 60; width: 320px; max-height: 70vh; overflow-y: auto; padding: 8px; border: 1px solid #262d38; border-radius: 14px; background: #0f131a; box-shadow: 0 20px 50px rgba(0,0,0,.6); }
.pw-notes[hidden] { display: none; }
.pw-notes-h { display: flex; justify-content: space-between; align-items: center; padding: 8px 10px 10px; }
.pw-notes-h b { font-size: 15px; }
.pw-notes-h button { border: 0; background: none; color: #5b8cff; font: inherit; font-size: 12px; cursor: pointer; }
.pw-note { display: flex; gap: 12px; align-items: flex-start; padding: 10px; border-radius: 10px; color: inherit; text-decoration: none; }
.pw-note:hover { background: #151a23; }
.pw-note-ic { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 8px; background: #1b2a47; flex-shrink: 0; }
.pw-note-ic .ic { width: 14px; height: 14px; fill: #fff; }
.pw-note b { display: block; font-size: 14px; }
.pw-note small { font-size: 12px; color: var(--pw-muted); }
.pw-notes-empty { padding: 14px 10px 16px; font-size: 13px; color: var(--pw-muted); }
.pw-top { display: none; }

/* Phone (Daniel's mobile mockup): top bar with logo, bell and avatar; smaller headings; compact cards; list rows. */
@media (max-width: 860px) {
  .pw { align-content: start; }   /* a short page (Schedule, Membership) must not stretch the top bar to fill the screen */
  .pw-top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; background: rgba(7,9,13,.94); backdrop-filter: blur(10px); border-bottom: 1px solid var(--pw-line); }
  .pw-top .pw-logo { padding: 0; font-size: 14px; gap: 10px; }
  .pw-top .pw-logo svg { height: 24px; }
  .pw-top-r { display: flex; align-items: center; gap: 6px; }
  .pw-top .pw-av { width: 34px; height: 34px; text-decoration: none; }
  .pw-main { padding: 16px 16px calc(84px + env(safe-area-inset-bottom)); }
  .ph { gap: 12px; }
  .ph-head h1 { font-size: 26px; }
  .ph-head p, .pf-line { font-size: 14px; }
  .pw-sports { margin-top: 10px; }
  .ph-card { padding: 14px; border-radius: 14px; }
  .ph-course-body { padding: 14px; }
  .pf-id h1, .pg-h { font-size: 26px; }
  .pf-side .ph-btn { justify-self: start; }
  /* Profile: the facts become a list (icon-less rows with the value under the label) */
  .pf-facts { grid-template-columns: 1fr; gap: 0; padding: 0; overflow: hidden; }
  .pf-photo { grid-column: auto; min-height: 0; display: flex; justify-content: flex-start; gap: 12px; padding: 12px 14px; border: 0; border-bottom: 1px solid var(--pw-line); border-radius: 0; background: none; }
  .pf-photo .pf-cam { width: 34px; height: 34px; }
  .pf-photo b { font-size: 14px; } .pf-photo small { margin-left: auto; }
  .pf-fact { display: flex; justify-content: space-between; align-items: center; padding: 13px 14px; border-radius: 0; background: none; border-bottom: 1px solid var(--pw-line); }
  .pf-fact:last-child { border-bottom: 0; }
  .pf-fact b { font-size: 15px; }
  /* Resources: list rows, only what's real (tiles still "Opening soon" are hidden on phones) */
  .pw-main .hub-grid { grid-template-columns: 1fr; gap: 8px; }
  .pw-main .hub-tile { display: grid; grid-template-columns: 40px minmax(0, 1fr); column-gap: 12px; row-gap: 2px; align-items: center; padding: 12px 14px; }
  .pw-main .hub-tile .hub-ic { grid-row: span 2; }
  .pw-main .hub-tile p { grid-column: 2; }
  .pw-main .hub-tile .btn, .pw-main .hub-tile .hub-when { grid-column: 2; justify-self: start; margin-top: 6px; }
  .pw-main .hub-tile:has(> .chip) { display: none; }
  .pw-notes { width: calc(100vw - 24px); left: 12px !important; }
}
@media (max-width: 860px) { .pf-photo b, .pf-photo small { white-space: nowrap; } .pf-photo { align-items: center; } }
/* Profile header: desktop keeps the photo tile in the facts row; phones put photo + name + class at the top of the facts card */
.pf-me { display: contents; }
.pf-me-id { display: none; }
@media (max-width: 860px) {
  .pf > .pw-sports { order: -2; }
  .pf-facts { order: -1; }
  .pf-top .pf-id { display: none; }
  .pf-me { display: flex; align-items: center; gap: 14px; padding: 16px 14px; border-bottom: 1px solid var(--pw-line); }
  .pf-me .pf-photo { flex-direction: column; justify-content: center; gap: 4px; width: 84px; height: 84px; padding: 0; border: 1px dashed #3a4456; border-radius: 14px; background: #121823; flex-shrink: 0; }
  .pf-me .pf-photo b { font-size: 11px; }
  .pf-me .pf-photo small { display: none; }
  .pf-me-id { display: grid; gap: 4px; min-width: 0; }
  .pf-me-id h1 { font-size: 24px; line-height: 1.15; margin: 0; }
  .pf-me-id .pf-line { font-size: 13px; }
  .pf-me-id .pf-chips { margin-top: 4px; }
  /* Home metric tiles: keep the label clear of the + icon */
  .ph-metric > span { padding-right: 24px; }
}

/* Desktop: bell and avatar sit top right above the page (the sidebar keeps just the logo). Phones keep their top bar. */
@media (min-width: 861px) {
  .pw { grid-template-rows: auto 1fr; }
  .pw-side { grid-row: 1 / span 2; }
  .pw-top { grid-column: 2; grid-row: 1; display: flex; justify-content: flex-end; padding: 16px 36px 0; }
  .pw-top .pw-logo { display: none; }
  .pw-top-r { display: flex; align-items: center; gap: 8px; }
  .pw-top .pw-av { width: 34px; height: 34px; text-decoration: none; }
  .pw-main { grid-column: 2; grid-row: 2; padding-top: 4px; }
  .pw-brand [data-bell] { display: none; }
}
.pf > .pw-sports, .pg .pw-sports { justify-self: start; width: max-content; max-width: 100%; }

/* Desktop: just the bell top right (the avatar stays on phones). */
@media (min-width: 861px) { .pw-top .pw-av { display: none; } }

/* Phone bottom tabs: bigger tap targets, a soft pill behind the active icon, clear labels, room for the home bar. */
@media (max-width: 860px) {
  .pw-tabs { padding: 6px 8px calc(6px + env(safe-area-inset-bottom)); background: rgba(10,13,18,.97); border-top: 1px solid #1d232d; }
  .pw-tabs a { position: relative; gap: 3px; padding: 4px 0 2px; font-size: 11px; font-weight: 500; letter-spacing: 0.01em; color: #8b93a1; -webkit-tap-highlight-color: transparent; }
  .pw-tabs a .ic { width: 22px; height: 22px; padding: 4px 16px; box-sizing: content-box; border-radius: 999px; transition: background .15s, color .15s; }
  .pw-tabs a.on { color: #fff; }
  .pw-tabs a.on .ic { background: #1b2a47; color: #6f9bff; }
  .pw-tabs a:active .ic { background: #151a23; }
}

/* Phone tabs, Instagram style: icons only on black, white outlines; the page you're on is bold (home and resources
   filled); the last tab is your initials in a circle, ringed in white when you're on your profile. */
@media (max-width: 860px) {
  .pw-tabs { padding: 10px 8px calc(10px + env(safe-area-inset-bottom)); background: #000; border-top: 1px solid #1a1a1a; backdrop-filter: none; }
  .pw-tabs a { display: grid; place-items: center; height: 32px; padding: 0; color: #fff; gap: 0; }
  .pw-tabs a .ic { width: 26px; height: 26px; padding: 0; background: none !important; color: #fff !important; stroke-width: 1.7; }
  .pw-tabs a.on .ic { stroke-width: 2.6; }
  .pw-tabs a.on[href="#/home"] .ic, .pw-tabs a.on[href="#/hub"] .ic { fill: #fff; stroke-width: 2; }
  .pw-tabs a.on[href="#/home"] .ic path { stroke: #fff; }
  .pw-tab-av { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: linear-gradient(135deg, #2f6fed, #1b2a47); color: #fff; font-size: 11px; font-weight: 700; }
  .pw-tabs a.on .pw-tab-av { box-shadow: 0 0 0 2px #000, 0 0 0 3.5px #fff; }
  .pw-tabs a:active { opacity: .6; }
}

/* Phone tabs float: a rounded bar lifted off the bottom edge, with space on the sides and a soft shadow. */
@media (max-width: 860px) {
  .pw-tabs { left: 14px; right: 14px; bottom: calc(14px + env(safe-area-inset-bottom) - var(--vv-gap, 0px)); padding: 12px 8px; border: 1px solid #22272f; border-radius: 26px;
    background: rgba(12,14,18,.88); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); box-shadow: 0 10px 30px rgba(0,0,0,.55); }
  .pw-main { padding-bottom: calc(104px + env(safe-area-inset-bottom)); }
  .pw-tabs a.on .pw-tab-av { box-shadow: 0 0 0 2px #0c0e12, 0 0 0 3.5px #fff; }
}

/* Phones: the page never slides sideways (pinch-zoom still works and pans as normal), and typing in a box never auto-zooms. */
/* Clip on the portal box, not html/body: overflow on html/body makes iPhones drag the fixed tab bar while scrolling. */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
.pw { overflow-x: clip; }
.pw-main { min-width: 0; }
@media (max-width: 860px) {
  input, select, textarea { font-size: 16px !important; }
  .pw-main { overscroll-behavior-x: none; }
  .pw-tabs { transform: translateZ(0); -webkit-transform: translateZ(0); }
}

/* Progress, 2026-10-28 redesign (progress.js): key metric tiles, category chips, result rows, and the Add a result sheet */
.pg-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 6px 0 22px; }
.pg-tile { display: grid; gap: 6px; align-content: start; min-width: 0; padding: 12px; border: 1px solid #1d232d; border-radius: 16px; background: #0f131a; color: inherit; text-decoration: none; }
.pg-tl { display: flex; align-items: center; gap: 6px; min-width: 0; font-size: 12px; color: #8b93a1; }
.pg-tl .ic { width: 18px; height: 18px; flex: none; color: #6f9bff; }
.pg-tl span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pg-tv { font-size: clamp(20px, 6vw, 28px); line-height: 1.1; }
.pg-tv small { margin-left: 4px; font-size: 12px; font-weight: 500; color: #8b93a1; }
.pg-td { font-size: 12px; color: #8b93a1; }
.pg-td.up { color: #4fd18b; }
.pg-td.down { color: #ff7b72; }
.pg-tile .spark { width: 100%; height: 26px; margin-top: 2px; }
.pg-chips { display: flex; gap: 8px; overflow-x: auto; margin: 4px -4px 12px; padding: 2px 4px; scrollbar-width: none; }
.pg-chips::-webkit-scrollbar { display: none; }
.pg-chip { flex: none; padding: 8px 14px; border: 1px solid #2a3140; border-radius: 999px; font-size: 13px; color: #c3c9d3; text-decoration: none; white-space: nowrap; }
.pg-chip.on { background: #2f6fed; border-color: #2f6fed; color: #fff; font-weight: 600; }
.pg-only { margin: 0 0 10px; font-size: 13px; color: #8b93a1; }
.pg-list { display: grid; border: 1px solid #1d232d; border-radius: 14px; overflow: hidden; }
.pg-item { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; gap: 12px; align-items: center; padding: 12px 14px; border-top: 1px solid #1d232d; color: inherit; text-decoration: none; }
.pg-item:first-child { border-top: 0; }
.pg-ic { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: #151a23; color: #6f9bff; }
.pg-ic .ic { width: 20px; height: 20px; }
.pg-it { min-width: 0; }
.pg-it b { display: block; font-size: 15px; }
.pg-it small { display: block; color: #8b93a1; font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pg-iv { display: grid; justify-items: end; gap: 3px; white-space: nowrap; }
.pg-item > .ic { width: 16px; height: 16px; color: #5c6574; }
.pg-results .pg-key { margin-top: 16px; font-size: 12px; line-height: 2; }
.pg-sheet .ph-form { gap: 14px; }
.pg-tabs { display: grid; grid-template-columns: 1fr 1fr; padding: 4px; border-radius: 999px; background: #0a0d13; border: 1px solid #1d232d; }
.pg-tabs button { padding: 10px 6px; border: 0; border-radius: 999px; background: none; color: #8b93a1; font: inherit; font-size: 13px; white-space: nowrap; cursor: pointer; outline: none; }
.pg-tabs button:focus-visible { box-shadow: 0 0 0 2px #2f6fed; }
.pg-tabs button.on { background: #fff; color: #000; font-weight: 600; }
.pg-cat-pick { display: flex; gap: 6px; }
.pg-catb { flex: 1 1 0; display: grid; justify-items: center; align-content: start; gap: 4px; padding: 10px 2px; border: 1px solid #2a3140; border-radius: 12px; background: #0f131a; color: #c3c9d3; font: inherit; font-size: 10.5px; line-height: 1.15; cursor: pointer; min-width: 0; }
.pg-catb .ic { width: 20px; height: 20px; }
.pg-catb.on { border-color: #2f6fed; color: #fff; box-shadow: inset 0 0 0 1px #2f6fed; }
.pg-two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; }
.pg-unit { display: flex; align-items: center; min-height: 48px; padding: 0 14px; border: 1px solid #1d232d; border-radius: 12px; color: #c3c9d3; }
.pg-none { margin: 8px 0 0; font-size: 13px; color: #8b93a1; }
.pg-unv { display: flex; align-items: flex-start; gap: 8px; margin: 0; font-size: 13px; color: #8b93a1; }
.pg-unv .ic { flex: none; margin-top: 2px; }
.pg-add label small { font-weight: 400; color: #8b93a1; }
.pg-unv .ic { width: 16px; height: 16px; }
.pg-add textarea { width: 100%; box-sizing: border-box; padding: 12px; border-radius: 12px; border: 1px solid #333b48; background: #07090d; color: #fff; font: inherit; resize: vertical; }

/* Add a result must fit a phone in both modes, and Progress reads cleaner (2026-10-28) */
.pg-add, .pg-add > *, .pg-add label, .pg-add [data-for] { min-width: 0; }
.pg-add [data-for] { display: grid; gap: 14px; }
.pg-add [data-for][hidden] { display: none; }
.pg-add input, .pg-add select, .pg-add textarea { width: 100%; box-sizing: border-box; min-width: 0; }
.pg-add[data-mode=custom] [data-resrow] { grid-template-columns: minmax(0, 1fr); }
.pg-add[data-mode=common] .pg-catb[data-empty] { display: none; }
.pg-tl { align-items: flex-start; }
.pg-tl span { white-space: normal; line-height: 1.2; overflow: visible; text-overflow: clip; }
.pg .pf-sec-h { flex-wrap: nowrap; align-items: center; }
.pg #pg-manage { padding: 8px 12px; font-size: 13px; }
.pg-results .pg-key { gap: 8px; margin-top: 14px; }
.pg-results .pg-key .pf-badge { margin-left: 0; }
.pg-results .pg-key small { flex-basis: 100%; color: #8b93a1; font-size: 12px; }
.pg-it small { white-space: normal; }

/* Athlete profile photo (athlete-photo.js, 0068) */
.pf-photo-box { display: grid; gap: 6px; justify-items: start; }
.pf-photo.has-photo { background-size: cover; background-position: center; border-style: solid; color: #fff; text-shadow: 0 1px 4px rgba(0, 0, 0, .8); }
.pf-photo.has-photo .pf-cam, .pf-photo.has-photo small { opacity: .9; }
.pf-photo-note { max-width: 150px; font-size: 11px; line-height: 1.3; color: var(--pw-muted); }
.pf-photo-rm { background: none; border: 0; padding: 0; color: var(--pw-muted); font: inherit; font-size: 12px; text-decoration: underline; cursor: pointer; }
.pw-av.has-photo, .ap-av.has-photo, .cp-av.has-photo { color: transparent; }
/* Your own photo on the staff sidebar avatar (coach.js, 0071). It is a button, so it must not take the sign-out button's margin or look. */
.cw-me .cw-photo { margin-left: 0; padding: 0; border: 0; font-size: 12px; color: #fff; cursor: pointer; background-color: #1d2a44; }
.cw-me .cw-photo:hover { box-shadow: 0 0 0 2px #3b5bdb; }
.cw-me .cw-photo.has-photo { color: transparent; }
