/* ==========================================================================
   Postępy › Siła, Postępy › Ciało, Regeneracja — design-handoff, faza 5
   (Postepy, Postepy-Cialo, Regeneracja-v2). Pod górą ekranu dotychczasowy
   moduł jako „Szczegóły” (.vt-sub).
   ========================================================================== */

.pg {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.pg-lead {
  margin: 0;
  font-size: 15px;
  line-height: 1.5;
  color: var(--vt-muted);
}

.pg-lead strong { color: var(--vt-text); }

.pg-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

@media (min-width: 768px) {
  .pg-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 1200px) {
  .pg-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.pg-card {
  background: var(--vt-surface);
  border: 1px solid var(--vt-line);
  border-radius: var(--vt-radius-lg);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}

.pg-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.pg-card-head h3 {
  margin: 0;
  font-family: var(--vt-font-body);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0;
}

.pg-label { font-size: 12px; color: var(--vt-muted); }
.pg-small { font-size: 12px; }
.pg-muted { color: var(--vt-muted); }
.pg-text { color: var(--vt-text); }
.pg-good { color: var(--vt-accent); }
.pg-warn { color: var(--vt-warn); }
.pg-cardio { color: var(--vt-cardio); }

.pg-col {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.pg-col--end { align-items: flex-end; text-align: right; }

.pg-big { font-size: 24px; font-weight: 600; }
.pg-huge { font-size: 34px; font-weight: 600; line-height: 1.1; }
.pg-unit { font-size: 16px; color: var(--vt-muted); font-weight: 500; }

.pg-tag {
  font-size: 12px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid var(--vt-line);
  color: var(--vt-muted);
  white-space: nowrap;
}

.pg-tag--up {
  background: var(--vt-accent);
  border-color: var(--vt-accent);
  color: var(--vt-accent-ink);
}

.pg-tag--stall {
  border-color: var(--vt-warn);
  color: var(--vt-warn);
}

.pg-lift {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 12px;
}

.pg-lift-main {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.pg-delta { font-size: 12px; }
.pg-note { font-size: 13px; color: var(--vt-muted); }

.pg-pace {
  display: flex;
  align-items: baseline;
  gap: 12px;
}

.pg-empty {
  align-items: flex-start;
}

.pg-empty p { margin: 0; color: var(--vt-muted); }

.pg-foot { margin: 0; }

.pg-details-title {
  margin: 16px 0 0;
  font-family: var(--vt-font-body);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--vt-muted);
  border-top: 1px solid var(--vt-line);
  padding-top: 20px;
}

.pg-actions {
  display: flex;
  gap: 8px;
}

.pg-actions > * { flex: 1; }

/* ── Ciało ───────────────────────────────────────────────────────────── */
.pg-body {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

@media (min-width: 1024px) {
  .pg-body { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
  .pg-actions { max-width: 420px; }
}

.pg-weight-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 12px;
}

.pg-goal-row {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.pg-ranges { display: flex; gap: 4px; }

.pg-range {
  min-height: 36px;
  min-width: 44px;
  padding: 0 8px;
  border: 0;
  border-radius: var(--vt-radius-sm);
  background: transparent;
  color: var(--vt-muted);
  font: 12px var(--vt-font-data);
  cursor: pointer;
}

.pg-range.is-active {
  background: var(--vt-line);
  color: var(--vt-text);
}

.pg-range:focus-visible { outline: 2px solid var(--vt-accent); outline-offset: 1px; }

.pg-chart { display: block; }

.pg-axis {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--vt-muted);
}

.pg-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  align-items: center;
}

.pg-legend span { display: inline-flex; align-items: center; gap: 6px; }

.pg-key {
  display: inline-block;
  width: 14px;
  height: 3px;
  border-radius: 2px;
}

.pg-key--raw { background: var(--vt-faint); height: 2px; }
.pg-key--avg { background: var(--vt-accent); }

.pg-chart-insight {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 12px;
  border-radius: var(--vt-radius-md);
  background: var(--vt-surface-2);
  font-size: 14px;
  line-height: 1.5;
}

.pg-chart-insight p { margin: 0; }
.pg-chart-insight .vt-icon { color: var(--vt-accent); margin-top: 2px; }
.pg-chart-insight--card { flex-direction: row; }

.pg-kcal {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
}

.pg-macro { display: flex; flex-direction: column; gap: 6px; }

.pg-macro-top {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
}

/* ── Regeneracja ─────────────────────────────────────────────────────── */
.pg-recovery {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

@media (min-width: 1024px) {
  .pg-recovery { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
}

.pg-hero {
  flex-direction: row;
  align-items: center;
  gap: 18px;
  border-radius: var(--vt-radius-xl);
}

.pg-ring { position: relative; width: 104px; height: 104px; flex: none; }

.pg-ring-val {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.pg-ring-val .num { font-size: 28px; font-weight: 600; }
.pg-ring-val span:last-child { font-size: 11px; color: var(--vt-muted); }

.pg-hero-title {
  font-family: var(--vt-font-display);
  font-weight: 600;
  font-size: 22px;
  letter-spacing: -0.02em;
}

.pg-comps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}

.pg-comp {
  display: grid;
  grid-template-columns: 8px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--vt-line);
}

.pg-comp-name { font-size: 15px; font-weight: 500; }
.pg-comp-val { font-size: 13px; text-align: right; }

.pg-explain { margin: 4px 0 0; line-height: 1.5; }

.pg-night {
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
}

.pg-phases {
  display: flex;
  height: 10px;
  border-radius: 5px;
  overflow: hidden;
  gap: 2px;
}

.pg-phase--deep { background: var(--vt-cardio); }
.pg-phase--rem { background: var(--vt-accent); }
.pg-phase--light { background: var(--vt-muted); }
.pg-phase--awake { background: var(--vt-faint); }

.pg-phase-labels {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  color: var(--vt-muted);
}

.pg-phase-labels span { display: inline-flex; align-items: center; gap: 6px; }
.pg-phase-labels .pg-key { height: 8px; width: 8px; border-radius: 50%; }

/* ── Szczegóły: dotychczasowe moduły bez powtórzeń góry ekranu ───────── */
.vt-sub .page-title,
.vt-sub .page-title + p,
.vt-sub .body-metrics-grid,
.vt-sub .readiness-hero-card,
.vt-sub .sleep-stats-row,
.vt-sub .hero-sleep-card,
.vt-sub .body-header {
  display: none;
}
