/* PHOBEE student Progress refinement — scoped to .progress-page. */
.progress-page { width: min(1240px, 100%); margin: 0 auto; padding: 34px 0 72px; }
.progress-page h1, .progress-page h2, .progress-page p { margin-top: 0; }
.progress-page .eyebrow { margin: 0 0 7px; color: var(--teal-dark); font-size: .78rem; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.progress-intro { display: flex; align-items: center; justify-content: space-between; gap: 32px; margin: 0 0 22px; }
.progress-intro h1 { margin-bottom: 7px; color: #142b58; font-size: clamp(2.15rem, 4vw, 3.25rem); line-height: 1.06; letter-spacing: -.025em; }
.progress-intro > div:first-child > p:last-child { margin-bottom: 0; color: var(--ink-soft); font-family: var(--font-reading); font-size: 1.08rem; }
.progress-quote { width: 260px; min-height: 92px; display: grid; grid-template-columns: 1fr auto; grid-template-rows: auto auto; align-content: center; column-gap: 18px; padding: 16px 20px; border-radius: 15px; background: #edf2f8; color: #53647e; font-family: var(--font-reading); box-sizing: border-box; }
.progress-quote span, .progress-quote strong { display: block; grid-column: 1; }
.progress-quote span { grid-row: 1; align-self: end; font-size: .95rem; font-style: italic; }
.progress-quote strong { grid-row: 2; align-self: start; color: #53647e; font-size: 1rem; }
.progress-quote i { grid-column: 2; grid-row: 1 / 3; align-self: center; width: 1px; height: 48px; background: #9caac0; }

.progress-overall { display: grid; grid-template-columns: minmax(300px, .92fr) minmax(440px, 1.35fr); align-items: center; gap: 40px; padding: 24px 28px; margin-bottom: 14px; }
.progress-overall__copy h2 { margin-bottom: 5px; font-size: 1.42rem; }
.progress-overall__summary { margin-bottom: 3px; color: var(--ink); font-size: 1.12rem; font-weight: 800; }
.progress-overall__detail { margin-bottom: 0; color: var(--ink-soft); font-family: var(--font-reading); }
.progress-overall__visual { padding: 6px 0 2px; }
.progress-segmented { display: flex; height: 24px; overflow: hidden; border: 1px solid #d6ddea; border-radius: 999px; background: #e9edf3; box-shadow: inset 0 1px 2px rgba(38,51,71,.08); }
.progress-segmented span { min-width: 0; height: 100%; }
.progress-segmented .is-strong { background: var(--green); }
.progress-segmented .is-improving { background: var(--teal); }
.progress-segmented .is-needs { background: #b9c2d2; }
.progress-segmented span + span { box-shadow: inset 2px 0 rgba(255,255,255,.75); }
.progress-overall__legend { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin-top: 14px; }
.progress-legend-item { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 54px; padding: 0 18px; border-right: 1px solid var(--line); }
.progress-legend-item:first-child { padding-left: 0; justify-content: flex-start; }
.progress-legend-item:last-child { border-right: 0; padding-right: 0; justify-content: flex-end; }
.progress-legend-copy { display: flex; flex-direction: column; gap: 1px; }
.progress-legend-copy > span { color: var(--ink-soft); font-size: .79rem; font-weight: 700; }
.progress-legend-copy strong { color: var(--ink); font-size: 1.38rem; line-height: 1.05; }
.legend-marker { width: 36px; height: 36px; display: grid; place-items: center; flex: none; border-radius: 50%; line-height: 0; }
.legend-marker svg, .legend-marker .ui-icon { display: block; width: 20px; height: 20px; margin: auto; }
.progress-legend-item--strong .legend-marker { color: var(--green-dark); background: var(--green-soft); }
.progress-legend-item--improving .legend-marker { color: var(--teal-dark); background: var(--teal-soft); }
.progress-legend-item--needs .legend-marker { color: var(--ink-soft); background: #eef1f5; }
.progress-legend-item--strong strong { color: var(--green-dark); }
.progress-legend-item--improving strong { color: var(--teal-dark); }
.progress-legend-item--needs strong { color: #59667a; }

.progress-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 14px; }
.progress-stat { min-width: 0; display: flex; align-items: center; gap: 13px; min-height: 82px; padding: 14px 18px; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface); box-shadow: var(--shadow-1); }
.progress-stat__icon { width: 46px; height: 46px; flex: none; display: grid; place-items: center; border-radius: 50%; line-height: 0; }
.progress-stat__icon svg, .progress-stat__icon .ui-icon { display: block; width: 24px; height: 24px; margin: auto; }
.progress-stat--indigo .progress-stat__icon { color: var(--blue); background: var(--blue-soft); }
.progress-stat--green .progress-stat__icon { color: var(--green-dark); background: var(--green-soft); }
.progress-stat--gold .progress-stat__icon { color: var(--gold-dark); background: var(--gold-soft); }
.progress-stat--teal .progress-stat__icon { color: var(--teal-dark); background: var(--teal-soft); }
.progress-stat strong, .progress-stat span, .progress-stat small { display: block; }
.progress-stat strong { color: var(--ink); font-size: 1.48rem; line-height: 1.05; }
.progress-stat span { color: var(--ink); font-weight: 700; }
.progress-stat small { margin-top: 1px; color: var(--ink-soft); font-family: var(--font-reading); font-size: .76rem; }

.progress-action { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 15px; min-height: 86px; padding: 15px 20px; margin-bottom: 26px; border: 1px solid #c7d2f4; border-radius: var(--radius-md); background: #f0f2ff; }
.progress-action__icon { width: 48px; height: 48px; display: grid; place-items: center; color: var(--blue); border-radius: 50%; background: #e4e8ff; line-height: 0; }
.progress-action__icon svg, .progress-action__icon .ui-icon { display: block; margin: auto; }
.progress-action__copy h2 { margin-bottom: 2px; font-size: 1.12rem; }
.progress-action__copy p { margin-bottom: 0; color: var(--ink-soft); font-family: var(--font-reading); }
.progress-action .ui-button, .progress-action .button { min-width: 215px; }
.progress-review-section { margin-top: 0; }
.progress-section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 10px; }
.progress-section-heading h2 { margin-bottom: 3px; color: #142b58; font-size: 1.45rem; }
.progress-section-heading p:last-child { margin-bottom: 0; max-width: 760px; color: var(--ink-soft); font-family: var(--font-reading); }
.progress-section-count { padding-bottom: 4px; color: var(--ink-soft); font-size: .82rem; font-weight: 800; }
.review-word-list { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface); box-shadow: var(--shadow-1); }
.review-word { display: grid; grid-template-columns: minmax(230px, 1.5fr) 140px minmax(190px, 1fr) 105px; align-items: center; gap: 18px; min-height: 78px; padding: 12px 18px; border-bottom: 1px solid var(--line); }
.review-word:last-child { border-bottom: 0; }
.review-word:focus-visible { position: relative; z-index: 1; outline: 3px solid var(--blue); outline-offset: -3px; }
.review-word__identity strong, .review-word__identity span { display: block; }
.review-word__identity strong { color: var(--ink); font-size: 1.05rem; }
.review-word__identity span { margin-top: 2px; overflow: hidden; color: var(--ink-soft); font-family: var(--font-reading); font-size: .82rem; text-overflow: ellipsis; white-space: nowrap; }
.review-word__status .status-badge { margin: 0; }
.review-word__progress { display: flex; align-items: center; gap: 10px; }
.review-word__progress > span:last-child { color: var(--ink-soft); font-family: var(--font-reading); font-size: .82rem; white-space: nowrap; }
.review-rounds { display: inline-flex; gap: 6px; }
.review-round { width: 30px; height: 30px; display: grid; place-items: center; color: var(--muted); border: 2px solid var(--line); border-radius: 9px; background: #fff; line-height: 0; }
.review-round svg, .review-round .ui-icon { display: block; margin: auto; }
.review-round.is-complete { color: var(--green-dark); border-color: var(--green); background: var(--green-soft); }
.progress-practice-link { min-height: 44px; justify-self: end; padding: 8px 11px; box-shadow: none; }
.progress-caught-up { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 16px; padding: 20px 22px; margin-top: 4px; border: 1px solid #c9dfd0; border-radius: var(--radius-md); background: var(--green-soft); }
.progress-caught-up__icon { width: 50px; height: 50px; display: grid; place-items: center; color: var(--green-dark); border-radius: 50%; background: #d9efdf; }
.progress-caught-up h2 { margin-bottom: 3px; font-size: 1.15rem; }
.progress-caught-up p:last-child { margin-bottom: 0; color: var(--ink-soft); font-family: var(--font-reading); }

@media (max-width: 980px) {
  .progress-page { padding: 28px 0 56px; }
  .progress-intro { align-items: flex-start; }
  .progress-quote { width: 220px; }
  .progress-overall { grid-template-columns: 1fr; gap: 20px; }
  .progress-overall__legend { max-width: 680px; }
  .progress-stats { grid-template-columns: repeat(2, 1fr); }
  .review-word { grid-template-columns: minmax(200px, 1.4fr) 130px 180px auto; }
}
@media (max-width: 720px) {
  .progress-page { padding: 22px 0 44px; }
  .progress-intro { display: block; margin-bottom: 18px; }
  .progress-intro h1 { font-size: clamp(2rem, 9vw, 2.55rem); }
  .progress-quote { display: none; }
  .progress-overall { padding: 20px; }
  .progress-segmented { height: 20px; }
  .progress-overall__legend { grid-template-columns: 1fr; gap: 8px; }
  .progress-legend-item, .progress-legend-item:first-child, .progress-legend-item:last-child { justify-content: flex-start; min-height: 44px; padding: 0; border-right: 0; }
  .progress-stats { gap: 9px; }
  .progress-stat { min-height: 76px; padding: 12px; }
  .progress-stat__icon { width: 40px; height: 40px; }
  .progress-action { grid-template-columns: auto 1fr; }
  .progress-action .ui-button, .progress-action .button { grid-column: 1 / -1; width: 100%; }
  .progress-section-heading { display: block; }
  .progress-section-count { display: block; margin-top: 7px; }
  .review-word-list { border: 0; box-shadow: none; background: transparent; }
  .review-word { grid-template-columns: 1fr auto; gap: 10px 12px; padding: 16px; margin-bottom: 9px; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface); box-shadow: var(--shadow-1); }
  .review-word__status { justify-self: end; }
  .review-word__progress { grid-column: 1 / -1; }
  .progress-practice-link { grid-column: 1 / -1; justify-self: stretch; width: 100%; }
  .progress-caught-up { grid-template-columns: auto 1fr; }
  .progress-caught-up .ui-button, .progress-caught-up .button { grid-column: 1 / -1; width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .progress-page *, .progress-page *::before, .progress-page *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
}
