.first-lesson-goal {
  box-sizing: border-box;
  margin: 12px 0;
  padding: 16px 18px;
  border: 1px solid #a6d6cf;
  border-left: 4px solid #0f766e;
  border-radius: 14px;
  background: #f1fbf8;
  color: #134e4a;
  text-align: left;
  width: 100%;
  min-width: 0;
}
.first-lesson-goal[hidden], .first-lesson-goal [hidden] { display: none !important; }
.first-lesson-goal strong { display: block; font-size: 16px; line-height: 1.5; }
.first-lesson-goal p { margin: 5px 0 10px; font-size: 13px; line-height: 1.6; color: #476964; overflow-wrap: anywhere; }
.first-lesson-goal progress { display: block; width: 100%; height: 7px; accent-color: #0f766e; margin: 12px 0; }
.first-lesson-goal-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.first-lesson-goal button, .first-lesson-goal a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 8px 14px;
  border-radius: 10px;
  border: 1px solid #9ccbc4;
  background: white;
  color: #115e59;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}
.first-lesson-goal .goal-primary { background: #0f766e; border-color: #0f766e; color: white; }
.first-lesson-goal button:disabled { opacity: .6; cursor: wait; }
.first-lesson-goal :is(button, a):focus-visible { outline: 3px solid #e69c27; outline-offset: 3px; }
.first-lesson-goal .goal-feedback:empty { display: none; }
.first-lesson-goal .goal-feedback { margin-bottom: 0; }
@media (max-width: 768px) {
  .first-lesson-goal { padding: 12px; margin: 10px 0; }
  .first-lesson-goal-actions button { flex: 1; }
}

/* Shared short English lesson; resume cards retain their compact treatment. */
.first-lesson-goal.goal-studio {
  --goal-ink: #172b4d;
  --goal-muted: #617388;
  --goal-accent: #187c9a;
  padding: clamp(16px, 3vw, 26px);
  border: 1px solid #dce8ed;
  border-radius: 24px;
  background: #fff;
  color: var(--goal-ink);
  box-shadow: 0 12px 36px rgba(25, 63, 86, .08);
  font-family: inherit;
}
.goal-studio .goal-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.goal-studio .goal-eyebrow { color: #207d94; font-size: 10px; font-weight: 800; letter-spacing: .15em; }
.goal-studio .goal-count { padding: 5px 9px; border-radius: 8px; color: #46667b; background: #edf5f8; font-size: 11px; font-weight: 750; white-space: nowrap; }
.goal-studio .goal-title { font-size: clamp(20px, 3vw, 26px); line-height: 1.35; letter-spacing: -.03em; color: var(--goal-ink); }
.goal-studio .goal-detail { margin: 8px 0 16px; color: var(--goal-muted); font-size: 13px; }
.goal-studio .goal-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; margin: 18px 0 12px; padding: 4px; border: 1px solid #e2eaf0; border-radius: 14px; background: #f1f5f8; }
.goal-studio .goal-step { min-width: 0; min-height: 42px; padding: 7px 3px; border: 1px solid transparent; border-radius: 10px; color: #627589; background: transparent; font-size: 12px; font-weight: 750; white-space: normal; }
.goal-studio .goal-step[aria-current="step"] { border-color: #cde4ee; color: #116d8e; background: #fff; box-shadow: 0 2px 5px rgba(25, 63, 86, .07); }
.goal-studio .goal-step:disabled { cursor: default; opacity: .65; }
.goal-studio .goal-meter { width: 100%; height: 5px; margin: 0 0 16px; accent-color: #218da1; }
.goal-studio .goal-sentence { padding: clamp(16px, 3vw, 24px); border: 1px solid #e0eaf0; border-radius: 18px; background: #f7fafc; }
.goal-studio .goal-sentence-label { display: block; color: #718397; font-size: 10px; font-weight: 800; letter-spacing: .11em; }
.goal-studio .goal-sentence-text { margin: 12px 0 8px; color: #182e4b; font-family: Georgia, "Times New Roman", serif; font-size: clamp(24px, 3.3vw, 34px); font-weight: 500; line-height: 1.35; letter-spacing: -.02em; overflow-wrap: anywhere; }
.goal-studio .goal-translation-toggle { justify-content: flex-start; min-height: 44px; padding: 6px 0; border: 0; border-radius: 4px; color: #247c98; background: transparent; font-size: 12px; }
.goal-studio .goal-translation { margin: 4px 0 0; padding-top: 12px; border-top: 1px solid #e0eaf0; color: #566b80; font-size: 14px; }
.goal-studio .goal-feedback { margin: 16px 0 0; padding: 13px 15px; border: 1px solid #cce8df; border-radius: 12px; color: #276756; background: #f0faf5; font-size: 14px; font-weight: 600; line-height: 1.6; }
.goal-studio[data-status="retry"] .goal-feedback { border-color: #ebdfbf; color: #795e29; background: #fffbef; }
.goal-studio .goal-response { margin-top: 16px; padding: 0 4px; }
.goal-studio .goal-recognized { margin: 8px 0; color: #394e68; font-size: 16px; line-height: 1.6; }
.goal-studio .goal-focus { margin: 8px 0; color: #7b602d; font-size: 13px; }
.goal-studio .goal-focus:empty { display: none; }
.goal-studio .goal-recording-label { display: block; margin: 18px 0 8px; color: #617388; font-size: 12px; font-weight: 700; }
.goal-studio .goal-recording { display: block; width: 100%; max-width: 100%; height: 44px; margin: 0 0 12px; }
.goal-studio .first-lesson-goal-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 18px; }
.goal-studio .first-lesson-goal-actions :is(button, a) { min-width: 0; min-height: 48px; padding: 10px 8px; border: 1px solid #d3e3eb; border-radius: 13px; color: #3e6279; background: #fff; font-size: 14px; }
.goal-studio .first-lesson-goal-actions .goal-primary { border-color: #147e99; color: #fff; background: #147e99; box-shadow: 0 5px 12px rgba(20, 126, 153, .15); }
.goal-studio .first-lesson-goal-actions .goal-exit { color: #627589; border-color: transparent; background: #f4f7f9; }
.goal-studio :is(button, a):focus-visible { outline: 3px solid #de9a37; outline-offset: 3px; }
html[data-learning-focus="first-lesson"] :is(#coach-dock, #practice-section-right) { display: none !important; }
.guided-reader-tools { display: contents; }
.guided-reader-tools > summary { display: none; }
.guided-lesson-entry { display: none; }
html[data-learning-focus="first-lesson"] .guided-reader-tools { display: block; }
html[data-learning-focus="first-lesson"] .guided-reader-tools > summary { display: flex; align-items: center; min-height: 48px; padding: 10px 14px; border: 1px solid #dce8ed; border-radius: 13px; color: #496477; background: #f7fafc; font-size: 13px; font-weight: 700; cursor: pointer; list-style: none; }
html[data-learning-focus="first-lesson"] .guided-reader-tools > summary::marker { content: ''; }
html[data-learning-focus="first-lesson"] .guided-reader-tools[open] > summary { margin-bottom: 10px; }
@media (max-width: 768px) {
  body.video-reader-mobile-focus #first-lesson-goal { order: 2; width: calc(100% - 20px); margin: 12px 10px; }
  body.video-reader-mobile-focus .guided-reader-tools { order: 3; }
  html[data-learning-focus="first-lesson"] body.video-reader-mobile-focus .guided-reader-tools { width: calc(100% - 20px); margin: 0 10px 12px; }
  html[data-learning-focus="first-lesson"] body.video-reader-mobile-focus .guided-reader-tools :is(.mobile-transcript-view, .mobile-player-controls) { width: 100%; margin-left: 0; margin-right: 0; }
  body.video-reader-mobile-focus .guided-lesson-entry { order: 4; display: flex; align-items: center; justify-content: space-between; gap: 12px; width: calc(100% - 20px); min-height: 52px; margin: 12px 10px; padding: 14px 16px; border: 1px solid #cce4ea; border-radius: 15px; color: #126b82; background: #fff; font-size: 14px; font-weight: 750; text-decoration: none; }
  body.video-reader-mobile-focus .guided-lesson-entry[hidden] { display: none; }
  .goal-studio .goal-heading { gap: 8px; }
  .goal-studio .goal-sentence-text { font-size: 27px; }
}
@media (prefers-reduced-motion: reduce) {
  .goal-studio *, .goal-studio *::before, .goal-studio *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
}

/* Keep the source video visible beside the lesson, including short tablet screens. */
html[data-learning-focus="first-lesson"] .panel.transcript { overflow-y: auto; overscroll-behavior: contain; }
html[data-learning-focus="first-lesson"] .panel.transcript > #first-lesson-goal { flex: 0 0 auto; margin: 0 0 16px; }
html[data-learning-focus="first-lesson"] .panel.transcript > :is(.header, .transcript-hint),
html[data-learning-focus="first-lesson"] #caption-bar .sentence-path { display: none !important; }
html[data-learning-focus="first-lesson"] .panel.transcript > #transcript-list { flex: 0 0 auto; overflow: visible; }
