:root{font-family:Arial,Helvetica,sans-serif;color:#1c2940;background:#f7f8fc;font-synthesis:none;text-rendering:optimizeLegibility}*{box-sizing:border-box}body{margin:0;min-height:100vh}.shell{width:min(1060px,100%);margin:auto;padding:18px 26px 12px}.topbar{height:54px;display:flex;align-items:center;justify-content:space-between}.brand{display:flex;align-items:center;gap:10px;text-decoration:none;color:inherit;font-size:17px;font-weight:800}.brand-mark{height:40px;width:40px;display:grid;place-items:center;border-radius:13px;background:#7558d8;color:#fff;font-size:13px}.brand small{display:block;margin-top:3px;font-size:9px;letter-spacing:1.2px;color:#939db0}.room-label,.install-button{border:1px solid #e7eaf1;background:#fff;border-radius:24px;padding:9px 13px;color:#7558d8;font-size:10px;font-weight:700;letter-spacing:.5px}.install-button{cursor:pointer}.hero{position:relative;overflow:hidden;margin:22px 0 17px;min-height:190px;padding:31px 35px;display:flex;align-items:center;border-radius:22px;background:#f0edff}.eyebrow{margin:0 0 8px;color:#8872db;font-size:10px;font-weight:700;letter-spacing:1.3px}.hero h1{margin:0 0 8px;font-size:clamp(22px,4vw,30px);letter-spacing:-.6px}.hero p:last-child{margin:0;color:#77839b;font-size:14px}.hero-spark{position:absolute;right:10%;top:22px;font-size:105px;color:#c8bdf2;opacity:.65}.mode-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin-bottom:16px}.mode-card{position:relative;min-height:145px;text-align:left;padding:17px 20px;border:1px solid #e9edf4;border-radius:18px;background:#fff;color:#1c2940;cursor:pointer;transition:transform .15s,box-shadow .15s}.mode-card:hover{transform:translateY(-2px);box-shadow:0 8px 22px #25375810}.mode-icon{display:grid;place-items:center;width:36px;height:36px;border-radius:12px;margin-bottom:10px;font-size:19px}.quiz-icon{background:#fff2d5;color:#d69a35}.practice-icon{background:#e3f5ef;color:#42aa82}.mode-card strong,.mode-card small{display:block}.mode-card small{margin-top:5px;color:#78869c;font-size:11px}.arrow{position:absolute;right:18px;bottom:18px;color:#a1aabb}.panel{padding:21px 23px;border:1px solid #e9edf4;border-radius:19px;background:#fff}.panel h2{margin:0 0 15px;font-size:19px}.select-row{display:grid;grid-template-columns:1fr 2fr;gap:12px}.select-row label{display:grid;gap:6px;color:#8994a7;font-size:11px}.select-row select{width:100%;min-height:42px;padding:9px;border:1px solid #e5e9f0;border-radius:10px;background:#fbfcfe;color:#1c2940;font:inherit}.chapter-note{margin-top:12px;color:#79859a;font-size:12px}.lesson-bar{display:flex;align-items:center;justify-content:space-between;margin:19px 0 13px;gap:10px}.back-button{border:0;background:transparent;color:#56647b;font-weight:700;cursor:pointer}.score-pill,.topic-pill{padding:8px 12px;border-radius:24px;background:#fff2d5;color:#bd8527;font-size:11px}.lesson-layout{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(250px,.7fr);align-items:start;gap:14px}.question-panel h1{margin:21px 0 10px;font-size:clamp(20px,3vw,26px);line-height:1.4}.question-meta{display:flex;align-items:center;justify-content:space-between;color:#8793a6;font-size:10px;font-weight:700;letter-spacing:.7px;gap:8px}.topic-pill{background:#f2efff;color:#7861d2;letter-spacing:0;text-align:right}.question-visual{display:grid;place-items:center;min-height:145px;margin-top:17px;border-radius:15px;background:#f7f8fc}.heart-flow{display:flex;align-items:center;gap:11px;color:#56647b;font-size:10px;font-weight:700}.heart-flow b{text-align:center}.heart-flow b:first-child{color:#e97889;font-size:29px}.heart-flow small{display:block;color:#1c2940;font-size:9px}.heart-flow span{color:#9da9ba;font-size:16px}.teacher-state{margin:9px 0 15px;color:#8490a3;font-size:11px}.answer-actions{display:flex;gap:9px;margin-top:10px}.answer-actions button,.next-button{flex:1;min-height:43px;padding:10px 12px;border-radius:11px;font-weight:700;cursor:pointer}.primary-button{border:0;background:#7558d8;color:white}.secondary-button{border:1px solid #e4e8f0;background:#fff;color:#7558d8}.primary-button:disabled,.mode-card:disabled{opacity:.58;cursor:wait}textarea{width:100%;resize:vertical;padding:12px;border:1px solid #e4e8f0;border-radius:11px;font:inherit;font-size:14px;color:#1c2940;outline-color:#9a87e9}.feedback{margin-top:15px;padding:14px;border-radius:13px;font-size:13px;line-height:1.5}.feedback p{margin:6px 0 0}.correct{background:#eaf8f1;color:#267a59}.incorrect{background:#fff5e5;color:#916426}.next-button{margin-top:13px}.answer-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.option-button{min-height:48px;padding:10px;border:1px solid #e4e8f0;border-radius:11px;background:#fff;color:#1c2940;text-align:left;cursor:pointer}.option-button.selected{border-color:#7558d8;background:#f0edff}.visual-panel{min-height:250px;text-align:center}.visual-content{min-height:180px;margin:15px 0 10px;padding:19px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;border-radius:16px;background:#f7f8fc}.visual-content small,.visual-panel>small{color:#8490a3;font-size:11px}.visual-star{color:#9a87e9;font-size:40px}.flow-node{font-size:12px;font-weight:700;color:#44536b}.flow-node:first-child{font-size:22px;color:#e97889}.flow-arrow{color:#a3aec0;font-size:17px}.status-message{position:sticky;bottom:10px;margin:13px auto 0;padding:12px 15px;max-width:700px;border:1px solid #f0d3ce;border-radius:12px;background:#fff6f4;color:#94493d;font-size:12px;line-height:1.45;text-align:center;box-shadow:0 5px 20px #25375812}.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}footer{text-align:center;padding:17px 4px 5px;color:#9aa4b5;font-size:10px}footer span{color:#aa97eb}@media(max-width:700px){.shell{padding:12px 14px 10px}.hero{min-height:155px;padding:22px}.hero-spark{right:3%;font-size:72px;top:30px}.mode-card{min-height:135px;padding:14px}.panel{padding:17px}.lesson-layout{grid-template-columns:1fr}.visual-panel{min-height:215px}.visual-content{min-height:145px}.question-meta{font-size:9px}.topic-pill{font-size:9px;padding:7px 8px}.answer-actions{gap:7px}.answer-actions button{font-size:12px;padding:9px 7px}}@media(max-width:370px){.shell{padding-left:10px;padding-right:10px}.mode-grid{gap:8px}.mode-card{padding:12px}.answer-actions{flex-direction:column}.select-row{grid-template-columns:1fr 1.6fr}}
.top-actions{display:flex;align-items:center;gap:8px}.text-button{border:1px solid #e7eaf1;border-radius:20px;padding:9px 12px;background:#fff;color:#6652bc;font:inherit;font-size:12px;font-weight:700;cursor:pointer}.chat-intro{max-width:690px;margin:54px auto 24px;text-align:center}.chat-avatar{display:grid;place-items:center;width:54px;height:54px;margin:0 auto 18px;border-radius:18px;background:linear-gradient(140deg,#8d75e6,#6047c6);color:#fff;font-size:17px;font-weight:800;box-shadow:0 8px 22px #7558d833}.chat-intro h1{margin:0 0 11px;font-size:clamp(25px,4vw,34px);letter-spacing:-.8px}.chat-intro>p:last-child{max-width:590px;margin:auto;color:#758198;font-size:14px;line-height:1.65}.chat-context{display:flex;justify-content:center;gap:12px;max-width:430px;margin:0 auto 24px;padding:12px 15px}.chat-context label{display:flex;align-items:center;gap:8px;color:#79859a;font-size:12px}.chat-context select,.chat-context input{min-height:35px;max-width:130px;padding:6px 9px;border:1px solid #e6e9f1;border-radius:9px;background:#fbfcfe;color:#26334a;font:inherit;font-size:12px}.chat-messages{display:flex;flex-direction:column;gap:12px;width:min(760px,100%);min-height:10px;margin:0 auto;padding:0 2px}.chat-message{max-width:min(82%,650px);padding:13px 16px;border-radius:17px;font-size:14px;line-height:1.65;white-space:pre-wrap;overflow-wrap:anywhere}.assistant-message{align-self:flex-start;border:1px solid #e8eaf1;background:#fff;border-top-left-radius:5px}.user-message{align-self:flex-end;background:#7558d8;color:#fff;border-top-right-radius:5px}.pending-message{color:#929bad;font-style:italic}.suggestion-row{display:flex;flex-wrap:wrap;justify-content:center;gap:8px;width:min(760px,100%);margin:24px auto 13px}.suggestion-chip{padding:9px 12px;border:1px solid #e3e6ef;border-radius:18px;background:#fff;color:#66738a;font-size:11px;cursor:pointer}.suggestion-chip:hover,.text-button:hover{border-color:#b9adeb;color:#6047c6}.chat-composer{position:sticky;bottom:8px;display:grid;grid-template-columns:1fr 42px;width:min(760px,100%);margin:0 auto;padding:10px 11px 26px;border:1px solid #e3e6ef;border-radius:18px;background:#fff;box-shadow:0 8px 28px #26375812}.chat-composer textarea{min-height:40px;max-height:150px;padding:10px 9px;border:0;resize:none;line-height:1.5}.chat-composer textarea:focus{outline:0}.chat-composer button{align-self:end;width:38px;height:38px;border:0;border-radius:12px;background:#7558d8;color:#fff;font-size:23px;cursor:pointer}.chat-composer button:disabled{opacity:.55;cursor:wait}.chat-composer small{position:absolute;left:20px;bottom:8px;color:#a0a8b7;font-size:9px}.practice-heading{margin:28px 0 18px}.practice-heading h1{margin:18px 0 5px;font-size:28px}.practice-heading p{margin:0;color:#78869c;font-size:13px}@media(max-width:700px){.topbar{gap:6px}.top-actions{gap:5px}.text-button{padding:8px;font-size:10px}.chat-intro{margin:38px auto 20px}.chat-context{margin-bottom:19px}.chat-message{max-width:90%;font-size:13px}.suggestion-row{justify-content:flex-start;flex-wrap:nowrap;overflow-x:auto;padding-bottom:3px}.suggestion-chip{white-space:nowrap}.chat-composer{bottom:4px}.chat-composer small{font-size:8px}}@media(max-width:390px){.brand{gap:7px;font-size:14px}.brand-mark{height:35px;width:35px}.brand small{font-size:8px}.top-actions .text-button{font-size:9px;padding:7px 6px}.chat-context{gap:7px;padding:10px}.chat-context label{gap:5px}}
.voice-panel{display:flex;flex-direction:column;align-items:center;gap:12px;width:min(560px,100%);margin:22px auto 18px;padding:23px 18px;border:1px solid #e8eaf1;border-radius:21px;background:#fff;text-align:center}.voice-button{display:flex;flex-direction:column;align-items:center;gap:8px;border:0;background:transparent;color:#4f3baa;font:inherit;font-size:13px;font-weight:700;cursor:pointer}.voice-icon{display:grid;place-items:center;width:76px;height:76px;border-radius:50%;background:linear-gradient(145deg,#8e76e8,#654cc9);color:#fff;font-size:30px;box-shadow:0 9px 24px #7558d844;transition:transform .2s}.voice-button:hover .voice-icon{transform:scale(1.06)}.voice-button:disabled{opacity:.65;cursor:wait}.stop-voice{min-height:42px;padding:9px 17px;border:1px solid #f0d7d4;border-radius:13px;background:#fff7f5;color:#aa5146;font:inherit;font-size:12px;font-weight:700;cursor:pointer}.voice-panel p{margin:2px 0;color:#66738a;font-size:13px;line-height:1.5}.voice-panel small{color:#9aa4b5;font-size:10px}.voice-panel audio{width:min(380px,100%);height:42px}.voice-transcript{width:min(650px,100%);gap:9px;margin-top:18px}.voice-line{display:flex;gap:8px;margin:0;padding:9px 12px;border-radius:12px;background:#fff;color:#657188;font-size:12px;line-height:1.55}.voice-line strong{flex:0 0 auto;color:#7558d8}.voice-student{background:#efedfb}.voice-fallback{width:min(650px,100%);margin:12px auto}.text-fallback{width:min(650px,100%);margin:18px auto;color:#8792a5;font-size:11px}.text-fallback summary{width:max-content;margin:auto;cursor:pointer}.text-fallback .chat-composer{position:relative;bottom:auto;margin-top:11px}.voice-panel:has(.stop-voice:not(.hidden)) .voice-icon{animation:voice-pulse 1.8s ease-in-out infinite}@keyframes voice-pulse{50%{box-shadow:0 0 0 12px #7558d822,0 9px 24px #7558d833}}@media(max-width:700px){.voice-panel{margin-top:18px;padding:20px 14px}.voice-icon{width:70px;height:70px}.voice-transcript{margin-top:12px}.text-fallback .chat-composer{position:relative;bottom:auto}}
.study-picker{width:min(880px,100%);margin:0 auto}.subject-picker{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:11px}.subject-card{display:flex;flex-direction:column;align-items:flex-start;gap:7px;min-height:115px;padding:17px;border:1px solid #e7eaf1;border-radius:15px;background:#fff;color:#29364d;text-align:left;cursor:pointer}.subject-card>span{font-size:22px}.subject-card strong{font-size:14px}.subject-card small{color:#7f8aa0;font-size:11px;line-height:1.4}.subject-card.selected,.lesson-choice.selected{border-color:#8c76df;background:#f5f2ff;box-shadow:0 0 0 2px #7558d814}.grade-choice{display:flex;align-items:center;gap:11px;margin-top:16px;color:#7e899e;font-size:12px}.grade-choice select{padding:8px 10px;border:1px solid #e5e8ef;border-radius:9px;background:#fbfcfe;color:#29364d;font:inherit}.lesson-picker{margin-top:22px}.mixed-note,.loading-note{margin:6px 0 13px;color:#76839a;font-size:12px;line-height:1.55}.lesson-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.lesson-choice{position:relative;display:flex;flex-direction:column;gap:6px;min-height:88px;padding:13px 40px 13px 14px;border:1px solid #e7eaf1;border-radius:13px;background:#fff;color:#28354c;text-align:left;cursor:pointer}.lesson-choice-title{font-size:12px;font-weight:700}.lesson-choice-summary{color:#7e899e;font-size:10px;line-height:1.45}.lesson-choice-arrow{position:absolute;right:14px;top:17px;color:#9b8add}.mode-picker{margin-top:21px;padding-top:19px;border-top:1px solid #edf0f5}.selected-lesson{padding:17px 19px;border-radius:15px;background:#f7f6fc}.selected-lesson h2,.selected-lesson h1{margin:7px 0;font-size:21px;line-height:1.3}.selected-lesson p{margin:7px 0;color:#6f7c93;font-size:12px;line-height:1.6}.selected-lesson ul{display:flex;flex-wrap:wrap;gap:7px 22px;margin:11px 0 0;padding-left:18px;color:#536178;font-size:11px}.study-actions{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:13px}.study-action{display:flex;flex-direction:column;align-items:flex-start;gap:7px;min-height:80px;padding:15px;border:0;border-radius:14px;color:#fff;text-align:left;font:inherit;font-weight:700;cursor:pointer}.study-action small{font-size:10px;font-weight:400;opacity:.88}.explain-action{background:#7056cd}.quiz-action{background:#398e77}.voice-topic{max-width:680px;margin:0 auto 15px}.voice-topic h1{font-size:20px}.voice-room .voice-panel{margin-top:14px}.visual-dialog{width:min(620px,calc(100% - 28px));max-height:min(82vh,760px);padding:20px;border:1px solid #e5e8f0;border-radius:21px;background:#fff;color:#1c2940;box-shadow:0 20px 70px #18233d55}.visual-dialog::backdrop{background:#1b233b88;backdrop-filter:blur(3px)}.visual-dialog-head{display:flex;align-items:center;justify-content:space-between}.visual-dialog-head h2{margin:0;font-size:19px}.close-visual{width:34px;height:34px;border:0;border-radius:50%;background:#f1effa;color:#6047c6;font-size:24px;cursor:pointer}.visual-dialog-body{margin:17px 0;padding:15px;border-radius:15px;background:#f7f8fc}.visual-caption{margin:0;color:#758198;font-size:11px;line-height:1.5}.blood-flow-diagram{display:grid;justify-items:center;gap:5px}.flow-card{position:relative;display:grid;grid-template-columns:34px 1fr;align-items:center;gap:3px 9px;width:min(390px,100%);padding:11px 12px;border:1px solid #e5e8f1;border-radius:12px;background:#fff}.flow-number{grid-row:span 2;display:grid;place-items:center;width:29px;height:29px;border-radius:50%;background:#efeaff;color:#7258ce;font-size:12px;font-weight:700}.flow-card strong{font-size:12px}.flow-card small{color:#78859a;font-size:10px;line-height:1.35}.flow-direction{color:#8e7add;font-size:18px;font-weight:700}.concept-map{display:grid;grid-template-columns:1fr 1fr;gap:9px}.concept-center{grid-column:span 2;padding:12px;border-radius:11px;background:#7258ce;color:#fff;text-align:center;font-size:13px;font-weight:700}.concept-node{padding:12px;border:1px solid #e4e7f0;border-radius:11px;background:#fff;color:#536178;font-size:11px;line-height:1.5}.loading-note{grid-column:1/-1}.voice-line{align-items:flex-start}.voice-line span{white-space:pre-wrap}.top-actions{min-width:100px;justify-content:flex-end}@media(max-width:700px){.subject-picker{grid-template-columns:1fr}.subject-card{min-height:auto;padding:12px;display:grid;grid-template-columns:30px 1fr;column-gap:10px}.subject-card>span{grid-row:span 2}.subject-card small{grid-column:2}.lesson-list{grid-template-columns:1fr}.study-actions{grid-template-columns:1fr}.study-action{min-height:68px}.study-picker{padding:17px}.grade-choice{justify-content:space-between}.visual-dialog{padding:16px}.flow-card{padding:9px}.concept-map{gap:7px}}
