*{box-sizing:border-box}body{margin:0;background:#f3f6fb;color:#152445;font:16px/1.55 system-ui,sans-serif}button,input,select,textarea{font:inherit}button,a{touch-action:manipulation}button{cursor:pointer;border:0;border-radius:12px;padding:12px 19px;background:#194ce5;color:#fff;font-weight:650}button:hover{filter:brightness(.95)}button:disabled{opacity:.5;cursor:default}button.secondary{background:#e9efff;color:#1943ba}input,select,textarea{width:100%;padding:12px;border:1px solid #c9d3e4;border-radius:10px;background:#fff;color:#152445}textarea{min-height:110px}label{display:block;margin:12px 0 5px}h1{font-size:clamp(28px,4vw,42px);line-height:1.15;letter-spacing:-1px;margin:8px 0 20px}h2{line-height:1.25}p{margin:8px 0 18px}.muted{color:#586880}.shell{display:grid;grid-template-columns:230px 1fr;min-height:100vh}aside{background:#fff;border-right:1px solid #e0e7f2;padding:28px 18px;position:sticky;top:0;height:100vh}.brand{font-size:29px;font-weight:850;color:#194ce5;letter-spacing:-1px;margin-bottom:36px}.burger{display:none}nav{display:grid;gap:8px}nav button{text-align:left;background:transparent;color:#586880}nav button.active{background:#edf2ff;color:#194ce5}main{padding:30px 5%;max-width:1400px;width:100%;margin:auto}.top{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:28px}.tag{font-size:13px;font-weight:700;background:#e9efff;color:#1943ba;border-radius:30px;padding:6px 12px;display:inline-block}.hero{background:#142e76;color:#fff;border-radius:24px;display:grid;grid-template-columns:1fr 220px;overflow:hidden;margin:24px 0}.hero .copy{padding:30px}.hero img{width:100%;height:280px;object-fit:cover;object-position:top}.hero button{background:#ffbc58;color:#18284b}.grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:18px}.card{background:#fff;border:1px solid #e1e7f0;border-radius:18px;padding:24px}.card h3{margin:8px 0}.row{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.spread{justify-content:space-between}.space{margin-top:24px}.progress{height:9px;border-radius:20px;background:#e2e9f6;overflow:hidden;margin:15px 0}.progress span{height:100%;background:#194ce5;display:block}.choice{display:block;width:100%;text-align:left;margin:10px 0;background:#f1f5ff;color:#152445;border:2px solid transparent}.choice.selected{border-color:#194ce5}.feedback{border-left:4px solid #196c55;padding:16px;background:#eaf8f1;border-radius:8px;margin:18px 0}.bubble{background:#eaf0ff;border-radius:16px;padding:16px;margin:12px 0;max-width:85%}.bubble.mine{margin-left:auto;background:#173fbe;color:#fff}.small{font-size:14px}.table-wrap{overflow:auto}table{border-collapse:collapse;width:100%;text-align:left}td,th{padding:14px;border-bottom:1px solid #e4e9f2;white-space:nowrap}a{color:#194ce5}.error{padding:14px;background:#fff0ed;color:#972f20;border-radius:10px}.success{color:#196c55}.stat{font-size:35px;font-weight:800}.steps{display:flex;gap:8px;flex-wrap:wrap}.steps span{padding:6px 12px;background:#e9efff;border-radius:20px;font-size:14px}.lesson{max-width:820px;margin:auto}.footer-note{margin-top:28px;font-size:14px;color:#66748a}details{margin-top:16px}summary{cursor:pointer;color:#194ce5}dialog{border:0;border-radius:20px;max-width:650px;width:95%;padding:28px}dialog::backdrop{background:#10204499}:focus-visible{outline:3px solid #ed940c;outline-offset:3px}@media(max-width:760px){.shell{display:block}.burger{display:block;background:none;border:none;font-size:24px;cursor:pointer;padding:4px 8px;color:#334}aside{position:sticky;top:0;z-index:100;height:auto;padding:12px 15px;border-bottom:1px solid #ddd;background:#fff}aside nav,aside .footer-note,aside .secondary{display:none}aside.open nav,aside.open .footer-note,aside.open .secondary{display:grid;gap:4px;margin-top:12px}aside.open nav{display:grid}.brand{margin:0 0 10px}nav{display:flex;overflow:auto}nav button{white-space:nowrap;padding:9px 12px}main{padding:22px 16px}.hero{grid-template-columns:1fr 115px}.hero .copy{padding:22px}.hero img{height:100%;min-height:260px}.grid{grid-template-columns:1fr}.top{align-items:flex-start}h1{font-size:30px}}@media(prefers-reduced-motion:no-preference){.card,.hero{animation:appear .25s ease-out}@keyframes appear{0%{opacity:.4;transform:translateY(5px)}to{opacity:1;transform:none}}}.rich-lesson{max-width:980px;margin:auto}.lesson-route{display:flex;gap:8px;overflow-x:auto;-webkit-overflow-scrolling:touch;padding:12px 0;scrollbar-width:none}.lesson-route::-webkit-scrollbar{display:none}.lesson-route button{white-space:nowrap;flex-shrink:0;font-size:13px;padding:8px 12px;min-width:auto}.lesson-route [aria-current=step]{outline:2px solid #2455dc}.lesson-figure{margin:20px 0;background:#edf3fb;border-radius:18px;overflow:hidden}.lesson-figure img{display:block;width:100%}.lesson-figure figcaption{padding:16px;font-size:14px}.concept-section{padding:20px;background:#f3f6fb;border-radius:14px;margin:16px 0}.concept-section summary{cursor:pointer;font-weight:700}.animated-scene{background:#edf3ff;border-radius:18px;padding:22px;margin:22px 0}.scene-turn{animation:scene-appear .35s ease-out;min-height:150px}.scene-turn strong{color:#234bc2}.rich-lesson section{scroll-margin-top:90px}@keyframes scene-appear{0%{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}@media(prefers-reduced-motion:reduce){.scene-turn{animation:none}html{scroll-behavior:auto}}.step-indicators{display:flex;gap:6px;flex-wrap:wrap;margin:12px 0 4px}.step-dot{width:36px;height:36px;border-radius:50%;border:2px solid #c8d6e5;background:#fff;font-size:13px;font-weight:700;color:#586880;cursor:pointer;padding:0;display:flex;align-items:center;justify-content:center}.step-dot.active{border-color:#194ce5;background:#194ce5;color:#fff}.step-dot.done{border-color:#27ae60;background:#e8f8ee;color:#27ae60}.step-dot.done.active{background:#27ae60;color:#fff}.step-label{font-size:13px;margin:0 0 12px}.step-card{min-height:40vh}.step-nav{display:flex;justify-content:space-between;gap:12px;margin:16px 0}.back-to-top{position:fixed;bottom:20px;right:20px;width:44px;height:44px;border-radius:50%;background:#194ce5;color:#fff;border:none;font-size:20px;cursor:pointer;box-shadow:0 2px 8px #0003;z-index:90;display:flex;align-items:center;justify-content:center}.scroll-arrows{position:fixed;right:16px;bottom:100px;display:flex;flex-direction:column;gap:8px;z-index:10}.scroll-arrow{width:44px;height:44px;border-radius:50%;background:#194de2;color:#fff;border:none;font-size:20px;font-weight:700;cursor:pointer;display:flex;align-items:center;justify-content:center;box-shadow:0 2px 8px #0000002e;transition:opacity .2s,transform .2s}.scroll-arrow:disabled{opacity:0;pointer-events:none;transform:scale(.7)}.scroll-arrow:focus-visible{outline:3px solid #eb9e28;outline-offset:3px}@media(max-width:800px){.scroll-arrows{right:12px;bottom:80px}.scroll-arrow{width:40px;height:40px;font-size:18px}}@supports (padding-bottom:env(safe-area-inset-bottom)){.scroll-arrows{bottom:calc(80px + env(safe-area-inset-bottom))}}@media(prefers-reduced-motion:reduce){.scroll-arrow{transition:none}}.dictate-btn{display:inline-flex;align-items:center;gap:6px;padding:8px 16px;border-radius:10px;background:#eaf0ff;color:#2046a9;border:1px solid #d0dcf0;font-size:15px;font-weight:600;cursor:pointer;margin-top:8px;transition:background .2s,color .2s}.dictate-btn:hover{background:#dce8ff}.dictate-btn.recording{background:#e74c3c;color:#fff;border-color:#c0392b;animation:pulse-record 1.5s infinite}.dictate-btn:disabled{opacity:.4;cursor:default}@keyframes pulse-record{0%,to{opacity:1}50%{opacity:.7}}.animated-scene-v2{background:#fff;border:1px solid #dce3ec;border-radius:20px;overflow:hidden;box-shadow:0 8px 30px #233b6010;margin:16px 0}.scene-stage{position:relative;background:#e8edf6}.scene-stage svg{display:block;width:100%;height:auto}.scene-stage .person{transition:opacity .3s}.scene-stage.playing .eye{animation:scene-blink 4s infinite}.scene-stage .speaking .head{animation:scene-nod 1.8s ease-in-out infinite}.scene-stage .speaking .gesture{animation:scene-gesture 2.2s ease-in-out infinite}.scene-stage .speaking .mouth{stroke-width:4}.scene-stage:not(.playing) .head,.scene-stage:not(.playing) .gesture{animation:none!important}.scene-dialogue{padding:18px 22px 6px}.scene-meta{display:flex;justify-content:space-between;font-size:12px;font-weight:700}.scene-speaker{color:#3156d8}.scene-counter{color:#68798b}.scene-subtitle{font-size:clamp(16px,2.2vw,19px);line-height:1.55;min-height:72px;margin:8px 0}.scene-meter{height:3px;border-radius:8px;background:#edf1f8;margin-bottom:4px}.scene-meter span{display:block;height:100%;background:#375ee2;border-radius:8px;transition:width .3s}.scene-controls{display:flex;flex-wrap:wrap;gap:8px;padding:12px 22px 16px}.scene-insight{margin:0;padding:14px 22px;background:#f0f5ff;border-top:1px solid #dce3ec}.scene-insight-label{font-size:11px;font-weight:800;letter-spacing:1px;color:#3156d8;text-transform:uppercase}.scene-insight p{font-size:14px;color:#3a506b;margin:6px 0 0;line-height:1.5}.scene-transcript{padding:14px 22px;border-top:1px solid #e4eaf2}.scene-transcript summary{cursor:pointer;font-weight:600;font-size:14px;color:#3156d8}.scene-transcript p{font-size:14px;line-height:1.6;border-left:3px solid transparent;padding:4px 0 4px 12px}.scene-transcript p.current{border-left-color:#3156d8;background:#f0f5ff;border-radius:0 8px 8px 0;padding:8px 12px}.scene-disclaimer{padding:8px 22px 16px;margin:0}.head{transform-box:fill-box;transform-origin:center bottom}.gesture{transform-box:fill-box;transform-origin:top left}.eye{transform-box:fill-box;transform-origin:center}@keyframes scene-blink{0%,43%,47%,to{transform:scaleY(1)}45%{transform:scaleY(.1)}}@keyframes scene-nod{0%,to{transform:rotate(-1deg)}50%{transform:rotate(2deg)}}@keyframes scene-gesture{0%,to{transform:rotate(0)}50%{transform:rotate(-10deg)}}@media(max-width:600px){.scene-dialogue{padding:14px 16px 4px}.scene-controls{padding:10px 16px 14px}.scene-insight{padding:12px 16px}.scene-subtitle{min-height:90px}}@media(prefers-reduced-motion:reduce){.scene-stage *{animation:none!important;transition:none!important}}.transcript-slideout{position:fixed;top:0;right:0;bottom:0;left:0;background:#00000073;z-index:50;display:flex;justify-content:flex-end}.transcript-panel{width:min(400px,85vw);height:100%;background:#fff;display:flex;flex-direction:column;animation:slide-in .25s ease-out}.transcript-header{display:flex;justify-content:space-between;align-items:center;padding:18px 20px;border-bottom:1px solid #e4eaf2;flex-shrink:0}.transcript-header strong{font-size:17px}.transcript-close{background:none;border:none;font-size:22px;color:#526d87;padding:4px 8px;cursor:pointer;min-height:44px;min-width:44px}.transcript-body{overflow-y:auto;padding:16px 20px;flex:1;-webkit-overflow-scrolling:touch}.transcript-turn{padding:12px 0;border-bottom:1px solid #f0f3f8}.transcript-turn:last-child{border-bottom:none}.transcript-speaker{font-size:12px;font-weight:700;color:#3156d8;text-transform:uppercase;letter-spacing:.5px}.transcript-turn p{margin:6px 0 0;font-size:15px;line-height:1.55}.transcript-insight{font-size:13px;color:#526d87;font-style:italic;margin-top:8px;padding-left:12px;border-left:2px solid #d0dcf0}@keyframes slide-in{0%{transform:translate(100%)}to{transform:translate(0)}}@media(max-width:600px){.transcript-panel{width:100%}}@supports (padding-bottom:env(safe-area-inset-bottom)){.transcript-body{padding-bottom:calc(16px + env(safe-area-inset-bottom))}}@media(prefers-reduced-motion:reduce){.transcript-panel{animation:none}}.card>button+button,.card>.secondary+button,.card>button+.secondary{margin-top:12px}.card .transcript-slideout+button{margin-top:12px}.choice-correct{background:#e6f7ed;border-left:4px solid #27ae60;padding:16px;border-radius:0 12px 12px 0;margin-top:14px}.choice-incorrect{background:#fef0e6;border-left:4px solid #e67e22;padding:16px;border-radius:0 12px 12px 0;margin-top:14px}.choice-correct strong,.choice-incorrect strong{display:block;font-size:13px;margin-bottom:6px}.choice-correct strong{color:#1e8449}.choice-incorrect strong{color:#c0610f}.choice-option{display:block;padding:14px 18px;background:#f5f8ff;border:2px solid #dce3ec;border-radius:12px;margin:8px 0;cursor:pointer;text-align:left;font-size:15px;line-height:1.5;transition:border-color .2s}.choice-option:hover{border-color:#3156d8}.choice-option.selected{border-color:#3156d8;background:#eaf0ff}.choice-option.correct-answer{border-color:#27ae60;background:#e6f7ed}.choice-option.wrong-answer{border-color:#e67e22;background:#fef0e6}.choice-option:disabled{cursor:default;opacity:.8}.feedback,.feedback p,.choice-correct,.choice-correct p,.choice-incorrect,.choice-incorrect p{color:#18304c}.loading-screen{display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:60vh;gap:16px}.spinner{width:36px;height:36px;border:3px solid #dce4f1;border-top-color:#194de2;border-radius:50%;animation:spin .8s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.loading-screen p{color:#526d87;font-size:15px;margin:0}.transcript-backdrop{position:absolute;top:0;right:0;bottom:0;left:0;background:#00000073}.transcript-slideout{position:fixed;top:0;right:0;bottom:0;left:0;z-index:50;display:flex;justify-content:flex-end}.transcript-panel{position:relative;z-index:1}.choice-option,.choice-option.selected,.choice-option.correct-answer,.choice-option.wrong-answer{color:#18304c!important}.transcript-panel{width:min(380px,80vw)}.transcript-close{font-size:26px;min-width:48px;min-height:48px;background:#f0f3f8;border-radius:50%;display:flex;align-items:center;justify-content:center}.feedback,.feedback p{color:#18304c}.chat-container{border:1px solid #dce3ec;border-radius:16px;overflow:hidden;background:#f5f7fb;margin:12px 0}.chat-messages{max-height:400px;overflow-y:auto;padding:16px;display:flex;flex-direction:column;gap:12px;-webkit-overflow-scrolling:touch}.chat-msg{display:flex;gap:8px;align-items:flex-end;max-width:85%}.chat-user{align-self:flex-end;flex-direction:row-reverse}.chat-ai{align-self:flex-start}.chat-avatar{width:32px;height:32px;border-radius:50%;background:#dce4f1;display:flex;align-items:center;justify-content:center;font-size:16px;flex-shrink:0}.chat-bubble{padding:12px 16px;border-radius:18px;line-height:1.5;font-size:15px}.chat-bubble p{margin:0;color:#18304c}.chat-user .chat-bubble{background:#194de2;border-bottom-right-radius:4px}.chat-user .chat-bubble p{color:#fff}.chat-ai .chat-bubble{background:#fff;border:1px solid #e4eaf2;border-bottom-left-radius:4px}.chat-start{text-align:center;padding:20px}.chat-input-bar{padding:12px;background:#fff;border-top:1px solid #e4eaf2;display:flex;flex-direction:column;gap:8px}.chat-input-bar textarea{border:1px solid #dce3ec;border-radius:12px;padding:10px 14px;font:15px system-ui;resize:none;min-height:44px}.chat-input-bar textarea:focus{outline:2px solid #194de2;border-color:transparent}.chat-actions{display:flex;gap:8px;justify-content:flex-end;align-items:center}.chat-finish{width:100%;padding:12px;background:#e6f7ed;color:#1e8449;border:none;border-top:1px solid #c8e6d8;font-size:15px;font-weight:600;cursor:pointer}.chat-finish:hover{background:#d4f0e0}.mia-badge{display:inline-block;background:#eb9e28;color:#0d1b4a;padding:4px 12px;border-radius:20px;font-size:11px;font-weight:800;letter-spacing:1px;margin-bottom:12px}.mia-setup{max-width:600px}.mia-setup h1{font-size:28px}.mia-examples{display:flex;flex-wrap:wrap;gap:8px;margin-top:16px}.mia-examples button{font-size:13px;text-align:left;padding:10px 14px}.mia-chat-page .chat-container{margin-top:12px}.mia-chat-page .chat-messages{max-height:50vh}.transcript-footer{padding:16px 20px;border-top:1px solid #e4eaf2;flex-shrink:0;background:#fff}.transcript-footer button{width:auto;padding:8px 20px;background:transparent;color:#526d87;border:1px solid #d0dcf0;border-radius:8px;font-size:13px;font-weight:600;cursor:pointer}.transcript-footer button:hover{background:#f0f3f8;color:#18304c}.transcript-panel{padding-top:90px}.transcript-footer button{touch-action:manipulation;-webkit-tap-highlight-color:transparent}.choice-correct,.choice-incorrect{margin-bottom:14px}.back-to-top,.scroll-arrows{z-index:8}.chat-actions{gap:12px}.chat-actions .dictate-btn{margin:0}.sim-analysis{background:#f0f5ff;border:1px solid #d0dcf0;border-radius:14px;padding:20px;margin:14px 0;font-size:15px;line-height:1.6;color:#18304c}
