@font-face{font-family:Pretendard;src:url('/assets/pretendard-variable.woff2?v=9599f12fd42f') format('woff2');font-weight:100 900;font-display:swap}
:root{--brand:#4536c9;--brand-start:#5650ff;--brand-end:#af4bff;--bg:#f5f7fd;--surface:#fff;--soft:#f0eeff;--ink:#171527;--muted:#66647a;--line:#e7e5f1;--guide:#ffb52a;--rail:96px;--body-scale:1;font-family:Pretendard,'Malgun Gothic',sans-serif;color:var(--ink);background:var(--bg);font-synthesis:none}
*{box-sizing:border-box}body{margin:0}button,a,input,select{font:inherit}button,a{touch-action:manipulation}button{color:inherit;cursor:pointer}button{border:0;background:none}button:disabled{cursor:default;opacity:.38}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,[tabindex]:focus-visible{outline:3px solid var(--brand-start);outline-offset:4px}button:hover:not(:disabled){filter:brightness(.96)}[hidden]{display:none!important}svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}a{color:var(--brand)}.skip{position:fixed;left:20px;top:-100px;z-index:100;background:var(--surface);padding:16px}.skip:focus{top:10px}.review-bar{height:32px;padding:0 max(28px,calc((100vw - 1632px)/2));display:flex;align-items:center;justify-content:space-between;background:#ebe9f7;color:#5b5479;font-size:.8125rem}.review-bar>span{display:flex;gap:8px;align-items:center}.review-bar i{height:6px;width:6px;border-radius:50%;background:var(--brand)}.review-bar button{font-size:.8125rem;display:flex;gap:16px;align-items:center}.header{height:84px;padding:0 max(32px,calc((100vw - 1600px)/2));display:flex;align-items:center;justify-content:space-between;background:var(--surface);border-bottom:1px solid var(--line)}.brand{display:flex;align-items:center;gap:12px;padding:0;text-align:left;color:inherit;text-decoration:none;min-height:44px}.brand img{height:43px;width:43px;border-radius:12px;box-shadow:0 4px 12px #5650ff1c}.brand>span{font-size:1.4rem;font-weight:800;letter-spacing:-.06em}.brand small{display:block;font-size:.8125rem;font-weight:500;color:var(--muted);letter-spacing:-.025em;margin-top:3px}.header-right{display:flex;gap:22px;align-items:center}.course-brand{color:var(--brand);font-weight:650;font-size:.9375rem}.separator{height:20px;width:1px;background:var(--line)}.quiet,.outline,.resource{display:inline-flex;align-items:center;justify-content:center;gap:9px;min-height:44px;font-size:.9375rem;font-weight:550;padding:8px 12px;border-radius:10px;white-space:nowrap}.quiet{color:var(--muted)}.quiet:hover{background:var(--soft)}.outline{border:1px solid var(--line);background:var(--surface)}.outline:hover{border-color:#bbb4ed}.header .quiet{color:var(--ink)}main{max-width:1648px;margin:auto;padding:25px 28px 20px}.lesson-heading{display:flex;align-items:center;justify-content:space-between;padding:0 calc(var(--rail) + 22px);gap:20px;margin-bottom:20px;min-height:70px}.heading-main{min-width:0}.back-link{font-size:.875rem;color:var(--muted);padding:0 0 12px;min-height:32px}.title-row{display:flex;align-items:center;gap:12px}h1{margin:0;font-size:clamp(1.15rem,1.65vw,1.6rem);line-height:1.35;letter-spacing:-.045em;font-weight:750;text-wrap:balance}.chapter-pill{font-size:.8125rem;white-space:nowrap;padding:5px 8px;color:var(--brand);background:#e9e5ff;border-radius:6px;font-weight:650}.heading-actions{display:flex;gap:8px;align-self:flex-end}.lesson-workspace{position:relative}.image-tools,.image-footer,.progress-track,.instruction,.support-dock{margin-left:calc(var(--rail) + 22px);margin-right:calc(var(--rail) + 22px)}.image-tools{height:50px;display:flex;justify-content:space-between;align-items:center;padding:0 2px 10px}.phase{display:flex;gap:10px;align-items:center;font-size:.9375rem;font-weight:650}.step-dot{width:27px;height:27px;display:grid;place-items:center;background:var(--brand);color:white;border-radius:9px;font-size:.8125rem;font-weight:700}.subtle{color:var(--muted);font-weight:450;font-size:.8125rem}.image-tools-right{display:flex;align-items:center;gap:10px}.question-icon{border:1.5px solid currentColor;border-radius:50%;width:18px;height:18px;display:grid;place-items:center;font-size:.75rem;font-weight:650}.stage-row{display:grid;grid-template-columns:var(--rail) minmax(0,1fr) var(--rail);align-items:center;gap:22px}.stage{height:clamp(300px,calc(100dvh - 397px),690px);min-width:0;display:flex;align-items:center;justify-content:center;position:relative;border:1px solid #dedee9;border-radius:14px;background:#eef0f6;overflow:hidden;box-shadow:0 12px 35px -23px #33305d30}.image-box{position:relative;max-width:100%;max-height:100%;display:flex;align-items:center;justify-content:center}.image-box img{display:block;max-width:100%;max-height:clamp(298px,calc(100dvh - 399px),688px);object-fit:contain}.marker{position:absolute;border:3px solid var(--guide);border-radius:9px;box-shadow:0 0 0 3px #ffb52a21;pointer-events:none;width:3%;height:5%;left:36.6%;top:46.9%}.rail{width:100%;min-height:84px;border-radius:16px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:7px;font-size:1rem;font-weight:700;border:1px solid var(--line);background:var(--surface);box-shadow:0 6px 18px #21185507}.rail>span:first-child{font-size:1.7rem;line-height:1}.rail.next{background:linear-gradient(135deg,var(--brand-start),#8450ed);color:#fff;border-color:transparent;box-shadow:0 8px 20px #5650ff22}.image-footer{display:flex;justify-content:space-between;padding:10px 2px;font-size:.75rem;color:var(--muted)}#step-progress{font-weight:650;font-size:.8125rem;color:var(--brand)}.progress-track{height:3px;background:#e5e2f3;border-radius:3px;overflow:hidden}#progress-fill{height:100%;background:var(--brand-start);width:6%;transition:width .2s}.instruction{background:var(--surface);padding:14px 23px 16px;min-height:151px;border:1px solid var(--line);border-top:0;border-radius:0 0 14px 14px}.instruction-top{display:flex;align-items:center;justify-content:space-between;height:27px;margin-bottom:7px}.eyebrow{font-size:.75rem;font-weight:700;letter-spacing:.03em;color:var(--brand)}.read-aloud{font-size:.8125rem;min-height:32px;padding:3px 0}.read-aloud svg{width:17px;height:17px}.caption-row{display:flex;justify-content:space-between;align-items:center;gap:20px;min-height:56px}#caption{margin:0;font-size:calc(1.18rem * var(--body-scale));line-height:1.55;font-weight:570;letter-spacing:-.025em;max-width:100%}#caption strong{font-weight:750}button.term{display:inline;padding:0;border-radius:0;font-weight:inherit;color:var(--brand);border-bottom:1px dashed var(--brand);white-space:normal}.more{flex-shrink:0;font-size:.875rem;white-space:nowrap;color:var(--brand);padding:12px 0;display:flex;gap:9px;align-items:center}.safety{font-size:calc(.8125rem * var(--body-scale));color:var(--muted);margin:9px 0 0;line-height:1.5}.safety>span{margin-right:4px}.support-dock{display:flex;gap:20px;align-items:center;padding:17px 0;min-height:89px}.support-group{display:flex;align-items:center;gap:10px}.support-label{font-size:.75rem;line-height:1.5;color:var(--muted);white-space:nowrap}.resource{border:1px solid var(--line);background:var(--surface);font-size:.8125rem;gap:8px;min-height:40px}.resource svg{width:17px;height:17px;color:var(--brand)}.count{background:var(--soft);color:var(--brand);border-radius:5px;padding:1px 6px;font-size:.75rem}.support-extra{font-size:.75rem;margin-left:auto;padding-right:0}.page-footer{display:flex;justify-content:space-between;margin:0 calc(var(--rail) + 22px);padding-top:4px;color:#777489;font-size:.75rem;gap:20px}.footer-divider{padding:0 10px;color:#c7c3d7}.return-bar{margin:0 calc(var(--rail) + 22px) 14px;border:1px solid #cdc6fa;background:var(--soft);border-radius:10px;padding:10px 16px;display:flex;justify-content:space-between;align-items:center;font-size:.875rem}.return-bar button{color:var(--brand);font-weight:700;padding:9px}.image-state{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:35px;background:var(--surface);text-align:center;gap:12px}.image-state h2{font-size:1.25rem;margin:0}.image-state p{font-size:1rem;line-height:1.6;max-width:500px;color:var(--muted);margin:0}.image-state .state-symbol{font-size:2rem;color:var(--brand)}
dialog{color:var(--ink);background:var(--surface);border:1px solid var(--line);padding:30px;border-radius:20px;box-shadow:0 25px 100px #19123830;width:min(590px,calc(100vw - 48px));max-height:85dvh;overflow:auto}dialog::backdrop{background:#211c374d;backdrop-filter:blur(3px)}.panel-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;margin-bottom:25px}.panel-heading h2{margin:7px 0 0;font-size:1.45rem;line-height:1.4;letter-spacing:-.04em}.close{display:grid;place-items:center;min-width:40px;height:40px;border:1px solid var(--line);border-radius:50%;font-size:1.5rem}.panel-copy{line-height:1.8;font-size:1.05rem}.panel-copy p{margin:0 0 16px}.callout{background:var(--soft);border-radius:12px;padding:18px 20px;line-height:1.7;font-size:.9375rem;margin:15px 0}.panel-actions{display:flex;gap:10px;margin-top:22px;flex-wrap:wrap}.primary{border:0;border-radius:10px;min-height:45px;padding:10px 18px;background:var(--brand);color:white;font-size:.9375rem;font-weight:650}.toast{position:fixed;left:50%;bottom:25px;transform:translateX(-50%);max-width:calc(100vw - 40px);background:#262136;color:#fff;padding:14px 22px;border-radius:12px;box-shadow:0 8px 35px #10072433;font-size:.9375rem;z-index:20;pointer-events:none;opacity:0;transition:opacity .15s}.toast.visible{opacity:1}.glossary-popover{position:fixed;width:290px;background:var(--surface);padding:18px;border:1px solid #cdc6ef;border-radius:12px;box-shadow:0 10px 40px #30265126;z-index:10;font-size:.9375rem;line-height:1.65}.glossary-popover>button{float:right;font-size:1.2rem;padding:0 3px}.glossary-popover strong{color:var(--brand)}.glossary-popover p{margin:7px 0 0}.om-dark{--bg:#171622;--surface:#242231;--soft:#302a49;--ink:#f3f1fc;--muted:#b8b3cc;--line:#403a54;--brand:#beb1ff}.om-dark .review-bar{background:#312b43;color:#d0c8e5}.om-dark .stage{background:#15141b;border-color:#403a54}.om-dark .primary{background:#6850ce;color:white}.om-dark .step-dot{background:#6850ce}.om-dark .chapter-pill{background:#302a49}.om-dark #progress-fill{background:#9b84ff}
@media(min-width:1700px){.stage{height:clamp(300px,calc(100dvh - 415px),690px)}.image-box img{max-height:clamp(298px,calc(100dvh - 417px),688px)}}
@media(max-width:1250px){:root{--rail:72px}.lesson-heading{padding:0 calc(var(--rail) + 16px)}.image-tools,.image-footer,.progress-track,.instruction,.support-dock,.page-footer{margin-left:calc(var(--rail) + 16px);margin-right:calc(var(--rail) + 16px)}.stage-row{gap:16px}.support-dock{gap:12px;flex-wrap:wrap}.support-label{display:none}.support-extra{font-size:.8125rem}.heading-actions .quiet{display:none}h1{font-size:1.25rem}.image-tools-right{gap:2px}main{padding-inline:20px}.caption-row{gap:12px}}
@media(max-width:950px){:root{--rail:62px}.header{padding:0 22px}.course-brand{display:none}.header-right{gap:8px}.lesson-heading{align-items:flex-start;gap:10px}.heading-actions{align-self:flex-start}.title-row{align-items:flex-start}.chapter-pill{display:none}.image-tools .quiet{font-size:.8125rem;padding:6px}.image-tools .phase{font-size:.8125rem}.stage{height:360px}.image-box img{max-height:358px}.support-extra{margin-left:0}.page-footer>span:last-child{display:none}.review-note{display:none}.instruction{padding:13px 16px}.caption-row{display:block}.more{padding:7px 0}#caption{font-size:calc(1.05rem * var(--body-scale))}.return-bar{margin-inline:0}}
/* Shared expanded surfaces: closed/open/error states never move the image stage. */
.panel-intro{font-size:.9375rem;line-height:1.7;color:var(--muted);margin:0 0 24px}.panel-copy li{margin:12px 0}.panel-copy ul{padding-left:22px}.small-print{font-size:.8125rem;color:var(--muted);line-height:1.6;margin-top:22px}.muted{color:var(--muted)}.text-link{color:var(--brand);text-align:left;font-size:.9375rem;line-height:1.6;min-height:44px;padding:8px 0}.callout p{margin:8px 0 0}.course-chapter{margin:28px 0}.course-chapter h3{display:flex;gap:10px;font-size:1rem;line-height:1.5;margin:0 0 9px}.course-chapter h3>span{color:var(--brand);font-size:.875rem;padding-top:2px}.course-item{display:flex;gap:14px;width:100%;align-items:center;text-align:left;padding:14px 12px;border-bottom:1px solid var(--line);border-radius:9px;font-size:1rem;line-height:1.4}.course-item:hover,.course-item.selected,.step-item.selected{background:var(--soft)}.course-number{font-size:.8125rem;color:var(--muted);min-width:20px}.course-item small{display:block;color:var(--muted);font-size:.75rem;margin-top:6px}.course-arrow{margin-left:auto;color:var(--brand)}.step-list{list-style:none;padding:0;margin:0}.step-item{display:flex;width:100%;text-align:left;padding:17px 13px;gap:17px;border-radius:12px;border-bottom:1px solid var(--line)}.step-item>span{color:var(--brand);font-size:.875rem;font-weight:700;padding-top:3px}.step-item strong{font-size:1rem}.step-item p{line-height:1.6;font-size:.9375rem;color:var(--muted);margin:6px 0}.step-item small{color:var(--brand)}.material-card{display:grid;grid-template-columns:48px 1fr auto;gap:15px;align-items:center;padding:17px 0;border-bottom:1px solid var(--line)}.file-icon{width:48px;height:54px;display:grid;place-items:center;background:var(--soft);color:var(--brand);font-size:.6875rem;font-weight:750;border:1px solid var(--line);border-radius:9px}.material-card h3{font-size:1rem;line-height:1.5;margin:0 0 5px}.material-card p{font-size:.8125rem;line-height:1.6;color:var(--muted);margin:0;overflow-wrap:anywhere}.download-message{font-size:.9375rem;line-height:1.7;margin-top:16px;color:var(--brand)}.difference-list details{border-bottom:1px solid var(--line);padding:18px 0}.difference-list summary{font-size:1rem;font-weight:650;cursor:pointer;line-height:1.5}.difference-list p{font-size:.9375rem;line-height:1.8;margin:13px 0 0;padding-left:17px}.difference-figure{margin:16px 0 4px;padding-left:17px}.difference-image-box{position:relative;display:block;border:1px solid var(--line);border-radius:10px;overflow:hidden;background:#eef0f6}.difference-image-box img{display:block;width:100%;height:auto}.difference-figure .panel-actions{margin-top:10px}.difference-figure .small-print{margin-top:8px}.setting-row{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:19px 0;border-bottom:1px solid var(--line)}.setting-row strong{font-size:1rem}.setting-row p{font-size:.875rem;color:var(--muted);line-height:1.5;margin:6px 0 0}select{min-height:42px;border:1px solid var(--line);border-radius:8px;background:var(--surface);color:var(--ink);padding:6px 10px;font-size:.9375rem;max-width:100%}.review-options{display:flex;gap:9px;flex-wrap:wrap;margin:18px 0}.review-options button{font-size:.875rem}.review-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin:25px 0}.review-grid label{font-size:.875rem;color:var(--muted);display:flex;flex-direction:column;gap:8px}.review-panel{width:min(740px,calc(100vw - 48px))}.coverage>summary{cursor:pointer;padding:12px 0;font-weight:650}.coverage-row{padding:15px 0;border-bottom:1px solid var(--line);font-size:.9375rem}.coverage-row p{font-size:.8125rem;line-height:1.7;color:var(--muted);margin:8px 0 0}.zoom-panel{width:min(1460px,calc(100vw - 60px));max-height:92dvh}.zoom-controls{display:flex;justify-content:space-between;align-items:center;gap:20px;font-size:.875rem;color:var(--muted);margin-bottom:16px}.zoom-controls label{display:flex;gap:12px;align-items:center}.zoom-viewport{max-height:65dvh;overflow:auto;background:#eee;border-radius:8px}.zoom-image-box{position:relative;width:100%}.zoom-image-box img{display:block;width:100%;max-width:none;height:auto}.zoom-image-box .zoom-marker{position:absolute}.marker-observe{outline-style:dashed;animation:none}.marker-action{outline-style:solid}.example-copy{margin:20px 0;padding:22px;background:var(--soft);border-radius:12px;line-height:1.8;font-size:1.1rem;user-select:all}.completion-symbol{background:var(--soft);color:var(--brand);width:58px;height:58px;border-radius:50%;display:grid;place-items:center;font-size:1.7rem;margin-bottom:22px}.course-end-invite{border-top:1px solid var(--line);margin-top:25px;padding-top:22px;font-size:.9375rem;line-height:1.6}.status-badge{font-size:.75rem;background:var(--soft);color:var(--brand);border-radius:6px;padding:6px 10px}.example-trigger{font-size:.8125rem;color:var(--brand);padding-left:0}.support-dock{flex-wrap:wrap}.spinner{width:30px;height:30px;border:3px solid var(--line);border-top-color:var(--brand);border-radius:50%;animation:turn 1s linear infinite}@keyframes turn{to{transform:rotate(360deg)}}.phone-boundary{margin:70px auto;max-width:460px;text-align:center;line-height:1.8;padding:20px}.phone-boundary a{display:inline-flex;align-items:center;text-decoration:none;margin-top:15px}.heading-actions{flex-shrink:0}.heading-actions .restart{display:inline-flex}
.reference-trigger{font-size:.8125rem;padding-inline:0}.support-dock .support-extra{margin-left:auto}.heading-main{flex:1}.title-row{min-height:44px}.image-tools-right{flex-shrink:0}.support-dock{column-gap:17px;row-gap:6px}
body[data-ready="phone"] .header-right,body[data-ready="phone"] .review-bar button{display:none}body[data-ready="phone"] .brand{pointer-events:none}
@media(max-width:950px){.lesson-heading{flex-wrap:wrap}.heading-actions{margin-left:auto}.page-footer{font-size:.6875rem}.zoom-controls{flex-wrap:wrap}.material-card{grid-template-columns:42px 1fr}.material-card>.outline{grid-column:2;justify-self:start}.image-tools{height:auto;min-height:50px;gap:8px;flex-wrap:wrap}}
/* Revision 2: screenshot-first. No separate phase/zoom toolbar. */
:root{--rail:80px;--stage-height:clamp(320px,calc(100dvh - 368px),900px)}
.review-bar{height:24px}.header{height:60px}.brand img{width:38px;height:38px}.brand>span{font-size:1.25rem}.brand small{font-size:.75rem}
main{max-width:1840px;padding:14px 28px 10px}.lesson-heading{min-height:56px;margin-bottom:12px;padding-inline:calc(var(--rail) + 16px)}.back-link{padding-bottom:4px;min-height:24px}.title-row{min-height:34px}.heading-actions{align-self:center;gap:7px}.heading-actions .difference{display:inline-flex;font-size:.8125rem;padding-inline:10px}
.stage-row{gap:16px}.stage{height:var(--stage-height)}.image-box img{max-height:calc(var(--stage-height) - 2px)}
#image-box{padding:0;border:0;cursor:zoom-in;line-height:0;border-radius:0;background:none}#image-box:hover{filter:none}#image-box:focus-visible{outline-offset:-4px}
.image-footer,.progress-track,.instruction,.support-dock,.page-footer{margin-inline:calc(var(--rail) + 16px)}.image-footer{padding:6px 2px}.image-progress{display:flex;gap:14px;align-items:center}
.instruction{min-height:121px;padding:10px 22px 12px}.instruction-top{height:24px;margin-bottom:3px}.caption-row{min-height:47px}.support-dock{min-height:54px;padding:8px 0;gap:20px}.page-footer{padding-top:0}.safety{margin-top:5px}
@media(max-width:1250px){:root{--rail:64px}.heading-actions .difference{display:inline-flex}.heading-actions .outline{font-size:.8125rem;padding:8px 10px}h1{font-size:1.15rem}.heading-actions{gap:4px}.header{padding-inline:24px}}
@media(max-width:950px){:root{--rail:54px}.lesson-heading{flex-wrap:wrap}.heading-main{min-width:100%}.heading-actions{margin-left:0}.stage{height:var(--stage-height)}.image-box img{max-height:calc(var(--stage-height) - 2px)}.instruction{padding:12px}.support-dock{gap:8px}.support-label{display:none}}
/* Revision 3: move (not duplicate) resources/refresh beside title actions. */
.heading-actions{flex-shrink:1;flex-wrap:wrap;justify-content:flex-end;max-width:68%}
.heading-main{min-width:220px}.heading-actions #support-dock{margin:0;padding:0;min-height:0;gap:7px;flex-wrap:wrap;justify-content:flex-end}
.heading-actions .resource{min-height:44px}.page-footer{padding-top:12px}
@media(max-width:950px){.heading-actions{max-width:100%;justify-content:flex-start}.heading-actions #support-dock{justify-content:flex-start}}
/* Revision 4: topic-specific refresh first; restart, steps, feedback anchored at the end. */
.heading-actions .feedback-button{position:relative;display:inline-flex;width:44px;min-width:44px;height:44px;padding:0;font-size:1.15rem;color:var(--muted)}
.feedback-tooltip{display:none;position:absolute;right:0;bottom:calc(100% + 8px);background:#302a43;color:#fff;padding:9px 12px;border-radius:8px;font-size:.8125rem;white-space:nowrap;font-weight:500;z-index:5;box-shadow:0 4px 12px #211c3722;pointer-events:none}
.feedback-button:hover .feedback-tooltip,.feedback-button:focus-visible .feedback-tooltip{display:block}
.heading-actions #support-dock{flex-wrap:nowrap}.heading-actions .resource[data-action="refresh"]{font-weight:650;color:var(--brand)}
@media(max-width:950px){.heading-actions #support-dock{flex-wrap:wrap}}
@media(prefers-reduced-motion:reduce){*{transition:none!important;scroll-behavior:auto!important;animation:none!important}}
/* Revision 5: optional data-driven teaching slots, never another image toolbar. */
:root{--warning-bg:#fff8e8;--warning-ink:#765016;--warning-line:#f1ddb4}
.review-bar .review-note{font-size:inherit}.preparation{display:flex;gap:12px;align-items:baseline;margin:10px 0;color:var(--muted);font-size:calc(.875rem * var(--body-scale));line-height:1.6}.preparation>span{flex-shrink:0;color:var(--ink);font-weight:650}
.prompt-card{margin-top:12px;padding:12px 16px;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:6px 18px;align-items:center;background:var(--soft);border:1px solid var(--line);border-radius:10px}.prompt-text{margin:6px 0 0;white-space:pre-wrap;overflow-wrap:anywhere;font-size:calc(1rem * var(--body-scale));line-height:1.65;user-select:text}.prompt-card [role=status]:empty{display:none}.prompt-card [role=status]{grid-column:1/-1;font-size:.8125rem;color:var(--brand)}
.conditional-routes,.branch-return{display:flex;align-items:center;gap:15px;flex-wrap:wrap;margin-top:8px;font-size:.8125rem;color:var(--muted)}.conditional-routes>.text-link{font-size:.875rem;padding-block:2px}.conditional-routes small{font-size:.8125rem;font-weight:450;margin-left:12px}.branch-return{border-top:1px solid var(--line);padding-top:8px}.branch-return .text-link{font-size:.8125rem}
.safety:not([hidden]){border-left:3px solid var(--warning-line);padding:7px 10px;background:var(--warning-bg);color:var(--warning-ink);border-radius:3px;font-size:calc(.875rem * var(--body-scale))}
.instruction[data-instruction-mode=observe] .instruction-top .eyebrow{color:var(--warning-ink);background:var(--warning-bg);padding:5px 8px;border-radius:5px}
.material-role{margin:24px 0}.material-role>h3{font-size:.875rem;color:var(--brand);margin:0 0 4px}.material-card h4{font-size:1rem;line-height:1.5;margin:0 0 5px}.help-choices{display:grid;gap:14px}.help-choices button{display:flex;align-items:center;gap:15px;padding:20px 16px;text-align:left;border:1px solid var(--line);border-radius:12px;background:var(--surface)}.help-choices button:hover{background:var(--soft)}.help-choices strong{display:block;font-size:1rem}.help-choices small{display:block;color:var(--muted);font-size:.875rem;line-height:1.6;margin-top:7px}.help-choices button>span:last-child{margin-left:auto;color:var(--brand)}.help-symbol{display:grid;place-items:center;background:var(--soft);color:var(--brand);width:36px;min-width:36px;height:36px;border-radius:10px;font-size:1.2rem}
.feedback-label{display:block;font-weight:650;margin-bottom:10px}#feedback-text{display:block;width:100%;resize:vertical;min-height:145px;border:1px solid var(--line);border-radius:10px;background:var(--surface);color:var(--ink);padding:14px;font:inherit;line-height:1.7}textarea:focus-visible{outline:3px solid var(--brand-start);outline-offset:3px}.om-dark{--warning-bg:#342b18;--warning-ink:#f3d391;--warning-line:#766040}
@media(max-width:950px){.prompt-card{padding:12px;grid-template-columns:minmax(0,1fr)}.prompt-card>.outline{justify-self:start}.preparation{flex-wrap:wrap;gap:4px}.conditional-routes{gap:4px}.conditional-routes small{display:block;margin-left:0}}
/* Revision 6: research-informed legibility and hierarchy; original brand and stage size retained. */
:root{--control-font:.9375rem;--support-font:.875rem;--control-border:#d7d2ed;--focus-ring:#4536c9}
.heading-actions .resource,.heading-actions .outline{font-size:var(--control-font);border-color:var(--control-border);min-height:46px;padding-inline:13px}.heading-actions .feedback-button{padding:0;width:46px;min-width:46px;height:46px}.heading-actions .count{font-size:.8125rem}.heading-actions #support-dock{gap:8px}.heading-actions{gap:8px}.heading-actions .resource[data-action=refresh]{max-width:340px;white-space:normal;text-align:left}.heading-actions .resource[data-action=refresh] span:not([aria-hidden]){overflow-wrap:anywhere}
.back-link{color:var(--muted);font-size:.875rem;text-decoration:underline;text-underline-offset:3px}.header .quiet{border:1px solid var(--control-border);font-size:.9375rem;padding-inline:14px}.stage{background:#eeeff8;box-shadow:0 12px 32px -24px #4536c926}.rail{min-height:88px;border-color:var(--control-border)}.rail.next{border-color:transparent}.image-footer{padding-block:8px}.image-footer #step-progress{font-size:.9375rem;font-weight:750}.image-footer .subtle{font-size:.875rem}
.instruction{padding:16px 22px 18px}.instruction-top{height:36px;gap:12px;margin-bottom:8px}.instruction-top>.eyebrow{margin-right:auto;font-size:.875rem}.read-aloud{font-size:.875rem;min-height:40px;gap:8px;color:var(--brand);text-decoration:underline;text-underline-offset:4px}#instruction-number{display:grid;place-items:center;flex-shrink:0;width:36px;height:36px;border-radius:11px;background:var(--brand);color:var(--surface);font-weight:750;font-size:1.05rem}.caption-row{gap:18px;min-height:50px}.more{border:1px solid var(--control-border);border-radius:9px;min-height:44px;padding:9px 13px;justify-content:center;align-self:center;font-size:.9375rem;background:var(--surface)}
.preparation{margin:2px 0 8px;font-size:calc(.875rem * var(--body-scale));gap:10px;line-height:1.65}.preparation>span{font-size:.8125rem;padding:3px 7px;border-radius:5px;color:var(--brand);background:var(--soft)}.safety:not([hidden]){margin-top:10px}.prompt-card{margin-top:14px;padding:14px 16px}.prompt-card .eyebrow{font-size:.875rem}.prompt-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap;justify-content:flex-end}.prompt-text{max-height:5em;overflow:hidden}.conditional-routes{margin-top:12px;gap:12px;font-size:.875rem}.conditional-routes>.outline{font-size:.875rem;min-height:44px;flex-wrap:wrap;justify-content:flex-start;color:var(--brand);white-space:normal;gap:5px 10px}.conditional-routes small{font-size:.8125rem;margin-left:0;color:var(--muted)}.branch-return{font-size:.875rem}.branch-return .text-link{font-size:.875rem}.text-link{text-decoration:underline;text-underline-offset:4px}
dialog{padding:0;width:min(680px,calc(100vw - 48px));overflow:hidden}dialog[open]{display:flex;flex-direction:column}.panel-heading{flex-shrink:0;padding:24px 28px 20px;margin:0;border-bottom:1px solid var(--line);background:var(--surface)}.panel-heading .eyebrow{font-size:.875rem}.panel-heading h2{font-size:1.5rem}.panel-heading .close{width:44px;min-width:44px;height:44px;border-color:var(--control-border)}#panel-body{padding:24px 28px;overflow:auto;min-height:0;overscroll-behavior:contain}.panel-intro{font-size:1rem;line-height:1.75}.material-role>h3{font-size:.9375rem}.material-card p{font-size:.875rem}.material-card h4{font-size:1.05rem}.help-choices small,.small-print{font-size:.875rem}.example-copy{white-space:pre-wrap;overflow-wrap:anywhere;font-size:1rem;line-height:1.85}.callout{font-size:1rem}.glossary-popover{width:310px;font-size:1rem}.glossary-popover>button{min-width:32px;min-height:32px;border-radius:6px;border:1px solid var(--control-border)}.review-panel{width:min(800px,calc(100vw - 48px))}.zoom-panel{width:min(1460px,calc(100vw - 60px))}.review-options button{min-height:44px}
.om-dark{--control-border:#625a7b;--focus-ring:#beb1ff}.om-dark #instruction-number{background:#6850ce;color:#fff}.om-dark .preparation>span{color:var(--brand)}
@media(max-width:1350px){.heading-main{min-width:210px}.heading-actions{max-width:70%}.heading-actions .resource,.heading-actions .outline{font-size:.875rem;padding-inline:10px}.heading-actions .feedback-button{padding:0}}
@media(max-width:1050px){.lesson-heading{flex-wrap:wrap}.heading-main{min-width:100%}.heading-actions{max-width:100%;margin-left:0;justify-content:flex-start}.heading-actions #support-dock{justify-content:flex-start}}
@media(max-width:950px){.instruction{padding:14px}.prompt-actions{justify-content:flex-start}.panel-heading{padding:20px}#panel-body{padding:20px}.preparation>span{font-size:.8125rem}.conditional-routes>.outline{display:block;text-align:left}.conditional-routes small{margin-top:4px}.glossary-popover{max-width:calc(100vw - 32px)}}
/* Revision 7: task-only caption; resources and branching remain in existing dialogs. */
.caption-actions{display:flex;align-items:center;justify-content:flex-end;gap:8px;flex-shrink:0;flex-wrap:wrap}.caption-actions .outline{font-size:.875rem;min-height:44px}.caption-actions:has(>button:not([hidden])){max-width:42%}.caption-actions:not(:has(>button:not([hidden]))){display:none}
#instruction-supplements:empty,#prompt-status:empty{display:none}#prompt-status{display:block;text-align:right;font-size:.875rem;line-height:1.6;color:var(--brand);margin-top:5px}.step-shortcuts{padding:16px;background:var(--soft);border-radius:12px;margin-bottom:20px}.step-shortcuts h3{font-size:.9375rem;margin:0 0 10px}.step-shortcuts>.outline{display:flex;flex-wrap:wrap;justify-content:flex-start;gap:8px 14px;white-space:normal;text-align:left}.step-shortcuts small{color:var(--muted);font-size:.8125rem}
@media(max-width:950px){.caption-actions:has(>button:not([hidden])){max-width:100%;justify-content:flex-start;margin-top:6px}.caption-actions .more{margin:0}}
/* Revision 8: two-line teaching copy and a persistent, contextual yellow guidance slot. */
:root{--stage-height:clamp(280px,calc(100dvh - 448px),820px)}
.instruction{padding:18px 22px 20px}.caption-row{min-height:72px;align-items:center}#caption{font-size:calc(1.25rem * var(--body-scale));line-height:1.6;min-height:3.2em;white-space:pre-line}
.safety:not([hidden]){display:flex;align-items:center;min-height:42px;padding:9px 12px;margin-top:12px;line-height:1.65}
/* Reserve two lines, but do not clip required copy on narrow screens or larger text settings. */
@media(max-width:950px){.instruction{padding:16px}.caption-row{min-height:72px}#caption{font-size:calc(1.125rem * var(--body-scale))}}
/* FRAME-MORE: retain one full text source, clipping only the collapsed two-line view. */
#caption{overflow:hidden;max-height:3.2em}
.more-panel .panel-copy p{white-space:pre-line}
/* Draw emphasis outside the measured target so its lettering stays readable. */
.marker{border:0;outline:3px solid var(--guide);outline-offset:2px;box-shadow:none}
.marker.marker-observe{outline-style:dashed;animation:none}.marker.marker-action{outline-style:solid}
/* Revision 11: harden the approved frame, without changing its colors or teaching slots. */
.lesson-navigation{display:flex;align-items:center;gap:8px;flex-shrink:0}
.heading-main{min-width:180px}
.heading-actions{max-width:none;flex-shrink:0;flex-wrap:nowrap}
.heading-actions #support-dock{flex-wrap:nowrap}
/* A stable 16:9 stage caps excess portrait whitespace; every image keeps its own aspect ratio. */
.stage-row{container-type:inline-size}
.stage{--fitted-stage-height:min(var(--stage-height),calc((100cqw - 2 * var(--rail) - 32px) * .5625));height:var(--fitted-stage-height)}
.image-box img{max-height:calc(var(--fitted-stage-height) - 2px)}
.image-footer{gap:12px;align-items:flex-start}
#image-credit{min-width:0;line-height:1.5}
.image-progress{flex-shrink:0}
.image-state{overflow:auto}
@media(max-width:1250px){
  .lesson-heading{flex-wrap:wrap;gap:8px}
  .heading-main{min-width:100%}
  .heading-actions{width:100%;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;margin-left:0}
  .heading-actions #support-dock{min-width:0;justify-content:flex-start}
  .lesson-navigation{grid-column:2;justify-self:end}
}
@media(max-width:900px){
  .heading-actions{grid-template-columns:minmax(0,1fr)}
  .heading-actions #support-dock{display:flex;flex-wrap:wrap;min-height:46px}
  .lesson-navigation{grid-column:1;justify-self:end}
  .image-footer{font-size:.75rem}
}
/* Compact padding, not the required text or photograph, on short laptop windows. */
@media(max-height:800px){
  .header{height:56px}
  main{padding-top:10px}
  .lesson-heading{margin-bottom:8px}
  .instruction{padding-block:14px}
  .caption-row{min-height:64px}
  .image-footer{padding-block:6px}
  .page-footer{padding-top:8px}
}
/* One non-modal terminal state; browser navigation remains available. */
/* Narrow PC viewing keeps side arrows, but text need not inherit the image rails. */
@media(max-width:650px){
  :root{--rail:44px}
  main{padding-inline:12px}
  .header{padding-inline:12px}.brand small{display:none}
  .review-bar{height:auto;min-height:32px;padding:6px 12px;gap:8px;flex-wrap:wrap}
  .lesson-heading{padding-inline:0}
  .stage-row{gap:8px}
  .stage{--fitted-stage-height:min(var(--stage-height),calc((100cqw - 2 * var(--rail) - 16px) * .5625))}
  .rail{min-height:60px;font-size:.875rem;border-radius:10px}
  .image-tools,.image-footer,.progress-track,.instruction,.support-dock,.page-footer{margin-inline:0}
  .instruction{padding:12px}.instruction-top{height:auto;min-height:27px;flex-wrap:wrap;gap:6px}
  .instruction-top .eyebrow{white-space:normal}
  .page-footer{flex-wrap:wrap}.completion-actions{grid-template-columns:1fr}
}
#refresh-ending{display:none}
body[data-refresh-terminal="true"] .skip,
body[data-refresh-terminal="true"] .review-bar,
body[data-refresh-terminal="true"] .header,
body[data-refresh-terminal="true"] #app>:not(#refresh-ending){display:none!important}
body[data-refresh-terminal="true"] #refresh-ending{display:flex;min-height:75vh;flex-direction:column;align-items:center;justify-content:center;text-align:center;gap:24px;padding:32px 20px}
.refresh-ending p{max-width:640px;line-height:1.8;font-size:calc(20px * var(--body-scale,1))}
.refresh-ending .primary{min-height:72px;min-width:min(320px,100%);font-size:24px;padding:20px 32px}
.refresh-ending button:focus-visible{outline:3px solid #7050d4;outline-offset:6px}

/* FRAME-SEND-HOLD: shared instructional emphasis, including More/reduced mode. */
.send-hold{color:#b42318;font-weight:800}
.send-hold-line{margin:0 auto 0 14px;font-size:1rem;line-height:1.2}.instruction-top>.eyebrow:has(+.send-hold-line:not([hidden])){margin-right:0}
/* Completion uses the existing dialog, type scale and primary/outline controls. */
.completion-award{height:105px;display:flex;align-items:center;justify-content:center;margin-bottom:12px}
.completion-count{color:var(--muted);font-size:.9375rem}
.completion-stamp{border:3px solid var(--brand);outline:1px solid var(--brand);outline-offset:-7px;border-radius:10px;padding:12px 25px;color:var(--brand);text-align:center;transform:rotate(-6deg)}
.completion-stamp strong{display:block;font-size:1.35rem;letter-spacing:.07em}.completion-stamp span{font-size:.8125rem;font-weight:650}
.is-complete .completion-stamp{animation:completion-stamp .52s cubic-bezier(.2,.8,.3,1) both}
.completion-checklist{list-style:none;padding:0;margin:0;display:grid;gap:8px}
.completion-checklist label{display:flex;align-items:center;gap:14px;min-height:64px;padding:10px 0;cursor:pointer;font-size:calc(1rem * var(--body-scale));line-height:1.7}
.completion-checklist input{appearance:none;flex:0 0 28px;width:28px;height:28px;margin:0;border:2px solid var(--line);border-radius:7px;display:grid;place-content:center;background:var(--surface);color:#fff;cursor:pointer}
.completion-checklist input:checked{background:#4536c9;border-color:#4536c9;animation:completion-check .22s ease-out}
.completion-checklist input:checked:after{content:'✓';font-weight:750;font-size:1.1rem}
.completion-actions{display:grid;grid-template-columns:1fr 1.35fr 1fr;gap:10px;align-items:stretch;margin-top:24px}
.completion-actions button{white-space:normal;word-break:keep-all;min-height:56px;padding:10px 8px}
.completion-status{min-height:22px;margin-bottom:0}
@keyframes completion-stamp{0%{opacity:0;transform:scale(1.65) rotate(-16deg)}65%{opacity:1;transform:scale(.94) rotate(-6deg)}82%{transform:scale(1.04) rotate(-6deg)}100%{opacity:1;transform:scale(1) rotate(-6deg)}}
@keyframes completion-check{50%{transform:scale(1.15)}}
@media(prefers-reduced-motion:reduce){.is-complete .completion-stamp,.completion-checklist input:checked{animation:none}}
.om-dark .send-hold{color:#ff9b91}
.material-table-wrap{max-width:100%;overflow-x:auto;margin:12px 0 24px;border:1px solid var(--line);border-radius:10px}
.material-table-wrap:focus-visible{outline:3px solid var(--brand);outline-offset:3px}
.material-table{width:100%;border-collapse:collapse;font-size:1rem;line-height:1.6;text-align:left}
.material-table caption{text-align:left;font-weight:700;padding:12px;background:var(--soft);color:var(--ink)}
.material-table th,.material-table td{padding:10px 12px;border-bottom:1px solid var(--line);white-space:nowrap}
.material-table th{font-weight:700;background:var(--surface)}
.material-table tr:last-child td{border-bottom:0}

/* Keep public lesson controls easy to select at the standard viewport. */
button:not([hidden]):not(.term),.review-bar a,.header a.brand{min-width:44px;min-height:44px}.header a.brand{display:inline-flex;align-items:center}.review-bar a{display:inline-flex;align-items:center}.review-bar{min-height:44px}
