.course-player-page .course-reading.goal-onboarding { max-width: 760px; width: 100%; min-height: 0; margin-inline: auto; padding: 26px clamp(20px, 4vw, 44px) 30px; }
.goal-onboarding h1 { font-size: clamp(1.65rem, 3vw, 2.4rem); line-height: 1.2; }
.goal-onboarding .course-reading-track { margin-bottom: 18px; }
.goal-onboarding .course-step-content { width: 100%; }
.goal-choices { display: grid; gap: 10px; margin-top: 20px; }
.goal-choice { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); color: var(--ink); font-size: .95rem; line-height: 1.4; cursor: pointer; transition: border-color 140ms ease, background-color 140ms ease; }
.goal-choice input { flex: 0 0 auto; width: 17px; height: 17px; margin: 0; accent-color: var(--ink); }
.goal-choice:hover { border-color: var(--line-strong); }
.goal-choice:has(input:checked) { border-color: var(--ink); background: var(--surface-2); }
.goal-choice:has(input:focus-visible) { outline: 2px solid var(--ink); outline-offset: 3px; }
.goal-custom-label { display: block; margin-top: 16px; font-size: .85rem; }
.goal-custom-input { display: block; width: 100%; min-height: 48px; margin-top: 8px; padding: 10px 12px; border: 1px solid var(--line-strong); border-radius: 8px; background: var(--surface); color: var(--ink); font: inherit; }
.goal-custom-input[hidden], .goal-custom-label[hidden] { display: none; }
.goal-summary { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 12px 18px; margin: 20px 0; font-size: .92rem; line-height: 1.55; }
.goal-summary dt { color: var(--muted); }
.goal-summary dd { margin: 0; overflow-wrap: anywhere; }
.goal-save-error { color: #a12626; font-size: .85rem; }
.goal-save-error:empty { display: none; }
.goal-onboarding .course-step-actions { flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.goal-onboarding .course-step-actions button { min-height: 44px; }
.goal-onboarding .course-step-actions button:disabled { opacity: .45; cursor: not-allowed; }
.goal-profile { margin: 28px 0; padding-block: 24px; border-block: 1px solid var(--line); }
.goal-profile h2 { margin: 0; font-size: 1.2rem; }
.goal-profile a { color: #2459b8; }
@media (max-width: 600px) {
  .goal-onboarding .course-step-actions { justify-content: flex-start; }
  .goal-summary { grid-template-columns: 1fr; gap: 4px; }
  .goal-summary dd { margin-bottom: 10px; }
  .goal-choice { padding: 12px; }
}
@media (prefers-reduced-motion: reduce) { .goal-choice { transition: none; } }

/* The first assessment shares Training's quiet, inline typing surface. */
.course-player-layout:has(.goal-assessment-step),
.course-player-layout:has(.goal-results-step) { min-height: 0; }
.course-player-page .course-reading.goal-assessment-step,
.course-player-page .course-reading.goal-results-step {
  display: flex; flex-direction: column; justify-content: center;
  width: 100%; max-width: 1140px; min-height: calc(100dvh - var(--goal-top, 124px));
  padding: 36px clamp(20px, 4vw, 56px);
}
.goal-assessment-step .course-reading-progress,
.goal-assessment-step .course-reading-track,
.goal-results-step .course-reading-progress,
.goal-results-step .course-reading-track { display: none; }
.goal-assessment-step h1 { margin: 0 0 32px; font-size: 1.1rem; font-weight: 600; line-height: 1.4; color: var(--muted); letter-spacing: 0; }
.goal-assessment-step .course-baseline-passage {
  width: 100%; min-height: 0; max-height: none; margin: 0; padding: 0;
  overflow: hidden; border: 0; border-radius: 0; outline: none; scroll-behavior: auto;
  color: #737373; font: 500 clamp(1.45rem, 2.7vw, 2.2rem)/1.72 ui-monospace, SFMono-Regular, Consolas, monospace;
  letter-spacing: .012em;
}
.goal-assessment-step .course-baseline-passage:focus-visible { outline: 2px solid var(--ink); outline-offset: 8px; }
.goal-assessment-step .course-practice-feedback:empty { display: none; }
.goal-assessment-step .course-step-actions { align-items: center; margin-top: 28px; padding-top: 0; border: 0; }
.goal-assessment-step .course-baseline-clock { margin: 0 auto 0 0; font-size: 1.1rem; font-weight: 500; color: var(--muted); }
.goal-assessment-step .course-step-actions button { min-width: 44px; padding: 10px 12px; border: 0; background: transparent; color: var(--muted); }
.goal-assessment-step .course-step-actions button:hover { background: var(--surface-2); color: var(--ink); }
.goal-assessment-restart { display: grid; width: 44px; height: 44px; place-items: center; }
.goal-assessment-restart svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.goal-results-step { text-align: center; }
.goal-results-step h1 { margin: 0 0 20px; font-size: 1.1rem; line-height: 1.4; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.goal-result-wpm { margin: 0; font-size: clamp(3.5rem, 8vw, 5.5rem); line-height: 1.15; font-weight: 700; letter-spacing: -.05em; font-variant-numeric: tabular-nums; }
.goal-result-category { margin: 16px 0 0; font-size: 1.35rem; font-weight: 600; }
.goal-result-accuracy { margin: 12px 0 0; color: var(--muted); font-size: .9rem; }
.goal-results-step .course-step-actions { justify-content: center; margin-top: 32px; padding-top: 0; border: 0; }
.goal-assessment-step .course-step-actions > :last-child,
.goal-results-step .course-step-actions > :last-child { margin-left: 0; }
.goal-results-step #course-reading-title:focus { outline: none; }
@media (max-width: 600px) {
  .goal-assessment-step h1 { margin-bottom: 24px; }
  .goal-assessment-step .course-step-actions { gap: 8px; margin-top: 24px; }
}
