:root{--paper:#f7f6f1;--white:#fff;--ink:#17313c;--muted:#65767c;--line:#dfe4df;--teal:#176c62;--lime:#d8ed9d;--coral:#edb2a1;--navy:#102d39;--stage:#123643;--radius:18px;font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:var(--ink);background:var(--paper);font-synthesis:none}
*{box-sizing:border-box}body{margin:0}button,input,textarea,select{font:inherit}button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{cursor:default;opacity:.4}button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible{outline:3px solid #269988;outline-offset:3px}button{color:inherit}a{color:inherit}button svg{pointer-events:none}[hidden]{display:none!important}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.topbar{height:88px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;gap:24px;padding:0 34px;background:#fff;position:relative;z-index:5}.brand{display:flex;align-items:center;gap:12px;text-decoration:none;flex-shrink:0}.brand-mark{display:grid;place-content:center;background:var(--navy);color:var(--lime);font-family:Georgia,serif;font-style:italic;font-size:29px;width:44px;height:44px;border-radius:12px;position:relative}.brand-mark sup{font-size:14px;position:absolute;top:5px;right:7px}.brand strong{display:block;font-size:17px;letter-spacing:.04em}.brand small{display:block;font-size:9px;font-weight:650;letter-spacing:.2em;margin-top:4px;color:var(--muted)}.header-center{display:flex;align-items:center;gap:8px;font-size:12px;color:var(--muted)}.live-dot{width:6px;height:6px;background:var(--teal);border-radius:50%}.header-actions{display:flex;gap:9px}.button{border:1px solid var(--line);padding:11px 16px;border-radius:9px;font-size:12px;font-weight:650;background:var(--white);display:inline-flex;align-items:center;justify-content:center;gap:10px;text-decoration:none;white-space:nowrap}.button:hover{border-color:#aabdb4;background:#eef3ec}.button.dark{background:var(--navy);color:#fff;border-color:var(--navy)}.button.dark:hover{background:#205060}.button.quiet{background:transparent}.button.small{padding:8px 11px;font-size:11px}.button.danger{color:#a03b37}.icon-button{border:none;background:transparent;border-radius:8px;font-size:24px;line-height:1;width:36px;height:36px;display:grid;place-content:center}.icon-button:hover{background:#e9eee7}.text-button{background:none;border:none;padding:0;font-weight:650;font-size:12px;line-height:1.5;display:inline-flex;align-items:center;gap:12px}.text-button:hover{color:var(--teal)}
.workspace{max-width:1720px;margin:auto;display:grid;grid-template-columns:258px minmax(0,1fr);min-height:calc(100vh - 88px)}.sidebar{padding:35px 25px 24px 31px;border-right:1px solid var(--line);display:flex;flex-direction:column;background:#f2f3ed}.eyebrow{font-size:9px;line-height:1.4;font-weight:750;letter-spacing:.17em;color:var(--teal);text-transform:uppercase}.course-heading h2{font-family:Georgia,"Times New Roman",serif;font-weight:normal;font-size:31px;letter-spacing:-1px;margin:12px 0 11px;line-height:1.03}.course-heading p{font-size:12px;line-height:1.7;max-width:190px;color:var(--muted);margin:0}.chapter-heading{display:flex;justify-content:space-between;color:#7c888a;font-size:9px;letter-spacing:.12em;font-weight:700;margin:37px 0 13px}#chapter-nav{display:flex;flex-direction:column;gap:4px}.chapter{border:1px solid transparent;background:transparent;text-align:left;display:flex;align-items:center;gap:10px;padding:9px 8px;border-radius:9px;width:100%;transition:background .15s}.chapter:hover{background:#e9ede4}.chapter.active{background:white;border-color:var(--line);box-shadow:0 2px 4px #12302c04}.chapter .number{font-size:10px;color:#7d8b86;width:22px;height:22px;display:grid;place-content:center;border-radius:7px;flex-shrink:0;font-variant-numeric:tabular-nums}.chapter.active .number{background:var(--teal);color:white}.chapter .chapter-title{font-size:11px;line-height:1.3;font-weight:650;display:block}.chapter .chapter-subtitle{font-size:9px;line-height:1.5;color:var(--muted);display:block;margin-top:2px}.chapter.active .chapter-title{color:var(--teal)}.voice-dot{width:5px;height:5px;background:var(--teal);border-radius:50%;margin-left:auto;flex-shrink:0}.sidebar-footer{margin-top:auto;padding:31px 7px 0}.sidebar-footer strong{font-family:Georgia,serif;font-weight:normal;font-style:italic;font-size:17px}.sidebar-footer p{font-size:10px;color:var(--muted);line-height:1.7;margin:9px 0 17px}.sidebar-footer .text-button{font-size:11px}
main{padding:35px 44px 20px;min-width:0}.lesson-heading{display:flex;justify-content:space-between;align-items:center;margin-bottom:25px;gap:20px}.lesson-heading h1{font-family:Georgia,"Times New Roman",serif;font-size:39px;font-weight:normal;letter-spacing:-1.4px;margin:8px 0 10px;line-height:1.1}.lesson-heading p{font-size:12px;line-height:1.7;max-width:640px;color:var(--muted);margin:0}.chapter-number{display:flex;gap:3px;align-items:baseline;font-size:34px;font-family:Georgia,serif;color:#b8c5bd;letter-spacing:-1px;flex-shrink:0}.chapter-number small{font-family:inherit;font-size:16px}.lesson-layout{display:grid;grid-template-columns:minmax(0,1fr);gap:25px;max-width:1100px}.player-column{min-width:0}.stage{background:var(--stage);background-image:radial-gradient(#ffffff0d 1px,transparent 1px);background-size:20px 20px;color:#fff;border-radius:var(--radius);padding:26px 34px 22px;min-height:460px;position:relative;overflow:hidden;isolation:isolate}.stage-heading{display:flex;justify-content:space-between;align-items:center;font-size:9px;font-weight:650;letter-spacing:.16em;color:#acc4c7;position:relative;z-index:2}.stage-tag{font-size:8px;letter-spacing:.13em;color:var(--lime);border:1px solid #c6e39a40;padding:5px 8px;border-radius:5px}.rule-display{font-size:clamp(25px,3.6vw,42px);text-align:center;margin:30px 0 13px;overflow-x:auto;overflow-y:hidden;padding:10px 0;min-height:70px;color:var(--lime)}math{font-family:"STIX Two Math","Cambria Math","Latin Modern Math",serif}math[display="block"]{margin:0}math mfrac{font-size:.9em}.condition{font-size:10px;line-height:1.6;color:#b4cbd0;text-align:center;max-width:620px;margin:0 auto 24px}.steps{display:grid;gap:10px;position:relative;z-index:1}.step{border:1px solid #d4e7df20;background:#ffffff06;padding:15px 17px;border-radius:11px;display:grid;grid-template-columns:23px minmax(0,1fr);gap:11px;animation:slide-in .45s ease-out both}.step.current{border-color:#d8ed9d73;background:#d8ed9d0c}.step .step-number{display:grid;place-content:center;align-self:start;background:#ffffff0c;border-radius:50%;width:21px;height:21px;font-size:9px;color:#bed2d3}.step.current .step-number{background:var(--lime);color:var(--navy)}.step h3{font-size:10px;line-height:1.4;color:#c2d7d8;font-weight:550;margin:1px 0 7px}.step .step-math{font-size:clamp(20px,2.4vw,29px);overflow-x:auto;overflow-y:hidden;padding:3px 0}.step p{font-size:11px;line-height:1.65;color:#bed1d4;margin:7px 0 0}.step.pending{opacity:.24;animation:none}.step.pending .step-math,.step.pending p{display:none}.step.pending h3{color:#bed1d4}.stage-foot{display:flex;align-items:center;gap:10px;font-size:7px;letter-spacing:.19em;color:#87a8ad;margin-top:25px}.stage-foot-line{height:1px;width:30px;background:#87a8ad}.factor-explorer{background:#0925307a;border:1px solid #d8ed9d29;border-radius:12px;margin:0 0 22px;padding:16px}.factor-controls{display:flex;justify-content:space-between;align-items:center;gap:14px;font-size:10px;color:#d0dfdd}.factor-controls input{width:105px;accent-color:var(--lime)}.factor-controls label{display:flex;gap:12px;align-items:center}.factor-groups{display:flex;justify-content:center;align-items:center;gap:7px;padding:17px 0 6px;min-height:64px}.factor-chip{width:36px;height:36px;border:1px solid #d8ed9d88;border-radius:9px;display:grid;place-content:center;color:var(--lime);font-family:Georgia,serif;font-size:24px;background:#d8ed9d0a;animation:slide-in .35s both}.factor-chip.second{border-color:#edb2a188;color:var(--coral);background:#edb2a10a}.factor-times{color:#91adb2;font-size:13px}.factor-value{border-left:1px solid #ffffff2b;padding-left:15px;margin-left:6px;color:white;font-family:Georgia,serif;font-size:26px}.lesson-image-wrap{margin:18px auto;text-align:center}.lesson-image-wrap img{max-width:100%;max-height:240px;border-radius:10px;background:#fff}.stage #ink-layer{position:absolute;inset:0;width:100%;height:100%;z-index:3;pointer-events:none;touch-action:none}.stage.drawing #ink-layer{pointer-events:auto;cursor:crosshair;background:#ffffff03}.stage.drawing{outline:3px solid #edb2a1;outline-offset:3px}.ink-path{stroke-linecap:round;stroke-linejoin:round;fill:none}.ink-path.animate-ink{stroke-dasharray:1;stroke-dashoffset:1;animation:draw-ink 1.1s ease forwards}@keyframes draw-ink{to{stroke-dashoffset:0}}@keyframes slide-in{from{opacity:0;transform:translateY(7px)}to{opacity:1;transform:translateY(0)}}
.transport{background:#fff;border:1px solid var(--line);border-radius:0 0 14px 14px;padding:17px 19px 16px;margin-top:-8px;position:relative;z-index:3}.timeline-row{display:flex;align-items:center;gap:15px}.timeline-row input{flex:1;min-width:0;accent-color:var(--teal);height:4px;margin:6px 0 15px}.timeline-row #time-display{font-size:10px;white-space:nowrap;color:var(--muted);font-variant-numeric:tabular-nums;margin-bottom:8px}.transport-row{display:flex;justify-content:space-between;align-items:center;gap:12px}.play-controls{display:flex;align-items:center;gap:8px}.play-controls .icon-button{font-size:23px;width:25px}.play-button{background:var(--teal);color:white;border:0;min-width:131px;padding:11px 14px;border-radius:8px;font-size:11px;font-weight:650;display:flex;align-items:center;justify-content:center;gap:10px}.play-button:hover{background:#11564f}.play-controls .button{font-size:11px;border-color:transparent;padding:9px 10px}.transport-options{display:flex;align-items:center;gap:10px}.audio-status{font-size:9px;color:var(--muted);display:flex;align-items:center;gap:5px}.audio-status::before{content:'';display:block;width:5px;height:5px;border-radius:50%;background:#d5ab71}.audio-status.ready::before{background:var(--teal)}.audio-status.recording{color:#b53f35}.audio-status.recording::before{background:#c94c42;animation:pulse 1.2s infinite}.speed-label select{border:1px solid var(--line);border-radius:6px;background:white;font-size:10px;padding:5px}.chapter-navigation{display:flex;justify-content:space-between;align-items:center;padding:20px 1px}.chapter-navigation .text-button{font-size:11px}.chapter-navigation>span{font-size:9px;color:var(--muted)}.script-card{border:1px solid var(--line);border-radius:14px;background:#eeefe7;padding:23px 25px}.script-title{display:flex;align-items:center;justify-content:space-between;gap:15px}.script-title .eyebrow{font-size:8px}.script-title h3{font-family:Georgia,serif;font-weight:normal;font-size:23px;margin:5px 0 0}.script-card>p{font-size:12px;line-height:1.95;color:#425960;margin:16px 0}.script-note{font-size:10px;line-height:1.7;color:#74817f;border-top:1px solid #d8dfd2;padding-top:12px}.page-footer{font-size:9px;line-height:1.6;color:#89938e;padding:22px 0 5px}
body.editing main{padding-left:28px;padding-right:28px}body.editing .lesson-layout{grid-template-columns:minmax(420px,1fr) 330px;max-width:none}body.editing .stage{padding-left:25px;padding-right:25px}body.editing .rule-display{font-size:34px}body.editing .step .step-math{font-size:25px}body.editing .audio-status{display:none}.editor{background:#fff;border:1px solid var(--line);border-radius:14px;padding:20px;align-self:start;position:sticky;top:18px;max-height:calc(100vh - 40px);overflow:auto}.editor h3{font-family:Georgia,serif;font-size:24px;font-weight:normal;margin:5px 0 8px}.editor-intro{font-size:10px;line-height:1.7;color:var(--muted);margin:0 0 17px}.editor-tabs{display:flex;gap:4px;background:var(--paper);padding:4px;border-radius:8px;margin-bottom:18px}.editor-tabs button{flex:1;border:0;font-size:10px;background:none;padding:8px 5px;border-radius:5px}.editor-tabs button.active{background:#fff;box-shadow:0 1px 3px #102d3912;font-weight:700}.editor label{display:block;font-size:10px;font-weight:650;margin:12px 0 6px}.editor input:not([type=file]):not([type=color]),.editor textarea{display:block;width:100%;padding:9px 10px;border:1px solid var(--line);border-radius:7px;font-size:11px;line-height:1.6;background:#fff;color:var(--ink)}.editor textarea{resize:vertical}.editor textarea.math-input{font-family:ui-monospace,SFMono-Regular,monospace;font-size:10px}.editor .help{font-size:9px;color:var(--muted);line-height:1.65;margin:6px 0 10px}.editor .button{font-size:10px;padding:9px 11px}.editor-buttons{display:flex;flex-wrap:wrap;gap:7px;margin:12px 0}.editor-section{border-top:1px solid var(--line);padding-top:12px;margin-top:16px}.editor-step{background:#f6f7f2;border-radius:8px;padding:10px 12px;margin-top:10px}.editor-step header{display:flex;align-items:center;justify-content:space-between;font-size:10px;font-weight:700}.editor-step input.time-input{width:62px!important;padding:4px 6px!important;display:inline!important}.step-time{display:flex;align-items:center;gap:5px;font-size:9px;color:var(--muted)}.editor-step .step-actions{display:flex;gap:5px;margin-top:8px}.editor-step .step-actions button{font-size:9px;border:0;border-radius:4px;padding:4px 7px;background:#e5eae1}.save-status{font-size:9px;line-height:1.6;color:var(--teal);margin-top:15px;background:#edf5e9;padding:10px;border-radius:7px}.audio-preview{width:100%;height:33px;margin:9px 0}.voice-box{background:#f0f3e9;border:1px solid #dce5d2;padding:13px;border-radius:9px}.voice-box strong{font-size:11px}.voice-box p{font-size:10px;line-height:1.7;color:var(--muted);margin:6px 0}.voice-box .button{background:white}.voice-box .record-active{background:#fae8e4;color:#ad3934;border-color:#eac1b8}.record-script{white-space:pre-wrap;font-size:12px;line-height:1.9;padding:14px;background:#fbfaf5;border-radius:8px;max-height:300px;overflow:auto;margin-top:12px}.editor input[type=file]{width:100%;font-size:10px;margin:7px 0}.ink-settings{display:flex;gap:8px;align-items:center;margin:12px 0}.ink-settings input[type=color]{width:36px;height:30px;border:1px solid var(--line);padding:2px;border-radius:5px;background:white}.ink-settings select{font-size:10px;padding:6px;border:1px solid var(--line);border-radius:5px;background:white}.editor-note{border-left:3px solid #e3bc7e;padding:7px 10px;font-size:10px;line-height:1.7;color:#6f6752;background:#fff9ee;margin:12px 0}.quiz{position:relative;z-index:2}.quiz-question{background:#ffffff08;border:1px solid #ffffff20;border-radius:11px;margin:12px 0;padding:17px}.quiz-question h3{font-size:11px;font-weight:550;color:#cfdfdc;line-height:1.6;margin:0 0 11px}.quiz-question .question-math{font-size:27px;margin-bottom:16px;overflow-x:auto;padding:5px 0}.quiz-options{display:grid;grid-template-columns:repeat(4,1fr);gap:8px}.quiz-options button{background:#ffffff08;border:1px solid #ffffff26;color:white;padding:11px 7px;border-radius:8px;font-size:20px;min-height:51px;display:grid;place-content:center}.quiz-options button:hover{border-color:var(--lime)}.quiz-options button.selected{background:#edb2a11a;border-color:var(--coral)}.quiz-options button.correct{border-color:var(--lime);background:#d8ed9d1c;color:var(--lime)}.quiz-feedback{font-size:11px;line-height:1.75;color:#d3e2d4;margin:13px 0 0}.quiz-score{font-size:12px;color:var(--lime);display:flex;align-items:center;justify-content:space-between;gap:20px;margin:20px 0 7px}.quiz-score button{color:var(--lime);border-color:#d8ed9d40;font-size:10px}.toast{position:fixed;bottom:24px;left:50%;transform:translate(-50%,20px);opacity:0;pointer-events:none;background:#173b36;color:white;border:1px solid #4e7e69;padding:13px 20px;border-radius:10px;z-index:100;max-width:min(600px,90vw);font-size:12px;line-height:1.6;transition:opacity .2s,transform .2s;box-shadow:0 5px 25px #102d3930}.toast.show{opacity:1;transform:translate(-50%,0)}dialog{border:1px solid var(--line);border-radius:18px;padding:30px;max-width:700px;width:calc(100% - 32px);color:var(--ink);background:var(--paper);max-height:85vh;box-shadow:0 30px 100px #102d3940}dialog::backdrop{background:#102d3980;backdrop-filter:blur(4px)}.dialog-heading{display:flex;align-items:center;justify-content:space-between}.dialog-heading h2{font-family:Georgia,serif;font-size:33px;font-weight:normal;letter-spacing:-1px;margin:8px 0}.reference-intro,.reference-note{font-size:11px;line-height:1.8;color:var(--muted)}.reference-law{border-top:1px solid var(--line);padding:16px 0;display:grid;grid-template-columns:150px minmax(0,1fr);gap:10px;align-items:center}.reference-law strong{font-size:11px}.reference-law math{font-size:25px}.reference-law small{font-size:9px;color:var(--muted);line-height:1.7;display:block;margin-top:5px}.reference-math{overflow-x:auto;padding:6px 0}@keyframes pulse{50%{opacity:.4}}
body.student-mode #mode-toggle,body.student-mode #script-download,body.student-mode #script-card{display:none}body.student-mode .header-center{color:var(--teal)}
@media(min-width:1550px){main{padding-right:65px;padding-left:55px}.lesson-heading h1{font-size:45px}.stage{min-height:490px}.rule-display{font-size:45px}.step .step-math{font-size:31px}}
@media(max-width:1200px){body.editing .workspace{grid-template-columns:215px minmax(0,1fr)}body.editing .sidebar{padding-left:20px;padding-right:15px}body.editing .lesson-layout{grid-template-columns:minmax(0,1fr)}body.editing .editor{position:static;max-height:none}body.editing .audio-status{display:flex}.header-center{display:none}main{padding-left:30px;padding-right:30px}}
@media(max-width:850px){.topbar{padding:0 20px;height:76px}.workspace,body.editing .workspace{display:block}.sidebar{padding:23px 23px 12px;border-right:0;border-bottom:1px solid var(--line)}.course-heading{display:none}.chapter-heading{margin:0 0 10px}.sidebar-footer{display:none}#chapter-nav{flex-direction:row;overflow-x:auto;padding:0 0 7px;gap:7px;scrollbar-width:thin}.chapter{width:auto;flex-shrink:0;padding:8px 10px;max-width:180px}.chapter .chapter-subtitle{display:none}.chapter .chapter-title{font-size:10px}.chapter .number{width:19px;height:19px}.chapter-heading{font-size:8px}main,body.editing main{padding:28px 23px 15px}.lesson-heading h1{font-size:34px}.lesson-heading p{font-size:11px}.lesson-heading{align-items:flex-start}.chapter-number{font-size:28px}.stage{padding:23px 25px;min-height:440px}.rule-display{font-size:36px}.step .step-math{font-size:27px}.brand small{font-size:8px}.header-actions .button{font-size:11px;padding:10px 12px}}
@media(max-width:520px){.topbar{padding:0 15px;gap:12px}.brand{gap:8px}.brand-mark{width:36px;height:38px;font-size:26px}.brand strong{font-size:14px}.brand small{font-size:7px;letter-spacing:.16em}.header-actions{gap:5px}.header-actions .button{font-size:10px;padding:9px}.header-actions #script-download{font-size:0;gap:0;padding:8px}.header-actions #script-download:before{content:'↓ Script';font-size:10px}.sidebar{padding-left:16px;padding-right:16px}main,body.editing main{padding:24px 15px 15px}.lesson-heading h1{font-size:31px;letter-spacing:-1px}.chapter-number{display:none}.stage,body.editing .stage{padding:20px 17px}.rule-display,body.editing .rule-display{font-size:29px;min-height:60px;margin-top:21px}.condition{font-size:9px;margin-bottom:20px}.step{padding:12px;gap:8px;grid-template-columns:19px minmax(0,1fr)}.step h3{font-size:9px}.step .step-math,body.editing .step .step-math{font-size:23px}.step p{font-size:10px}.stage-foot{font-size:6px}.factor-explorer{padding:12px 10px}.factor-controls{font-size:9px}.factor-controls label{gap:6px}.factor-controls input{width:80px}.factor-groups{gap:4px}.factor-chip{width:29px;height:33px;font-size:21px}.factor-times{font-size:10px}.factor-value{padding-left:9px;margin-left:3px;font-size:23px}.transport{padding:15px 12px}.transport-row{align-items:center;gap:6px}.play-controls{gap:4px}.play-button{min-width:112px;font-size:10px;padding:11px}.play-controls .button{font-size:10px;padding:8px 6px}.play-controls .icon-button{width:22px}.transport-options{gap:5px}.audio-status{display:none!important}.speed-label select{font-size:9px;padding:5px 2px}.timeline-row{gap:10px}.timeline-row #time-display{font-size:9px}.chapter-navigation .text-button{font-size:10px}.chapter-navigation>span{font-size:8px}.script-card{padding:20px 18px}.script-card>p{font-size:11px}.script-title h3{font-size:22px}.quiz-options{grid-template-columns:repeat(2,1fr)}.quiz-options button{font-size:22px}.quiz-question{padding:13px}.quiz-question h3{font-size:10px}.quiz-question .question-math{font-size:25px}.reference-law{grid-template-columns:1fr}.reference-law math{font-size:24px}dialog{padding:23px}.dialog-heading h2{font-size:28px}.editor{padding:18px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important}.ink-path.animate-ink{stroke-dashoffset:0}}
@media print{.topbar,.workspace,.toast{display:none!important}dialog{display:block;position:static;max-height:none;width:100%;max-width:none;border:0;box-shadow:none;background:#fff}dialog::backdrop{display:none}.dialog-heading button{display:none}.reference-law{break-inside:avoid}}
/* Reader subtitles are on by default; recording notes belong to the editor. */
.stage{border-bottom-left-radius:0;border-bottom-right-radius:0}
.subtitles{background:#0c2732;color:#f5f6e9;padding:17px 28px 21px;border-top:1px solid #ffffff12;min-height:124px}
.subtitle-meta{display:flex;align-items:center;gap:8px;color:#9bb8bd;font-size:8px;font-weight:700;letter-spacing:.15em}
.cc-badge{font-size:8px;letter-spacing:0;border:1px solid #9bb8bd77;border-radius:3px;padding:2px 4px}
#subtitle-position{margin-left:auto;font-size:8px;letter-spacing:.05em;color:#89a8af}
.subtitles p{font-size:17px;line-height:1.7;letter-spacing:.005em;margin:10px 0 0;max-width:850px;text-wrap:pretty}
.transport{margin-top:0}
.captions-toggle{font-size:10px;font-weight:750;border:1px solid #bed4c5;border-radius:6px;background:#ecf3e9;color:var(--teal);padding:6px 8px;white-space:nowrap}
.captions-toggle span{font-size:9px;font-weight:500;margin-left:3px}
.captions-toggle[aria-pressed="false"]{color:var(--muted);background:#fff;border-color:var(--line)}
.script-card{display:none}body.editing .script-card{display:block}
body.student-mode.editing .script-card{display:none}
@media(max-width:850px){.subtitles p{font-size:16px}.subtitles{padding:16px 23px 19px}}
@media(max-width:520px){.subtitles{padding:15px 17px 18px;min-height:145px}.subtitles p{font-size:15px;line-height:1.75}.play-button{min-width:104px}.captions-toggle{font-size:9px;padding:6px}.captions-toggle span{display:none}.transport-options{gap:5px}}
@media(max-width:520px){
 body:not(.editing) .reader-dock{position:fixed;bottom:0;left:0;right:0;z-index:10;box-shadow:0 -7px 28px #102d3922}
 body:not(.editing) .reader-dock .subtitles{min-height:0;padding:11px 18px 13px}
 body:not(.editing) .reader-dock .subtitles p{font-size:14px;line-height:1.65;margin-top:7px}
 body:not(.editing) .reader-dock .transport{border-radius:0;padding:10px 15px calc(10px + env(safe-area-inset-bottom));border-left:0;border-right:0;border-bottom:0}
 body:not(.editing) .player-column{padding-bottom:240px}
}
/* Reading supports: plain sans-serif text, stable short blocks and reader choice. */
:root{--subtitle-size:20px;--subtitle-leading:1.6;--subtitle-tracking:.015em;--subtitle-words:.04em;--subtitle-bg:#0c2732;--subtitle-fg:#f5f6e9;--subtitle-muted:#b6ced1}
.subtitles{background:var(--subtitle-bg);color:var(--subtitle-fg);padding:18px 27px 20px;min-height:158px}
.subtitle-text{font-family:Arial,Helvetica,sans-serif;font-size:var(--subtitle-size);line-height:var(--subtitle-leading);letter-spacing:var(--subtitle-tracking);word-spacing:var(--subtitle-words);max-width:52ch;text-align:left;hyphens:none;text-wrap:pretty;margin-top:12px}
.subtitle-line{display:block;margin:0 0 .18em;white-space:pre-wrap}.subtitle-line:last-child{margin-bottom:0}.subtitle-line strong{font-weight:750}
.subtitle-meta{color:var(--subtitle-muted);font-size:10px;letter-spacing:.04em;text-transform:none;gap:8px;flex-wrap:wrap}.cc-badge{font-size:9px}#subtitle-position{font-size:10px;color:var(--subtitle-muted);letter-spacing:.01em}
.reading-hint{font-size:11px!important;font-family:Arial,Helvetica,sans-serif;line-height:1.6!important;color:var(--subtitle-muted);margin:12px 0 0!important;letter-spacing:normal!important}
.reading-options-button{border:1px solid currentColor;color:var(--subtitle-muted);background:transparent;border-radius:7px;min-height:36px;padding:6px 9px;font-size:12px;font-weight:700;margin-left:7px}.reading-options-button span{font-size:10px;font-weight:500;margin-left:4px}.reading-options-button:hover{color:var(--subtitle-fg)}
body.focus-reading:not(.editing) .step:not(.current){display:none}body.focus-reading:not(.editing) .step{animation:none}body.focus-reading:not(.editing) .stage{min-height:340px}body.focus-reading:not(.editing) .ink-path{animation:none;stroke-dashoffset:0}.step p{font-size:13px}.step h3{font-size:12px}.condition{font-size:12px}.lesson-heading p{font-size:14px}.timeline-row{display:none}.transport.show-timing .timeline-row{display:flex}.play-button{background:#e9f0e9;color:var(--teal);border:1px solid #c8d9cb;min-width:110px}.play-button:hover{background:#dde9dd}.play-controls .button{font-size:12px;min-height:42px}.play-controls #reveal{background:var(--teal);border-color:var(--teal);color:#fff;padding-left:18px;padding-right:18px}.transport{padding-top:13px}.play-controls #back-step{min-width:70px}.reading-fields{display:grid;gap:19px;margin:23px 0}.reading-fields label{font-size:14px;font-weight:650;line-height:1.6;display:block}.reading-fields select{display:block;width:100%;margin-top:7px;border:1px solid #bccbc0;border-radius:8px;padding:11px 12px;background:#fff;font-size:14px;min-height:44px}.reading-check{display:flex!important;align-items:flex-start;gap:10px}.reading-check input{accent-color:var(--teal);width:20px;height:20px;flex-shrink:0;margin-top:1px}.reading-example{background:var(--subtitle-bg);color:var(--subtitle-fg);font-family:Arial,Helvetica,sans-serif;font-size:var(--subtitle-size);line-height:var(--subtitle-leading);letter-spacing:var(--subtitle-tracking);word-spacing:var(--subtitle-words);padding:19px;border-radius:10px}.reading-example strong{font-weight:750}.reading-fields+.reading-example{margin-bottom:20px}
#unit-picker{margin-top:24px}#unit-picker label{display:block;font-size:10px;font-weight:700;color:var(--teal);margin-bottom:7px}#unit-select{width:100%;font-size:11px;background:#fff;border:1px solid var(--line);border-radius:8px;padding:9px 7px;white-space:normal}.sidebar .chapter-heading{margin-top:24px}.practice-card{border:1px solid var(--line);border-radius:15px;background:#fff;padding:24px;margin-top:13px}.practice-card h3{font-family:Georgia,serif;font-size:24px;font-weight:normal;margin:7px 0 15px}.practice-card p{font-size:14px;line-height:1.7;color:#53686a}.practice-math{font-size:29px;overflow-x:auto;padding:13px 0 20px}.practice-answer{margin-top:20px;border-top:1px solid var(--line);padding-top:15px}.practice-answer math{font-size:28px}.practice-answer p{font-size:13px}.lesson-sources{margin-top:20px;padding:18px 22px;border-left:3px solid #b7c9b3;background:#eff2e8;font-size:11px;line-height:1.8}.lesson-sources strong{font-size:12px}.lesson-sources a{display:inline-block;margin-right:16px;color:var(--teal);font-weight:650}.source-check{display:block;color:#64736b;font-size:10px}.source-group{border-top:1px solid var(--line);padding:17px 0}.source-group h3{font-size:16px;margin:0 0 8px}.source-group p,.source-group li{font-size:12px;line-height:1.8;color:#5e7272}.source-group a{color:var(--teal)}.source-group ul{padding-left:18px}.course-heading h2{font-size:26px;line-height:1.12}.diagram-wrap{border:1px solid #ffffff25;background:#07263166;border-radius:12px;padding:12px 15px;margin:15px 0 22px}.diagram-wrap svg{display:block;width:100%;max-height:265px;overflow:visible}.diagram-caption{font-size:11px;color:#c2d6d4;line-height:1.7;margin:6px 0 0}.diagram-controls{display:flex;align-items:center;gap:12px;font-size:10px;color:#c6d8d6;padding:8px 0 0}.diagram-controls input{width:110px;accent-color:var(--lime)}
.library-home{max-width:1390px;margin:auto;padding:54px 54px 40px}.library-hero{display:grid;grid-template-columns:1.25fr 1fr;gap:65px;align-items:center}.library-hero h1{font-family:Georgia,serif;font-size:59px;line-height:1.04;font-weight:normal;letter-spacing:-2px;margin:17px 0 20px}.library-hero h1 em{color:var(--teal);font-weight:normal}.library-hero>div>p{font-size:15px;color:var(--muted);line-height:1.8;margin:0 0 22px}.hero-actions{display:flex;gap:10px}.hero-diagram{background:#123643;border-radius:24px;padding:22px 26px 16px;box-shadow:10px 12px 0 #e6eadb}.hero-diagram svg{width:100%;display:block}.hero-diagram p{font-size:11px;color:#b9d1ce;text-align:center;line-height:1.8;margin:5px 0}.library-stats{display:flex;gap:30px;align-items:center;border-top:1px solid var(--line);border-bottom:1px solid var(--line);padding:20px 0;margin:42px 0 27px;font-size:11px;color:var(--muted)}.library-stats strong{font-size:23px;font-family:Georgia,serif;font-weight:normal;color:var(--ink);margin-right:7px}.course-cards{display:grid;grid-template-columns:repeat(3,1fr);gap:17px}.course-cards button{text-align:left;display:flex;flex-direction:column;border:1px solid var(--line);border-radius:15px;background:#fff;padding:25px;transition:transform .15s}.course-cards button:hover{transform:translateY(-3px);border-color:#a3bdb0}.course-cards button:nth-child(3){background:#eaf1df;border-color:#cfdec0}.course-cards small{font-size:9px;font-weight:750;letter-spacing:.12em;color:var(--teal)}.course-cards strong{font-family:Georgia,serif;font-size:28px;font-weight:normal;margin:15px 0 13px}.course-cards span{font-size:12px;line-height:1.8;color:var(--muted)}.course-cards b{font-size:12px;margin-top:24px;color:var(--teal)}.catalog{margin-top:55px}.catalog-heading{display:flex;align-items:center;justify-content:space-between;gap:20px}.catalog-heading h2{font-family:Georgia,serif;font-size:35px;font-weight:normal;letter-spacing:-1px;margin:8px 0}.catalog-tools{display:flex;gap:9px}.catalog-tools input,.catalog-tools select{border:1px solid #d4ded4;background:white;padding:12px;border-radius:9px;font-size:12px;min-height:44px}.catalog-tools input{width:260px}.catalog-tools select{max-width:235px}#catalog-results{font-size:11px;line-height:1.7;color:var(--muted);margin:17px 0}.unit-group{background:#fff;border:1px solid var(--line);border-radius:12px;margin:12px 0;overflow:hidden}.unit-group summary{display:flex;align-items:center;gap:13px;padding:20px 23px;list-style:none;cursor:pointer;font-size:14px;font-weight:650;min-height:65px}.unit-group summary::-webkit-details-marker{display:none}.unit-group summary:before{content:'+';font-size:22px;font-weight:400;color:var(--teal)}.unit-group[open] summary:before{content:'−'}.unit-group summary small{font-size:10px;color:var(--muted);font-weight:500;margin-left:auto}.unit-lessons{display:grid;grid-template-columns:1fr 1fr;border-top:1px solid var(--line);padding:8px 15px}.lesson-link{display:flex;align-items:center;gap:11px;text-align:left;border:0;background:transparent;padding:15px 10px;border-radius:8px;min-height:59px}.lesson-link:hover{background:#f0f5ec}.lesson-link .lesson-number{font-size:10px;color:#84958b;width:22px}.lesson-link strong{font-size:12px;font-weight:650;display:block}.lesson-link small{font-size:10px;color:var(--muted);display:block;line-height:1.6;margin-top:3px}.lesson-link>span:last-child{font-size:13px;color:var(--teal);margin-left:auto}.library-footer{border-top:1px solid var(--line);margin-top:45px;padding-top:24px;max-width:900px}.library-footer>strong{font-family:Georgia,serif;font-size:22px;font-weight:normal}.library-footer p{font-size:11px;line-height:1.9;color:var(--muted)}body.library-view .workspace{display:none}body.library-view #mode-toggle,body.library-view #script-download{display:none}body.library-view .header-center{display:none}.header-actions #open-sources{font-size:11px}
@media(max-width:1100px){.library-home{padding:40px 30px}.library-hero{gap:30px}.library-hero h1{font-size:47px}.catalog-heading{align-items:flex-start;flex-direction:column}.catalog-tools{width:100%}.catalog-tools input{flex:1;width:auto}.header-actions{gap:5px}.header-actions .button{padding:10px}.header-center{display:none}.course-cards strong{font-size:25px}}
@media(max-width:850px){.library-home{padding:30px 22px}.library-hero{grid-template-columns:1fr .8fr;gap:25px}.library-hero h1{font-size:40px}.hero-diagram{padding:12px}.course-cards{gap:10px}.course-cards button{padding:20px}.course-cards strong{font-size:23px}.course-cards span{font-size:11px}.library-stats{gap:20px;margin-top:31px}.library-stats strong{font-size:21px}.subtitles{padding:17px 22px}.subtitle-text{max-width:48ch}#unit-picker{margin:0 0 13px;display:flex;align-items:center;gap:13px}#unit-select{max-width:320px;padding:9px;font-size:12px}#unit-picker label{margin:0;font-size:11px}.lesson-sources{font-size:12px}.chapter .chapter-title{font-size:12px}.sidebar .chapter-heading{margin-top:0}}
@media(max-width:520px){
 .topbar{height:76px;padding:0 12px}.header-actions #script-download{display:none}.header-actions .button{min-height:38px}.brand strong{font-size:12px}.brand small{font-size:6px}.brand-mark{width:32px;height:35px}.header-actions #open-sources{font-size:10px;padding:8px}.header-actions #open-library{font-size:10px;padding:8px}.header-actions #mode-toggle{font-size:10px;padding:8px}
 .library-home{padding:30px 18px}.library-hero{grid-template-columns:1fr;gap:24px}.library-hero h1{font-size:44px}.hero-diagram{display:none}.library-hero>div>p{font-size:14px}.hero-actions .button{font-size:11px;padding:12px}.library-stats{display:grid;grid-template-columns:1fr 1fr;gap:15px;padding:17px 0;margin-top:29px}.library-stats strong{font-size:22px}.course-cards{grid-template-columns:1fr;gap:11px}.course-cards button{padding:21px}.course-cards strong{margin:10px 0;font-size:27px}.course-cards span{font-size:12px}.course-cards b{margin-top:14px}.catalog{margin-top:35px}.catalog-heading h2{font-size:30px}.catalog-tools{flex-direction:column}.catalog-tools input,.catalog-tools select{width:100%;max-width:none;font-size:14px}.unit-group summary{padding:17px;font-size:13px;align-items:flex-start}.unit-group summary small{max-width:85px;font-size:9px;text-align:right}.unit-lessons{grid-template-columns:1fr;padding:5px 10px}.lesson-link strong{font-size:13px}.lesson-link small{font-size:11px}.library-footer>strong{font-size:20px}.library-footer p{font-size:12px}
 .subtitle-text{font-size:var(--subtitle-size);line-height:var(--subtitle-leading);max-width:none;max-height:38vh;overflow-y:auto;scrollbar-width:thin;padding-right:3px;overscroll-behavior:contain}.subtitle-line{margin-bottom:.22em}.reading-hint{font-size:10px!important}.subtitle-meta{font-size:10px;gap:6px}#subtitle-position{font-size:10px;margin-left:auto}.reading-options-button{min-height:34px;padding:5px 8px;font-size:13px;margin-left:0}.reading-options-button span{display:none}
 body:not(.editing) .reader-dock .subtitles{padding:12px 17px 14px}.transport-row{flex-wrap:wrap;gap:8px}.play-controls{flex:1;gap:5px;justify-content:space-between}.play-controls .button{font-size:12px;padding:10px 11px;min-height:44px}.play-controls #back-step{min-width:62px}.play-controls #reveal{padding-left:13px;padding-right:13px}.play-button{min-width:82px;font-size:10px;padding:10px 9px;min-height:44px}.play-controls #restart{display:none}.transport-options{margin-left:auto}.transport .audio-status{display:none}.transport .captions-toggle{min-height:34px;padding:7px}.transport .speed-label select{font-size:11px;min-height:34px}.reader-dock{max-height:70vh;overflow:auto}.player-column{padding-bottom:310px!important}body.editing .player-column{padding-bottom:0!important}
 body.focus-reading:not(.editing) .stage{min-height:300px}.step .step-math{font-size:25px}.step h3{font-size:12px}.step p{font-size:13px}.condition{font-size:11px}.lesson-heading p{font-size:13px}.diagram-wrap{padding:10px;margin:12px 0 17px}.diagram-wrap svg{max-height:220px}.practice-card{padding:20px}.lesson-sources{padding:16px;font-size:12px}.reading-fields label{font-size:14px}
}
@media(prefers-reduced-motion:reduce){.course-cards button:hover{transform:none}}
.brand .official-logo{width:172px;height:auto;display:block;object-fit:contain}.study-word{border-left:1px solid var(--line);padding-left:15px;margin-left:2px;font-size:13px;letter-spacing:.13em;color:var(--teal);font-weight:600}.topbar{background:#fbfcf8}.stage{background-color:#15333d;background-image:none}.stage-heading{color:#b8ccd0}.sidebar-footer strong{font-style:normal}.library-hero h1 em{font-style:normal}.sidebar{background:#f2f4ed}.library-hero h1{font-size:55px}
@media(max-width:850px){.brand .official-logo{width:137px}.study-word{font-size:11px;padding-left:10px}.brand{gap:5px}}
@media(max-width:520px){.brand .official-logo{width:110px}.study-word{display:none}.library-hero h1{font-size:42px}.header-actions{gap:4px}}
body.sidebar-hidden .sidebar{display:none}body.sidebar-hidden .workspace{grid-template-columns:minmax(0,1fr)}body.sidebar-hidden #main{width:100%;max-width:1300px;margin:auto}body.library-view #toggle-sidebar{display:none}.completion-row{display:flex;align-items:center;justify-content:space-between;gap:15px;margin:0 0 15px;font-size:12px;color:var(--teal)}.completion-row .button{min-height:43px}.my-notes{border:1px solid var(--line);border-radius:12px;background:#fff;padding:0 20px;margin:15px 0}.my-notes summary{cursor:pointer;font-size:14px;font-weight:650;padding:17px 0;min-height:51px}.my-notes summary span{font-size:10px;font-weight:400;color:var(--muted);margin-left:10px}.my-notes textarea{width:100%;font-family:Arial,Helvetica,sans-serif;font-size:15px;line-height:1.7;border:1px solid #cad9cb;border-radius:8px;padding:13px;resize:vertical;color:var(--ink)}.my-notes>div{display:flex;justify-content:space-between;align-items:center;gap:15px;padding:15px 0 18px;font-size:10px;color:var(--muted)}.personal-progress{display:flex;align-items:center;justify-content:space-between;gap:20px;border:1px solid #dbe5d7;border-radius:12px;background:#eef3e8;padding:20px 24px;margin-bottom:26px}.personal-progress h2{font-size:15px;font-weight:650;margin:0 0 7px}.personal-progress p{font-size:11px;color:var(--muted);line-height:1.7;margin:0}.progress-metrics{display:flex;gap:24px}.progress-metrics span{font-size:10px;color:var(--muted)}.progress-metrics strong{font-size:23px;font-family:Georgia,serif;font-weight:normal;color:var(--ink);display:block;margin-bottom:5px}.progress-track{height:5px;background:#d7e3d1;border-radius:5px;overflow:hidden;margin-top:12px;max-width:290px}.progress-fill{height:100%;background:var(--teal);border-radius:5px}.study-done{color:var(--teal)!important}.owner-source{background:#fff7e9;border:1px solid #ecdfc3;padding:13px;border-radius:8px;margin:15px 0}.owner-source p{font-size:11px;color:#7b6e51;line-height:1.8}.print-links{display:flex;align-items:center;gap:15px;flex-wrap:wrap;margin-top:12px}.print-links a{font-size:12px;font-weight:650;color:var(--teal)}
@media(max-width:850px){.personal-progress{padding:18px;align-items:flex-start;flex-direction:column}.progress-metrics{gap:30px}.my-notes summary{font-size:14px}}
@media(max-width:520px){.topbar #open-sources{display:none}.topbar #toggle-sidebar{font-size:10px;padding:8px}.personal-progress{gap:15px}.personal-progress p{font-size:12px}.progress-metrics strong{font-size:22px}.my-notes{padding:0 16px}.my-notes>div{align-items:flex-start;flex-direction:column}.completion-row{flex-direction:column;align-items:flex-start;gap:8px}.my-notes summary span{font-size:9px}}
.catalog-heading{align-items:center}.catalog-search-box input{width:310px;min-height:44px;font-size:14px;padding:12px 14px;border:1px solid var(--line);border-radius:9px;background:white}.catalog-tools{display:grid;grid-template-columns:.75fr 1.3fr 1.5fr 1fr;gap:12px;margin-top:22px;width:100%}.catalog-tools label{font-size:11px;font-weight:650;color:var(--muted)}.catalog-tools select{margin-top:7px;max-width:none;width:100%;font-size:12px;color:var(--ink)}.topic-shortcuts{display:flex;flex-wrap:wrap;gap:8px;margin-top:16px}.topic-shortcuts button{background:#f0f4e9;border:1px solid #d9e4d1;border-radius:7px;font-size:11px;line-height:1.5;padding:9px 11px;color:var(--teal);min-height:38px}.topic-shortcuts button:hover{background:#e4eedc}.linked-reference{border-top:1px solid var(--line);padding:18px 23px}.linked-reference a{color:var(--teal);font-size:13px;font-weight:650}.linked-reference p{font-size:11px;color:var(--muted);line-height:1.8;margin:7px 0}.empty-course{background:#fff;border:1px solid var(--line);border-radius:12px;padding:25px;margin:15px 0}.empty-course h3{font-family:Georgia,serif;font-size:25px;font-weight:normal;margin:0 0 12px}.empty-course p{font-size:13px;line-height:1.9;color:var(--muted)}.empty-course a{font-size:12px;color:var(--teal);font-weight:650}.external-lesson{display:flex;justify-content:space-between;gap:14px;text-decoration:none;padding:13px 12px;border-radius:7px;line-height:1.7}.external-lesson:hover{background:#f6f4eb}.external-lesson strong{font-size:12px;font-weight:600}.external-lesson small{display:block;font-size:10px;color:#817860}.reference-group{border-color:#e3dfce}.reference-group summary{background:#f8f7ef}.catalog-status-note{font-size:11px;line-height:1.8;color:var(--muted);padding:10px 0}
@media(max-width:850px){.catalog-tools{grid-template-columns:1fr 1fr}.catalog-search-box{width:100%}.catalog-search-box input{width:100%}.catalog-heading{align-items:flex-start}}
@media(max-width:520px){.catalog-tools{gap:13px 9px}.catalog-tools select{font-size:12px;padding:10px 7px}.topic-shortcuts button{font-size:10px}.external-lesson strong{font-size:13px}.external-lesson small{font-size:11px}.linked-reference{padding:17px}.catalog-search-box input{font-size:15px}}
.skip-link{position:fixed;top:-100px;left:20px;z-index:200;background:#15333d;color:#fff;padding:14px 20px;border-radius:8px;font-size:15px}.skip-link:focus{top:14px}.skip-link:nth-of-type(2){left:200px}
@media print{dialog:not(#reference-dialog){display:none!important}.topbar,.library-home,.skip-link{display:none!important}.reference-law{grid-template-columns:160px minmax(0,1fr)}#reference-dialog{font-size:12px}#reference-dialog .reference-law math{font-size:20px}}

/* Reader choices apply to explanations as well as captions. */
.step p,.condition,.practice-card p,.practice-answer p,.all-steps p{font-size:var(--lesson-text-size,16px);line-height:1.75}.step h3{font-size:15px;font-weight:650}.diagram-caption{font-size:14px;line-height:1.7}.lesson-sources{font-size:13px}.source-check{font-size:12px}.page-footer{font-size:12px;color:#5f706a}.chapter-title{font-size:13px!important}.chapter-subtitle{font-size:11px!important}.chapter{min-height:52px}.button,.icon-button,.text-button,.reading-options-button,.captions-toggle,.speed-label select{min-height:44px}.icon-button{min-width:44px}summary:focus-visible{outline:3px solid #176c62;outline-offset:3px}.all-steps{border:1px solid var(--line);border-radius:12px;background:#fff;padding:0 22px;margin:15px 0}.all-steps summary{cursor:pointer;padding:18px 0;font-size:16px;font-weight:650}.all-steps summary span{font-size:12px;font-weight:400;color:var(--muted);margin-left:12px}.all-steps section{padding:8px 0 22px;border-top:1px solid var(--line)}.all-steps h3{font-size:16px;line-height:1.6}.all-steps p{max-width:65ch}.all-step-math{font-size:28px;overflow-x:auto;padding:6px 0}.reduce-animations *,.reduce-animations *::before,.reduce-animations *::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}.reduce-animations .ink-path{stroke-dashoffset:0}.hide-study-stats #personal-progress{display:none}.subtitle-text:focus-visible{outline:2px solid var(--subtitle-fg);outline-offset:5px}.quiz-feedback:focus{outline:2px solid #d8ed9d;outline-offset:5px}
@media(max-width:520px){.all-steps{padding:0 17px}.all-steps summary span{display:block;margin:6px 0 0}.transport .speed-label select,.transport .captions-toggle,.reading-options-button{min-height:44px}.transport-options{flex-wrap:wrap}.subtitle-meta{flex-wrap:wrap}.library-hero h1{font-size:clamp(32px,9vw,42px)}.all-step-math{font-size:25px}.diagram-caption{font-size:13px}}
@media(forced-colors:active){.button,.chapter,.step,.unit-group,.all-steps,.my-notes{border:1px solid ButtonText}.progress-fill{background:Highlight}.rule-display,.stage,.subtitles{forced-color-adjust:auto}}

/* Keep large captions in normal document flow on small screens: no obscured examples. */
@media(max-width:520px){body:not(.editing) .reader-dock{position:static;inset:auto;max-height:none;overflow:visible;box-shadow:none;z-index:auto}.player-column{padding-bottom:0!important}.subtitle-text{max-height:none;overflow:visible}.subtitles{border-radius:12px 12px 0 0}#main{scroll-margin-top:15px}}

.library-hero .hero-diagram p{color:#c2d7d8;font-size:14px}.eyebrow{font-size:11px;line-height:1.6}.library-hero>div>p{font-size:16px;line-height:1.75}.course-cards span{font-size:14px;line-height:1.75}.library-footer p,.catalog-status-note{font-size:13px}.unit-group summary small{font-size:11px}.catalog-tools label{font-size:13px}.catalog-tools select{font-size:14px}.chapter-heading{font-size:10px}.diagram-controls{font-size:13px}
