/* One clear next action, with course and session progress always close by. */
.word-help { margin-top: 18px; border-top: 1px solid var(--line); padding-top: 10px; }
.word-help > summary { padding: 7px 0; cursor: pointer; color: var(--lime); font-size: 13px; }
.word-help dl { display: grid; gap: 6px; margin: 12px 0; }
.word-help dt { color: var(--text); font-size: 13px; font-weight: 600; text-transform: capitalize; }
.word-help dd { margin: 0 0 10px; color: var(--muted); font-size: 13px; line-height: 1.8; }
.coach-home .button-gnista, .coach-play .button-gnista, .summary .button-gnista, .admin-home .button-gnista, .student-report-focused .button-gnista, .reward-editor-dialog .button-gnista { display: none; }
.coach-play .challenge .options { gap: 10px; margin: 16px 0 20px; }
.coach-play .exercise-phases b { display: none; }
.coach-play .exercise-phases > span + span::before { content: '→'; color: #77816e; margin-right: 6px; }
.coach-play .exercise-phases > span[aria-current="step"] { color: var(--lime); }
body.has-mobile-nav #header { position: sticky; top: 0; z-index: 30; background: #111416f5; backdrop-filter: blur(16px); }
#study-progress { position: sticky; top: 80px; z-index: 22; max-width: 1100px; width: calc(100% - 48px); margin: 0 auto; padding: 11px 0 9px; background: #111416f5; backdrop-filter: blur(12px); }
.study-progress-copy { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-bottom: 8px; font-size: 11px; color: var(--muted); }
.study-progress-copy > strong { font-weight: 500; font-size: 12px; color: #d6dfcb; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.study-progress-copy > span { white-space: nowrap; }.study-progress-copy b { color: var(--lime); font-size: 13px; font-weight: 600; }
.study-progress-copy small { font-size: 10px; }
.study-progress-track { height: 4px; background: #31372c; border-radius: 8px; overflow: hidden; }
.study-progress-track i { display: block; height: 100%; background: var(--lime); border-radius: inherit; transition: width .35s ease-out; }
.has-study-progress #app > .page { padding-top: 16px; }
.exercise-step-strip { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 16px; margin: 8px 0 14px; background: #1d241a; border: 1px solid #3b4a2d; border-radius: 12px; }
.exercise-step-strip > span { font-size: 12px; color: var(--muted); white-space: nowrap; }
.exercise-step-strip > span > strong { color: var(--text); font-weight: 500; }
.exercise-step-strip ol { display: flex; gap: 10px; list-style: none; margin: 0; padding: 0; }
.exercise-step-strip li { position: relative; display: grid; place-items: center; width: 30px; height: 30px; border: 1px solid #5a6b45; border-radius: 50%; background: #26321d; color: var(--lime); font-size: 12px; }
.exercise-step-strip li + li::before { content: ''; position: absolute; left: -11px; width: 10px; height: 1px; background: #55673c; }
.exercise-step-strip .step-is-current { background: var(--lime); border-color: var(--lime); color: #1b2514; box-shadow: 0 0 0 4px #c6f36a18; }
.exercise-step-strip .step-is-done { background: #c6f36a; color: #172111; border-color: #c6f36a; }
.coach-play .play-top { display: none; }
.coach-play .lesson-context { font-size: 11px; margin-bottom: 0; }
.coach-play .lesson-context > span:last-child { display: none; }
.coach-play > .run-progress { display: none; }
.coach-play .exercise-phases { padding: 10px 0; margin-bottom: 5px; }
.coach-play .play-layout { gap: 18px; }
.coach-play .play-layout > .panel { border: 1px solid #3c4435; border-radius: 16px; padding: 26px 30px; background: #1a1f1b; }
.coach-play .play-layout > .panel h1 { font-size: clamp(25px, 3.2vw, 34px); line-height: 1.35; margin: 12px 0 20px; letter-spacing: -.7px; }
.coach-play .challenge .challenge-description { font-size: 14px; margin: 0 0 18px; }
.coach-play .lesson-text { font-size: 16px; line-height: 1.85; }
.coach-play .focus-line { padding: 15px 18px; margin-block: 18px; border-radius: 0 9px 9px 0; }
.coach-play .focus-line p { font-size: 15px; }
.coach-play .option { min-height: 58px; padding: 14px 16px; font-size: 16px; line-height: 1.65; border-radius: 12px; }
.coach-play .option > span { width: 29px; min-width: 29px; height: 29px; font-size: 12px; }
.coach-play .recall-prompt { padding: 14px 0; margin-bottom: 15px; }
.coach-play .recall-prompt p { font-size: 13px; line-height: 1.7; }
.coach-play .recall-prompt .button { min-height: 38px; padding: 8px 12px; font-size: 12px; }
.coach-play .panel > .button { min-height: 48px; padding: 13px 20px; font-size: 15px; }
.coach-play .step-party { display: flex; gap: 12px; align-items: center; padding: 14px 0; }
.step-party > .gnista { width: 48px; height: 48px; flex-shrink: 0; animation: step-win .65s ease-out; }
.step-party > div { display: grid; gap: 4px; }.step-party strong { font-size: 23px; font-weight: 500; color: var(--lime); }
.step-party span { font-size: 12px; color: var(--muted); }
.coach-play .feedback { margin-top: 8px; padding: 18px; border-radius: 12px; }
.coach-play .feedback h3 { font-size: 21px; }.coach-play .feedback p { font-size: 14px; }
.coach-home { max-width: 1120px; }
.coach-home .coach-greeting { margin-bottom: 22px; max-width: none; }
.coach-home .coach-greeting h1 { font-size: clamp(29px, 3.5vw, 40px); margin: 12px 0; line-height: 1.2; }
.coach-home .coach-greeting > p { font-size: 14px; margin-bottom: 0; }
.coach-home .coach-feature { grid-template-columns: minmax(0, 1fr) 170px; padding: 26px; gap: 20px; border: 1px solid #53653b; border-radius: 16px; background: radial-gradient(ellipse at 100% 20%, #c6f36a12, transparent 65%), #1b2118; }
.coach-home .coach-feature h2 { font-size: 30px; margin: 14px 0; }
.coach-home .coach-feature-copy > p { font-size: 15px; margin: 0; line-height: 1.8; }
.coach-home .coach-feature .hero-actions { margin-top: 20px; gap: 14px; }
.coach-home .coach-feature .button { font-size: 15px; min-height: 50px; padding: 14px 18px; }
.coach-home .coach-feature .hero-actions > span { font-size: 11px; }
.coach-home .discovery-art svg { max-width: 170px; }
.coach-home .discovery-art > span { font-size: 8px; letter-spacing: 1px; }
.coach-home .today-flow { margin: 18px 0 25px; }
.coach-home .today-flow ol { margin: 0; gap: 12px; }
.coach-home .today-flow li { align-items: center; gap: 9px; padding: 12px; border: 1px solid var(--line); border-radius: 10px; background: #191d1a; }
.coach-home .today-flow li > span { display: grid; place-items: center; min-width: 25px; height: 25px; padding: 0; border: 0; border-radius: 50%; background: var(--lime); color: #172312; font-size: 12px; }
.coach-home .today-flow h3 { font-size: 13px; margin: 0; }
.coach-home .section-title { margin-top: 24px; margin-bottom: 14px; }
.coach-home .section-title h2 { font-size: 24px; }
.coach-home .student-subject { padding: 20px; border: 1px solid #373f33; border-radius: 12px; background: #1b201b; margin-bottom: 12px; }
.coach-home .student-subject h3 { font-size: 22px; }
.coach-home .student-subject p { font-size: 12px; }
.coach-home .quiet-rewards { padding: 18px 0; gap: 18px; margin-top: 14px; }
.coach-home .quiet-rewards > div > span { font-size: 20px; }
.coach-home .student-footnote { font-size: 12px; margin-top: 14px; }
.coach-home .welcome-letter { padding: 26px; gap: 22px; border: 1px solid #53653b; border-radius: 16px; background: linear-gradient(115deg, #26321e, #1a1f1a); margin-bottom: 22px; }
.coach-home .welcome-letter h1 { font-size: 36px; margin: 14px 0; line-height: 1.25; }
.coach-home .welcome-letter p { font-size: 15px; margin: 12px 0; line-height: 1.8; }
.coach-home .welcome-mascot { width: 100px; }
.coach-home .welcome-mascot > .gnista { width: 100px; height: 110px; }
.coach-home .welcome-mascot > span { font-size: 8px; }
.coach-home .welcome-actions { margin-top: 18px; gap: 12px; }
.coach-home .welcome-actions .button { font-size: 14px; min-height: 48px; padding: 13px 18px; }
.coach-home:has(.welcome-letter) .coach-feature { display: none; }
.course-overview .course-hero { padding: 18px 0; gap: 24px; }
.course-overview .course-hero h1 { font-size: clamp(29px, 4vw, 40px); margin: 12px 0; line-height: 1.2; }
.course-overview .course-hero h1 br { display: none; }
.course-overview .course-hero > div > p { font-size: 14px; margin: 0 0 16px; }
.course-overview .course-hero .hero-actions { margin-top: 0; gap: 12px; }
.course-overview .course-hero .hero-actions > .button { font-size: 14px; min-height: 46px; padding: 12px 18px; }
.course-overview .course-hero .hero-actions > span { font-size: 11px; }
.course-overview .course-knowledge > strong { font-size: 38px; margin-block: 8px; }
.course-overview .course-knowledge h3 { font-size: 19px; margin-block: 10px; }
.course-overview .course-knowledge > p { font-size: 12px; }
.study-course-reward { border-block: 1px solid var(--line); margin: 4px 0 16px; }
.study-course-reward[hidden] { display: none; }
.study-course-reward > summary { padding: 12px 0; cursor: pointer; color: var(--muted); font-size: 12px; }
.course-overview .mode-grid { margin-top: 16px; gap: 12px; }
.course-overview .mode-card { padding: 16px; min-height: 0; }
.course-overview .mode-card .kicker { font-size: 8px; }.course-overview .mode-card h3 { font-size: 18px; margin: 6px 0; }
.course-overview .mode-card p { font-size: 12px; margin: 0; }
.course-overview .mode-icon { width: 36px; height: 40px; font-size: 24px; }
.course-overview > .section-title { margin-top: 24px; margin-bottom: 10px; }.course-overview > .section-title h2 { font-size: 25px; }
.course-overview .gnista-intro { padding-top: 0; }
.course-overview .gnista-intro > .gnista { width: 60px; height: 65px; }
.course-overview .gnista-intro strong { font-size: 18px; }.course-overview .gnista-intro p > span { font-size: 12px; }
.course-overview .chapter-banner { padding: 18px 0; }.course-overview .chapter-banner h3 { font-size: 23px; }
.summary .session-learning h2 { font-size: 22px; }
.summary .hero-actions { gap: 10px; }
@keyframes step-win { 0% { transform: translateY(8px) scale(.7); } 60% { transform: translateY(-5px) rotate(-8deg) scale(1.1); } 100% { transform: none; } }
@media(max-width: 680px) {
  #study-progress { top: 69px; width: calc(100% - 36px); padding-top: 24px; padding-bottom: 9px; }
  .study-progress-copy { gap: 12px; font-size: 10px; }.study-progress-copy > strong { font-size: 10px; max-width: 45%; }
  .study-progress-copy small { display: none; }
  .has-study-progress #app > .page { padding-top: 12px; }
  .has-mobile-nav #app > .coach-play { margin-top: 7px; }
  .exercise-step-strip { gap: 10px; padding: 10px 12px; flex-wrap: wrap; }
  .exercise-step-strip > span { font-size: 11px; }
  .exercise-step-strip ol { flex: 1; justify-content: flex-end; gap: 7px; }
  .exercise-step-strip li { width: 25px; height: 25px; font-size: 10px; }
  .exercise-step-strip li + li::before { width: 7px; left: -8px; }
  .coach-play .play-layout > .panel { padding: 22px 18px; border-radius: 14px; }
  .coach-play .play-layout > .panel h1 { font-size: 25px; line-height: 1.4; margin-bottom: 18px; }
  .coach-play .lesson-text { font-size: 15px; }.coach-play .option { min-height: 57px; font-size: 15px; padding: 13px; }
  .coach-play .panel > .button { width: 100%; }
  .coach-home .coach-greeting h1 { font-size: 30px; }
  .coach-home .coach-feature { padding: 22px; grid-template-columns: minmax(0, 1fr); }
  .coach-home .coach-feature h2 { font-size: 27px; }.coach-home .coach-feature-copy > p { font-size: 14px; }
  .coach-home .discovery-art { opacity: .08; }
  .coach-home .today-flow ol { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; }
  .coach-home .today-flow li { flex-direction: column; align-items: flex-start; gap: 7px; padding: 10px; }
  .coach-home .today-flow h3 { font-size: 11px; line-height: 1.5; }
  .coach-home .welcome-letter { padding: 22px; display: flex; gap: 12px; }
  .coach-home .welcome-mascot { width: 55px; flex: 0 0 55px; }
  .coach-home .welcome-mascot > .gnista { width: 55px; height: 65px; }.coach-home .welcome-mascot > span { display: none; }
  .coach-home .welcome-letter h1 { font-size: 28px; }.coach-home .welcome-letter p { font-size: 14px; }
  .coach-home .welcome-letter > div:last-child { min-width: 0; }
  .coach-home .welcome-actions { flex-direction: column; align-items: stretch; gap: 5px; }
  .coach-home .welcome-actions .button { font-size: 13px; padding-inline: 11px; }
  .coach-home .student-subject { padding: 18px; }.coach-home .student-subject h3 { font-size: 20px; }
  .course-overview .course-hero { display: block; padding-block: 12px 16px; }
  .course-overview .mastery-panel { display: none; }
  .course-overview .mode-grid { grid-template-columns: 1fr 1fr; gap: 9px; }
  .course-overview .mode-card { padding: 14px 12px; display: block; }.course-overview .mode-card > :is(.mode-icon, span:last-child) { display: none; }
  .course-overview .mode-card h3 { font-size: 15px; }.course-overview .mode-card p { font-size: 11px; }
  .course-overview > .section-title h2 { font-size: 22px; }.course-overview > .section-title .kicker { font-size: 9px; }
  .summary .session-learning p { padding-block: 12px; }.summary .session-learning strong { font-size: 13px; }
}
@media(max-width: 370px) {
  .exercise-step-strip { display: block; }.exercise-step-strip ol { justify-content: space-between; margin-top: 10px; }
  .coach-home .welcome-letter { gap: 0; }.coach-home .welcome-mascot { display: none; }
}
@media(prefers-reduced-motion: reduce) { .step-party > .gnista { animation: none; }.study-progress-track i { transition: none; } }
