/* Shared navigation and the stats dashboard. */
.top-bar { position: sticky; top: 0; z-index: 25; background: var(--bg); }
button.brand { border: 0; padding: 0; background: transparent; color: var(--ink); }
.stats-panel { overflow: visible; border: 0; border-radius: 0; background: transparent; box-shadow: none; min-width: 0; }
.progress-heading h2 { font-size: 1.25rem; font-weight: 550; line-height: 1.4; letter-spacing: 0; text-transform: none; }
.progress-section { min-width: 0; }
.progress-heading { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }
.progress-heading h2 { margin: 0; }
.progress-range { margin-left: auto; color: var(--muted); font-size: .8rem; }
.progress-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.progress-card { display: flex; flex-direction: column; min-width: 0; padding: 15px; border: 1px solid var(--line); border-radius: 16px; background: var(--panel); color: var(--ink); text-align: left; font: inherit; }
.progress-card:hover { border-color: var(--activity-mid); }
.progress-name { font-size: 22px; font-weight: 550; line-height: 1.3; margin: 0 0 20px; }
.progress-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; width: 100%; }
.progress-stat { min-width: 0; }
.progress-stat-label { display: block; color: var(--muted); font-size: .75rem; margin-bottom: 10px; }
.progress-stat-value { padding-bottom: 4px; }
.progress-set.plan-summary { display: block; width: auto; font-size: 1rem; font-weight: 500; line-height: 1.4; color: var(--ink); }
.progress-set .plan-summary-row { display: flex; flex-wrap: wrap; gap: 4px; min-height: 0; padding: 0; }
.progress-value-group { display: inline-grid; grid-auto-flow: column; grid-auto-columns: max-content; }
.progress-set .summary-symbol, .progress-set .plan-static { font-weight: inherit; }
.progress-chart { display: block; width: 100%; height: 110px; margin-top: 24px; overflow: visible; }
.progress-chart.detailed { height: 240px; }
.progress-line { fill: none; stroke: var(--activity-mid); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.progress-point { fill: var(--activity-mid); }
.progress-gridline { stroke: var(--line); stroke-width: 1; }
.progress-chart text { fill: var(--muted); font-size: 11px; font-family: inherit; }
.progress-empty, .progress-empty-chart, .progress-explanation { color: var(--muted); font-size: .8rem; line-height: 1.5; }
.progress-empty-chart { display: grid; align-items: center; min-height: 110px; margin: 24px 0 0; }
.progress-expand { display: block; margin: 20px auto 0; font-size: .85rem; }
.progress-history { width: 100%; border-collapse: collapse; text-align: left; margin-top: 24px; }
.progress-history caption { text-align: left; margin-bottom: 12px; font-weight: 550; }
.progress-history th { color: var(--muted); font-size: .8rem; font-weight: 500; }
.progress-history td, .progress-history th { padding: 12px 0; border-bottom: 1px solid var(--line); }
.progress-history td { vertical-align: middle; }
.progress-history td:last-child { padding-left: 16px; }
@media (max-width: 1100px) { .progress-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 680px) {
    .progress-cards { grid-template-columns: minmax(0, 1fr); }
    .progress-range { flex-basis: 100%; margin-left: 0; }
    .progress-card { padding: 15px; }
}
