/* Progress tab styles */
.progress-view {
  max-width: 1180px;
  margin: 0 auto;
  padding: 48px 40px 80px;
}
.progress-hero { margin-bottom: 32px; }
.progress-hero h1 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(36px, 5vw, 52px);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.0;
}
.progress-hero h1 em { font-style: italic; color: var(--accent); font-weight: 500; }
.progress-hero p {
  margin: 8px 0 0;
  color: var(--ink-2);
  font-family: var(--serif);
  font-style: italic;
  font-size: 17px;
}

.progress-overview {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 14px;
  margin-bottom: 36px;
}
.overview-stat {
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: 10px;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.overview-stat-label {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-3);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.overview-stat-value {
  font-family: var(--serif);
  font-size: 32px;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1;
  color: var(--ink);
}
.overview-stat-suffix {
  font-size: 14px;
  color: var(--ink-3);
  font-weight: 400;
  margin-left: 2px;
}
.overview-stat-bar {
  height: 4px;
  background: var(--paper-2);
  border-radius: 999px;
  overflow: hidden;
  margin-top: 4px;
}
.overview-stat-bar > div {
  height: 100%;
  border-radius: 999px;
  transition: width 0.4s ease;
}

.progress-section-title {
  margin: 0 0 18px;
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.progress-empty {
  color: var(--ink-3);
  font-family: var(--serif);
  font-style: italic;
  text-align: center;
  padding: 50px 20px;
}

.progress-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 18px;
}

.subject-progress {
  position: relative;
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: 12px;
  padding: 22px 22px 18px;
  cursor: pointer;
  overflow: hidden;
  transition: box-shadow 0.15s ease, transform 0.15s ease;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.subject-progress:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.sp-stripe {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 5px;
  background: var(--swatch);
}
.sp-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 4px;
  gap: 12px;
}
.sp-head h3 {
  margin: 0;
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.sp-ring {
  position: relative;
  width: 60px;
  height: 60px;
}
.sp-ring svg { width: 100%; height: 100%; }
.sp-ring-text {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 17px;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.sp-ring-text span { font-size: 10px; color: var(--ink-3); margin-left: 1px; }

.sp-stats { display: flex; flex-direction: column; gap: 12px; }
.sp-bar-row { display: flex; flex-direction: column; gap: 5px; }
.sp-bar-label {
  display: flex;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--ink-2);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.sp-bar-count { color: var(--ink-3); }
.sp-bar-track {
  height: 6px;
  background: var(--paper-2);
  border-radius: 999px;
  overflow: hidden;
}
.sp-bar-fill {
  height: 100%;
  border-radius: 999px;
  transition: width 0.4s ease;
  min-width: 2px;
}

.sp-best { display: flex; flex-direction: column; gap: 2px; }
.sp-best-label {
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--ink-2);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.sp-best-value {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-family: var(--serif);
  font-size: 17px;
  color: var(--ink);
}
.sp-best-pct { font-family: var(--mono); font-size: 13px; color: var(--ink-3); }
.sp-best-none { color: var(--ink-3); font-style: italic; font-size: 14px; }
.sp-best-last { font-family: var(--mono); font-size: 11px; color: var(--ink-3); margin-top: 2px; }

.sp-trend {
  border-top: 1px solid var(--rule);
  padding-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.sp-trend-label {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-3);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.sp-trend-bars {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 36px;
}
.sp-trend-bar {
  flex: 1;
  background: var(--paper-2);
  border-radius: 3px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  min-height: 4px;
}
.sp-trend-bar > div {
  width: 100%;
  min-height: 4px;
  border-radius: 3px;
  transition: height 0.3s ease;
}

.sp-reset {
  align-self: flex-end;
  background: transparent;
  border: 0;
  color: var(--ink-3);
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  cursor: pointer;
  padding: 2px 0;
}
.sp-reset:hover { color: var(--bad); }

.last-7 { margin-top: 40px; }
.last-7-row {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 10px;
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: 10px;
  padding: 18px;
}
.last-7-day {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.last-7-track {
  height: 90px;
  width: 100%;
  background: var(--paper-2);
  border-radius: 4px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.last-7-fill {
  width: 100%;
  background: var(--accent);
  border-radius: 4px;
  min-height: 4px;
  transition: height 0.4s ease;
}
.last-7-count {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-2);
  font-weight: 500;
  min-height: 14px;
}
.last-7-label {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-3);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* flashcard "Got it" judge button */
.flashcard-judge { display: flex; gap: 10px; margin-top: 6px; }
