/* Loaded only for the local grade3-upper Unit1 audio_blank pilot. */
.sentence-follow { margin-top: 16px; padding-top: 14px; border-top: 1px solid #c8d8e8; color: #26385c; font-size: 15px; line-height: 1.6; text-align: center; overflow-wrap: anywhere; }
.sentence-follow-entry,.sentence-follow-record,.sentence-follow .read-aloud-child-tools { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; justify-content: center; }
.sentence-follow button { min-height: 44px; padding: 8px 15px; border: 1px solid #9bbce2; border-radius: 12px; background: #e9f3ff; color: #174b83; font: inherit; font-weight: 700; cursor: pointer; }
.sentence-follow button:disabled { color: #53657b; background: #edf1f5; cursor: not-allowed; }
.sentence-follow [data-record-start] { color: white; background: #267228; border-color: #267228; }
.sentence-follow [data-record-stop]:not(:disabled) { color: white; background: #a42d28; border-color: #a42d28; }
.sentence-follow h2 { font-size: clamp(21px,3vw,30px); margin: 16px 0 10px; line-height: 1.45; color: #4B5563; }
.sentence-follow p { margin: 8px 0; }
.sentence-follow .sentence-live-controls { margin: 12px 0; text-align: left; }
.sentence-follow .sentence-live-controls label { display: flex; gap: 8px; align-items: center; min-height: 44px; cursor: pointer; }
.sentence-follow .sentence-live-controls input { width: 20px; height: 20px; flex: 0 0 auto; }
.sentence-follow .sentence-live-controls p { font-size: 13px; color: #304d68; }
.sentence-follow [data-live-word] { border-radius: 4px; padding: 2px; box-decoration-break: clone; color: #4B5563; background: none; border: 0; box-shadow: none; text-shadow: none; text-decoration: none; }
.sentence-follow [data-live-state="read"] { color: #0EA5E9; }
.sentence-follow [data-live-state="current"] { color: #0EA5E9; }
.sentence-follow [data-final-score] { color: #4B5563; }
.sentence-follow .sentence-live-result { text-align: left; margin-top: 12px; }
.sentence-follow [data-record-info],.sentence-follow .read-aloud-note,.sentence-follow .read-aloud-child-hint { font-size: 12px; }
.sentence-follow audio { display: block; width: min(100%,360px); margin: 12px auto; }
.sentence-follow [data-record-timer] { font-variant-numeric: tabular-nums; }
.sentence-follow-wave { display: block; width: min(100%,360px); height: 48px; margin: 12px auto; }
.sentence-follow-wave line { stroke: #b8d6f1; stroke-width: 3; stroke-linecap: round; }
.sentence-follow-wave [data-recorded] { stroke: #2574bd; }
.sentence-follow .read-aloud-child-test { margin-top: 14px; text-align: left; }
.sentence-follow pre { white-space: pre-wrap; word-break: break-word; max-height: 240px; overflow: auto; background: #f3f7fc; padding: 10px; font-size: 12px; }
.sentence-follow summary { min-height: 44px; padding: 10px 0; cursor: pointer; }
.sentence-follow :focus-visible,.read-aloud-child-consent :focus-visible { outline: 3px solid #1261ac; outline-offset: 3px; }
body.sentence-follow-open { height: auto; min-height: 100vh; overflow-y: auto; }
body.sentence-follow-open .page,body.sentence-follow-open .lesson-shell { height: auto; min-height: 100vh; overflow: visible; }
body.sentence-follow-open .lesson-shell { width: 100%; transform: none; }
body.sentence-follow-open .page { padding: 16px; }
body.sentence-follow-open #lesson-content { height: auto; max-height: none; min-width: 0; overflow: visible; transform: none; }
body.sentence-follow-open .lesson-workspace { grid-template-columns: minmax(240px,.65fr) minmax(0,1.35fr); align-items: start; height: auto; min-height: 0; gap: 24px; }
body.sentence-follow-open #lesson-mascot { width: 100%; transform: none; }
body.sentence-follow-open #lesson-mascot-text { width: min(290px,100%); max-width: 100%; margin: 0 auto; transform: none; }
body.sentence-follow-open .lesson-mascot-image-frame { width: 100%; transform: none; }
body.sentence-follow-open #lesson-mascot-img { max-width: 100%; height: auto; object-fit: contain; }
@media(max-width:600px){
 body:has([data-audio-blank-layout]) { height: auto; min-height: 100vh; overflow-y: auto; }
 body:has([data-audio-blank-layout]) .page { width: 100%; height: auto; min-height: 100vh; padding: 12px; overflow: visible; }
 body [data-audio-blank-layout] { width: 100%; height: auto; transform: none; }
 body:has([data-audio-blank-layout]) .lesson-workspace { display: block; height: auto; margin-top: 12px; }
 body:has([data-audio-blank-layout]) .lesson-mascot-rail { width: 100%; margin: 0 auto 12px; }
 body:has([data-audio-blank-layout]) #lesson-mascot-img { max-height: 120px; object-fit: contain; }
 body:has([data-audio-blank-layout]) .lesson-mascot-image-frame { height: 120px; }
 body:has([data-audio-blank-layout]) #lesson-content { width: 100%; min-width: 0; height: auto; max-height: none; padding: 16px; transform: none; }
 body:has([data-audio-blank-layout]) .lesson-topbar { display: flex; flex-wrap: wrap; gap: 10px; padding: 10px; min-width: 0; }
 body:has([data-audio-blank-layout]) .lesson-nav-left { gap: 6px; flex-wrap: wrap; }
 body:has([data-audio-blank-layout]) .lesson-progress { order: 3; flex: 1 0 100%; min-width: 0; width: 100%; margin: 28px 0 10px; }
 body:has([data-audio-blank-layout]) .lesson-progress::before { max-width: 100%; font-size: 16px; white-space: normal; }
 body:has([data-audio-blank-layout]) .lesson-status-right { width: 100%; display: flex; align-items: center; justify-content: space-between; }
 body:has([data-audio-blank-layout]) #lesson-mascot { width: 100%; transform: none; padding: 0; }
 body:has([data-audio-blank-layout]) #lesson-mascot-text { max-width: 100%; margin: 0 auto; transform: none; font-size: 16px; }
 body:has([data-audio-blank-layout]) .lesson-mascot-image-frame { width: 100%; transform: none; }
 body:has([data-audio-blank-layout]) .audio-fill-title .audio-fill-prompt { grid-template-columns: 54px minmax(0,1fr); gap: 10px; }
 body:has([data-audio-blank-layout]) .audio-fill-title h1 { font-size: clamp(26px,7vw,34px); overflow-wrap: anywhere; }
 body:has([data-audio-blank-layout]) .audio-fill-options { gap: 8px; }
 body:has([data-audio-blank-layout]) .audio-fill-option { min-width: 0; padding: 10px 5px; font-size: 16px; }
 .sentence-follow button { padding: 8px 12px; }
}
.read-aloud-child-consent { width: min(440px,calc(100% - 32px)); max-height: calc(100dvh - 32px); overflow: auto; border: 0; border-radius: 16px; padding: 24px; color: #26385c; background: white; line-height: 1.65; }
.read-aloud-child-consent::backdrop { background: #17284c80; }
.read-aloud-child-consent h2 { font-size: 20px; margin: 0; }
.read-aloud-child-consent label { display: flex; gap: 10px; align-items: flex-start; }
.read-aloud-child-consent input { width: 22px; height: 22px; flex: 0 0 22px; accent-color: #174b83; }
.read-aloud-child-consent form > div { display: flex; gap: 12px; flex-wrap: wrap; justify-content: flex-end; margin-top: 20px; }
.read-aloud-child-consent button { min-height: 44px; padding: 8px 16px; border-radius: 10px; border: 1px solid #9bbce2; background: #e9f3ff; color: #174b83; font: inherit; cursor: pointer; }
.read-aloud-child-consent button:disabled { color: #53657b; background: #edf1f5; cursor: not-allowed; }
