/* Progress view (extends root styles.css) */

.progress-page {
  max-width: 720px;
  margin: 0 auto;
  padding: 1.5rem 1.25rem 3rem;
  position: relative;
  z-index: 1;
}

.progress-back {
  display: inline-block;
  margin-bottom: 1.25rem;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
}

.progress-back:hover {
  color: var(--accent);
}

.progress-eyebrow {
  display: inline-block;
  margin: 0 0 0.65rem;
  padding: 0.35rem 0.85rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--paper);
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  box-shadow: var(--shadow-soft);
}

.progress-title {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4.5vw, 2.35rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.progress-lede {
  margin: 0 0 1.25rem;
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.6;
}

.progress-disclaimer {
  margin: 0 0 1.75rem;
  padding: 1rem 1.1rem;
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--text-muted);
  background: rgba(28, 30, 14, 0.85);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  border-left: 3px solid var(--accent-hi);
}

.progress-fallback {
  padding: 2rem 1.25rem;
  text-align: center;
  max-width: 420px;
  margin: 0 auto;
}

.progress-fallback-title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  margin: 0 0 0.65rem;
}

.progress-fallback-text {
  margin: 0 0 1.25rem;
  color: var(--text-muted);
  font-size: 0.98rem;
  line-height: 1.55;
}

.progress-fallback .progress-back {
  margin-bottom: 0;
}

.progress-summary {
  margin: 0 0 1.25rem;
  font-size: 1rem;
  color: var(--text);
  font-weight: 500;
}

.progress-section-title {
  margin: 0 0 0.85rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* Vertical bar chart */
.progress-chart-wrap {
  margin-bottom: 2rem;
  padding: 1.1rem 0 0.35rem;
  overflow-x: auto;
  overflow-y: visible;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--paper);
  box-shadow: var(--shadow-soft);
  scrollbar-width: thin;
  scrollbar-color: rgba(198, 241, 53, 0.3) transparent;
}

.progress-chart-wrap::-webkit-scrollbar {
  height: 6px;
}

.progress-chart-wrap::-webkit-scrollbar-thumb {
  background: rgba(198, 241, 53, 0.3);
  border-radius: 999px;
}

.progress-bars--vertical {
  display: flex;
  flex-direction: row;
  align-items: flex-end;
  justify-content: flex-start;
  gap: 0.55rem;
  padding: 0.75rem 1rem 1rem;
  min-height: 220px;
}

.progress-bar-col {
  flex: 1 1 40px;
  min-width: 36px;
  max-width: 72px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.5rem;
}

.progress-bar-col-chart {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
}

.progress-bar-count-top {
  font-size: 0.75rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--text-muted);
  line-height: 1;
  min-height: 1em;
}

/* Fixed height + absolute fill so height: N% is always relative to this track */
.progress-bar-track--vertical {
  position: relative;
  width: 100%;
  height: 160px;
  flex-shrink: 0;
  background: rgba(61, 64, 24, 0.35);
  border-radius: 10px 10px 6px 6px;
  overflow: hidden;
}

.progress-bar-fill--vertical {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  min-height: 3px;
  height: var(--bar-height-pct, 50%);
  background: linear-gradient(180deg, #ddf76a 0%, #c6f135 55%, #3d4018 100%);
  border-radius: 8px 8px 4px 4px;
  transition: height 0.28s ease;
  box-shadow: inset 0 1px 0 rgba(240, 253, 168, 0.25);
}

.progress-bar-fill--zero {
  min-height: 0 !important;
  height: 0 !important;
  box-shadow: none;
}

.progress-bar-axis {
  text-align: center;
  font-size: 0.68rem;
  font-weight: 500;
  color: var(--text-muted);
  line-height: 1.25;
  padding: 0 0.1rem;
}

.progress-bar-date-short {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.progress-table-wrap {
  overflow-x: auto;
  margin-bottom: 2rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--paper);
  box-shadow: var(--shadow-soft);
}

.progress-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.progress-table th,
.progress-table td {
  padding: 0.65rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.progress-table th {
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  background: rgba(61, 64, 24, 0.3);
}

.progress-table tr:last-child td {
  border-bottom: none;
}

.progress-table td:last-child {
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.progress-table-empty {
  text-align: center !important;
  color: var(--text-muted);
  font-style: italic;
}

.progress-meta {
  padding: 1.25rem 1.35rem;
  background: linear-gradient(160deg, rgba(28, 30, 14, 0.95) 0%, #1c1e0e 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-soft);
}

.progress-meta-grid {
  display: grid;
  gap: 0.75rem;
}

@media (min-width: 480px) {
  .progress-meta-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
  }
}

.progress-meta dt {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.progress-meta dd {
  margin: 0.2rem 0 0;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
}

.progress-footer-note {
  margin: 1.5rem 0 0;
  font-size: 0.86rem;
  line-height: 1.55;
  color: var(--text-muted);
  text-align: center;
}

.progress-footer-note a {
  color: var(--accent);
  font-weight: 500;
}
