/* Progress board (progress.js, pv- classes). Phone first: one column, the big number up top; wider screens put records four across.
   Dark and plain on purpose (brand: black, white type, Nike/Kith): the numbers and the deltas carry it, colour only marks a gain. */
.pv { gap: 16px; grid-template-columns: minmax(0, 1fr); }   /* one column that never grows past the phone: a long row wraps instead of widening the page */
.pv > * { min-width: 0; }
.pv-sec-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.pv .pv-sec-h h2 { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; color: var(--pw-text); margin: 0; }

/* Hero */
.pv-hero { position: relative; display: grid; gap: 12px; padding: 22px 20px 18px; border-radius: 18px; overflow: hidden; border: 1px solid var(--pw-line);
  background: radial-gradient(120% 90% at 100% 0%, #18202c 0%, transparent 60%), linear-gradient(180deg, #0f131a, #07090d); }
.pv .pv-name { font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: clamp(30px, 8vw, 46px); line-height: .95; letter-spacing: -.01em; margin: 0; }
.pv-name span { color: transparent; -webkit-text-stroke: 1.2px #c8c8c8; }
.pv-big { display: flex; align-items: baseline; gap: 12px; margin-top: 6px; }
.pv-big b { font-family: var(--display); font-weight: 400; font-size: clamp(64px, 20vw, 104px); line-height: .85; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.pv-big span { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--pw-muted); font-weight: 600; }
.pv-next { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; column-gap: 12px; padding: 12px 14px; border-radius: 12px;
  background: #fff; color: #000; text-decoration: none; }
.pv-next-k { grid-column: 1; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; font-weight: 700; color: #4b5563; }
.pv-next b { grid-column: 1; font-size: 16px; line-height: 1.25; overflow-wrap: anywhere; }
.pv-next .ic { grid-column: 2; grid-row: 1 / span 2; width: 18px; height: 18px; }
.pv-quick { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--pw-line); padding-top: 12px; }
.pv-quick a { display: grid; gap: 2px; text-decoration: none; color: inherit; padding: 0 10px; border-left: 1px solid var(--pw-line); }
.pv-quick a:first-child { border-left: 0; padding-left: 0; }
.pv-quick b { font-family: var(--display); font-weight: 400; font-size: 24px; line-height: 1; font-variant-numeric: tabular-nums; }
.pv-quick b small { font-size: 14px; color: var(--pw-muted); }
.pv-quick span { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--pw-muted); }

/* Level ladder slot (brief section 2): empty until the levels decision; nothing renders while hidden. */
.pv-level[hidden] { display: none; }

/* Attendance */
.pv-att-nums { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 14px; }
.pv-att-nums div { display: grid; gap: 2px; }
.pv-att-nums b { font-family: var(--display); font-weight: 400; font-size: 34px; line-height: 1; font-variant-numeric: tabular-nums; }
.pv-att-nums span { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--pw-muted); }
.pv-strip { display: grid; grid-template-columns: repeat(var(--n, 31), minmax(0, 1fr)); gap: 3px; }
.pv-d { display: block; height: 26px; border-radius: 3px; background: #1a212c; }
.pv-d.on { background: #fff; }
.pv-d.now { box-shadow: inset 0 0 0 1.5px #5b8cff; }
.pv-d.later { background: #10151c; }
.pv-strip-ax { display: flex; justify-content: space-between; margin-top: 6px; font-size: 11px; color: var(--pw-muted); }
.pv-att-note { margin: 10px 0 0; font-size: 13px; color: var(--pw-muted); }

/* Personal records */
.pv-add { padding: 6px 14px; font-size: 13px; }
.pv-pr-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.pv-pr { display: grid; gap: 6px; align-content: start; padding: 14px; border-radius: 14px; border: 1px solid var(--pw-line); background: var(--pw-card); color: inherit; text-decoration: none; min-width: 0; }
.pv-pr:hover { border-color: #333b48; }
.pv-pr.fresh { border-color: #2f6b45; background: linear-gradient(180deg, #0e1a14, var(--pw-card) 60%); }
.pv-pr-top { display: flex; align-items: center; justify-content: space-between; gap: 6px; min-width: 0; }
.pv-pr-l { font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--pw-muted); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pv-pr-new { flex-shrink: 0; font-size: 10px; letter-spacing: .12em; text-transform: uppercase; font-weight: 700; color: #6fdc8c; }
.pv-pr-v { font-family: var(--display); font-weight: 400; font-size: 30px; line-height: 1; font-variant-numeric: tabular-nums; }
.pv-pr-v small { margin-left: 4px; font-family: var(--body); font-size: 12px; color: var(--pw-muted); }
.pv-pr-row { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 8px; min-height: 18px; }
.pv-pr-d { font-size: 13px; font-weight: 700; color: var(--pw-muted); font-variant-numeric: tabular-nums; }
.pv-pr-d.up { color: #6fdc8c; }
.pv-pr-was { font-size: 12px; color: var(--pw-muted); font-variant-numeric: tabular-nums; }
.pv-spark { width: 100%; height: 36px; display: block; overflow: visible; }
.pv-sp-base { stroke: #262d38; stroke-width: 1.5; }
.pv-sp-area { fill: rgba(255, 255, 255, .05); }
.pv-sp-line { fill: none; stroke: #c8c8c8; stroke-width: 1.6; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
/* PR points are zero-length round-capped lines, so they stay round while the chart stretches to the card. */
.pv-sp-pr { stroke: #6fdc8c; stroke-width: 5; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.pv-sp-pr.last { stroke: #fff; stroke-width: 7; }
.pv-pr-f { display: flex; align-items: center; justify-content: space-between; gap: 6px; font-size: 12px; color: var(--pw-muted); }

/* Milestones and the training log reuse develop.js (app.css); here they only sit on the board's cards. */
.pv-ms .progress { margin-bottom: 10px; }
.pv-ms .bar i { background: #fff; }
.pv-log .panel { background: var(--pw-card); border-color: var(--pw-line); padding: 16px 18px; }
.pv-log .panel-h { margin-bottom: 10px; }
.pv-log .panel-h h2 { font-family: var(--body); font-size: 13px; letter-spacing: .14em; font-weight: 700; }

@media (min-width: 861px) {
  .pv-hero { grid-template-columns: minmax(0, 1fr) minmax(0, 360px); column-gap: 28px; padding: 28px; }
  .pv-hero > * { grid-column: 1; }
  .pv-hero > .pv-big { grid-column: 2; grid-row: 1 / span 3; align-self: center; flex-direction: column; align-items: flex-start; gap: 6px; }
  .pv-hero > .pv-next, .pv-hero > .pv-quick { grid-column: 1 / -1; }
  .pv-pr-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 380px) {
  .pv-strip { gap: 2px; }
  .pv-d { height: 22px; }
}
