:root {
  color-scheme: dark;
  font: 16px/1.5 system-ui, sans-serif;
  --bg: #171819;
  --text: #efefec;
  --muted: #a7a8a8;
  --rule: #393a3b;
  color: var(--text);
  background: var(--bg);
}

* { box-sizing: border-box; }
body { margin: 0; }
main { width: min(100% - 32px, 680px); margin: 40px auto; }
header { display: flex; align-items: center; justify-content: space-between; gap: 20px; border-bottom: 1px solid var(--rule); padding-bottom: 14px; }
h1, h2, h3 { margin: 0; }
h1 { font-size: 1.3rem; font-weight: 650; }
h1 a { color: inherit; text-decoration: none; }
.brand { display: inline-flex; align-items: center; }
.brand img { width: 27px; height: 27px; }
nav { display: flex; gap: 16px; }
a { color: var(--muted); }
nav a[aria-current="page"] { color: var(--text); text-decoration-color: var(--text); text-decoration-thickness: 2px; text-underline-offset: 5px; }
a:focus-visible { outline: 2px solid var(--text); outline-offset: 3px; }
h2 { margin: 22px 0 14px; font-size: 1.2rem; font-weight: 550; }
.summary { margin-bottom: 28px; }
.current-prs { display: grid; grid-template-columns: auto auto auto auto auto auto auto; align-items: end; gap: clamp(6px, 1.5vw, 14px); width: fit-content; max-width: 100%; }
.lift { min-width: 0; }
.lift span { display: block; color: var(--muted); font-size: .84rem; }
.lift strong, #total { display: block; margin-top: 2px; font-size: 1.35rem; font-weight: 620; font-variant-numeric: tabular-nums; }
.operator { color: var(--muted); padding-bottom: 3px; }
#total { text-align: left; }
h3 { margin: 0 0 8px; font-size: 1rem; font-weight: 550; }
.progress { margin-bottom: 26px; }
.chart-legend { display: flex; flex-wrap: wrap; gap: 16px; margin: 0 0 6px; color: var(--muted); font-size: .78rem; }
.chart-legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend-mark { width: 12px; height: 3px; border-radius: 2px; }
#progress-chart { display: block; width: 100%; height: auto; }
.chart-grid { stroke: var(--rule); stroke-width: 1; }
.chart-date-line { stroke: var(--rule); stroke-width: 1; stroke-dasharray: 2 4; }
.chart-label { fill: var(--muted); font: 12px system-ui, sans-serif; }
.chart-series { fill: none; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.chart-point { stroke: var(--bg); stroke-width: 2; }
table { width: 100%; border-collapse: collapse; }
.history-table { width: min(100%, 560px); table-layout: fixed; }
.history-table th:first-child { width: 40%; }
.history-table th:nth-child(2) { width: 34%; }
.history-table th:last-child { width: 26%; text-align: right; }
th, td { padding: 10px 14px; border-bottom: 1px solid var(--rule); text-align: left; }
th { color: var(--muted); font-size: .8rem; font-weight: 500; }
td:last-child { font-weight: 550; font-variant-numeric: tabular-nums; text-align: right; }
@media (max-width: 480px) {
  main { margin-top: 28px; }
  .current-prs { gap: 6px; }
  .lift span { font-size: .76rem; }
  .lift strong, #total { font-size: 1.12rem; }
  .history-table th, .history-table td { padding-inline: 8px; }
  .history-table td:first-child { font-size: .88rem; white-space: nowrap; }
}
