/* 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; }

/* 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-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-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-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; } }
