@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+TC:wght@400;500;600;700;800&display=swap');
:root{font-family:'Noto Sans TC',sans-serif;color:#343449;background:#f8f9fc;font-synthesis:none;--purple:#7864ce;--ink:#343449;--muted:#9293a6;--line:#ececf3;--light:#f0ecfb;--green:#61a889}*{box-sizing:border-box}body{margin:0}button,input,textarea,select{font:inherit}button,a,input,textarea,select{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button{border:0;background:none;color:inherit}button:disabled{cursor:wait;opacity:.55}button:focus-visible,a:focus-visible{outline:3px solid #b5a6ee;outline-offset:3px}a{color:var(--purple);text-decoration:none}svg.icon{width:20px;height:20px;stroke:currentColor;stroke-width:1.7;fill:none;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}h1,h2,h3,h4,p{margin:0}small{font-size:12px}button{transition:background .15s,transform .15s}button:hover{background:#f0edf8}.layout{display:grid;grid-template-columns:238px 1fr;min-height:100vh}.sidebar{position:fixed;inset:0 auto 0 0;width:238px;background:#fff;border-right:1px solid var(--line);display:flex;flex-direction:column;padding:33px 20px 20px;z-index:20}.brand{display:flex;align-items:center;gap:11px;padding:0 11px;text-align:left}.brand-mark{background:var(--purple);color:#fff;border-radius:12px;width:39px;height:39px;display:grid;place-items:center;box-shadow:0 5px 12px #7864ce20;transform:rotate(-4deg)}.brand-mark svg{width:25px;height:25px}.brand strong{font-size:23px;letter-spacing:3px}.brand span.wordmark{font-size:12px;color:#aaa3bf;letter-spacing:1px;margin-left:7px}.tagline{font-size:11px;color:var(--muted);letter-spacing:1px;margin:13px 12px 35px}.nav{display:flex;flex-direction:column;gap:7px}.nav button{padding:12px 15px;display:flex;align-items:center;gap:13px;text-align:left;border-radius:9px;font-size:13px;color:#7c7c90}.nav button.active{background:#eeeafa;color:#7864c3;font-weight:600}.badge{margin-left:auto;background:#e7e0f6;color:#8a77bb;border-radius:6px;font-size:10px;padding:2px 7px}.side-label{font-size:10px;letter-spacing:1.3px;color:#a1a0b2;display:flex;align-items:center;justify-content:space-between;margin:30px 14px 13px}.side-label button{padding:0;display:flex}.side-label svg{width:15px;height:15px}.semester{font-size:11px;color:#858497;margin:0 12px 12px;display:flex;gap:6px;align-items:center}.semester svg{width:12px;height:12px}.course-nav{display:flex;align-items:center;gap:10px;padding:11px 15px;font-size:12px;text-align:left;width:100%;border-radius:8px;color:#66667b}.dot{display:inline-block;width:7px;height:7px;border-radius:50%;background:#9a89d8;flex-shrink:0}.dot.blue{background:#79a9d3}.dot.orange{background:#d9af76}.course-nav .icon{width:13px;height:13px;margin-left:auto;color:#b1aabb}.side-bottom{margin-top:auto}.side-note{margin:30px 4px 21px;padding:15px;background:#f7f5fc;border-radius:11px}.side-note p{font-size:11px;line-height:1.9;color:#9990ae}.side-note strong{font-size:12px;font-weight:500;color:#8b7daa;display:flex;align-items:center;gap:8px;margin-bottom:6px}.side-note svg{width:16px;height:16px}.profile{display:flex;gap:10px;padding:17px 9px 0;border-top:1px solid var(--line);align-items:center}.avatar{width:34px;height:34px;border-radius:50%;background:#ece6dc;color:#95856e;display:grid;place-items:center;font-size:13px}.profile strong{font-size:12px;font-weight:500}.profile p{font-size:10px;color:#aba5b5;margin-top:4px}.profile button{margin-left:auto;color:#9d98ab}.main{grid-column:2;min-width:0}.topbar{height:78px;border-bottom:1px solid var(--line);background:#fff;display:flex;align-items:center;justify-content:space-between;padding:0 38px}.breadcrumb{display:flex;gap:10px;align-items:center;color:#b0adbd;font-size:12px}.breadcrumb span:last-child{color:#747085}.breadcrumb .icon{width:15px;height:15px}.top-actions{display:flex;align-items:center;gap:21px}.search{display:flex;align-items:center;gap:8px;background:#f8f8fb;border:1px solid #f1f0f5;padding:8px 12px;border-radius:8px;color:#aaa8b7}.search .icon{width:15px;height:15px}.search input{border:0;outline:0;width:155px;background:transparent;font-size:11px;color:#676174}.search kbd{font:10px sans-serif;border:1px solid #e4e2ea;border-radius:4px;padding:2px 4px}.top-actions>button{display:flex;color:#aaa2b5}.top-actions>button .icon{width:18px;height:18px}.content{max-width:1510px;margin:0 auto;padding:34px 38px 40px}.greeting{display:flex;justify-content:space-between;align-items:center;margin-bottom:25px}.eyebrow{color:#a5a0b6;font-size:10px;letter-spacing:1.8px;margin-bottom:9px}.greeting h1{font-size:25px;font-weight:700;letter-spacing:1px}.greeting h1 .sun{color:#e7bf70;font-size:26px;margin-left:8px}.greeting p{color:#9793a5;font-size:12px;margin-top:10px;line-height:1.8}.button{display:inline-flex;align-items:center;justify-content:center;gap:8px;border-radius:8px;padding:11px 16px;font-size:12px;white-space:nowrap;border:1px solid #e8e5f0;background:white}.button.primary{background:#7864ce;border-color:#7864ce;color:white;box-shadow:0 4px 9px #7864ce14}.button.primary:hover{background:#6753ba;transform:translateY(-1px)}.button .icon{width:16px;height:16px}.hero{background:#efebfa;border:1px solid #e9e3f7;border-radius:15px;min-height:206px;display:flex;position:relative;overflow:hidden;padding:28px 30px;margin-bottom:24px}.hero-copy{position:relative;z-index:1}.pill{display:inline-flex;align-items:center;gap:6px;font-size:10px;border-radius:5px;padding:4px 8px;background:#ffffff90;color:#9480c5;letter-spacing:.4px}.pill .icon{width:12px;height:12px}.hero h2{font-size:22px;font-weight:600;letter-spacing:.8px;margin:13px 0 9px;color:#51456e}.hero p{font-size:12px;color:#9488aa;line-height:1.9}.hero .button{margin-top:20px;padding:8px 13px;font-size:11px;background:#fff;border:0;color:#776297}.hero-art{position:absolute;right:25px;top:1px;width:340px;height:220px}.stats{display:grid;grid-template-columns:repeat(4,1fr);gap:17px;margin-bottom:31px}.stat{background:#fff;border:1px solid var(--line);border-radius:11px;padding:18px;display:flex;align-items:center;gap:13px}.stat-icon{width:41px;height:41px;border-radius:10px;display:grid;place-items:center;background:#f0ebfb;color:#9c86d7}.stat-icon.green{background:#eaf5f0;color:#85b7a2}.stat-icon.blue{background:#edf2fa;color:#85a8d1}.stat-icon.orange{background:#fbf2e7;color:#cfaa76}.stat p{font-size:10px;color:#9793a6;margin-bottom:5px}.stat strong{font-size:23px;font-weight:600;line-height:1.2}.stat small{color:#aaa7b7;font-size:10px;margin-left:6px}.section-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:17px}.section-head h2{font-size:15px;font-weight:600;display:flex;gap:10px;align-items:center}.section-head h2 small{font-size:10px;font-weight:400;color:#a8a3b5}.text-button{font-size:11px;color:#9a91af;display:flex;align-items:center;gap:5px;padding:4px}.text-button .icon{width:13px;height:13px}.filters{display:flex;gap:7px}.filters button{font-size:10px;padding:6px 11px;border-radius:6px;color:#a29aaa}.filters .selected{background:#eae4f6;color:#8e79bd}.course-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px;margin-bottom:29px}.course-card{background:#fff;border:1px solid var(--line);border-radius:12px;overflow:hidden;cursor:pointer;transition:transform .2s,box-shadow .2s}.course-card:hover{transform:translateY(-3px);box-shadow:0 8px 28px #4c3d7110}.course-cover{height:107px;background:#eeebf8;position:relative;overflow:hidden;padding:19px 21px}.course-cover.blue{background:#eaf1f8}.course-cover.orange{background:#f7eee3}.course-symbol{width:43px;height:43px;background:#fff9;border-radius:11px;display:grid;place-items:center;color:#a58fcd}.blue .course-symbol{color:#85a5c7}.orange .course-symbol{color:#c4a06d}.course-symbol svg{height:25px;width:25px}.course-cover .course-label{position:absolute;bottom:14px;left:21px;font-size:8px;letter-spacing:1.8px;color:#a094b8}.cover-art{position:absolute;right:8px;top:5px;height:106px;width:137px;opacity:.62}.course-body{padding:17px 20px}.course-body h3{font-size:14px;font-weight:600;margin-bottom:8px}.course-body .meta{font-size:10px;color:#a39db1;display:flex;gap:10px}.progress-label{display:flex;align-items:center;justify-content:space-between;font-size:10px;color:#aaa1b6;margin-top:20px;margin-bottom:8px}.progress-label strong{font-size:11px;font-weight:500;color:#9f88ce}.progress{height:4px;background:#f0edf6;border-radius:10px;overflow:hidden}.progress>span{display:block;height:100%;background:#aa97d7;border-radius:10px}.blue .progress>span{background:#94b1cf}.orange .progress>span{background:#d7b784}.card-footer{border-top:1px solid #f3f1f7;margin-top:17px;padding-top:12px;display:flex;justify-content:space-between;align-items:center;font-size:9px;color:#aaa4b6}.card-footer .icon{height:13px;width:13px}.card-footer>span{display:flex;align-items:center;gap:4px}.card-footer .go{color:#9a87ba}.bottom-grid{display:grid;grid-template-columns:1.65fr 1fr;gap:23px}.panel{background:#fff;border:1px solid var(--line);border-radius:12px;padding:20px 23px}.panel .section-head{margin-bottom:12px}.panel .section-head h2{font-size:13px}.resource-row{display:flex;align-items:center;gap:12px;padding:14px 0;border-bottom:1px solid #f2f0f6;cursor:pointer}.resource-row:last-child{border:0;padding-bottom:3px}.file-icon{width:34px;height:39px;border-radius:7px;display:grid;place-items:center;background:#f1edfa;color:#a18ac6;flex-shrink:0}.file-icon.pdf{background:#fcf0ed;color:#cc9c91}.file-icon.youtube{background:#fcefed;color:#d2a092}.file-icon.web{background:#ecf4f8;color:#8baec6}.file-icon .icon{height:17px;width:17px}.resource-info{min-width:0;flex:1}.resource-info strong{font-size:11px;font-weight:500;display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.resource-info p{font-size:9px;color:#aaa3b6;margin-top:5px}.resource-row>small{font-size:9px;color:#aaa5b7}.ready-dot{height:5px;width:5px;background:#98b7a6;border-radius:50%;display:inline-block;margin-right:4px}.weak-intro{font-size:10px;color:#aaa3b4;line-height:1.8;margin-bottom:7px}.weak-row{padding:12px 0;display:flex;gap:10px;align-items:center}.weak-bullet{width:7px;height:7px;border-radius:50%;background:#dcad79}.weak-row strong{font-weight:500;font-size:11px;display:block}.weak-row p{font-size:9px;color:#b0a7b8;margin-top:4px}.weak-row .chip{margin-left:auto;color:#c49b66;background:#fbf3e7;font-size:9px;padding:3px 7px;border-radius:5px}.weak-row button{display:flex;color:#ad9fbf}.review-button{margin-top:9px;width:100%;padding:9px;font-size:10px;background:#f8f5fc;color:#a18aba;border:1px solid #eee8f6;border-radius:7px;display:flex;align-items:center;justify-content:center;gap:8px}.review-button svg{height:13px;width:13px}.footer-note{display:flex;justify-content:center;align-items:center;gap:7px;color:#b2abbf;font-size:10px;margin-top:26px}.footer-note svg{width:12px;height:12px}.empty{padding:40px 20px;text-align:center;color:#a49bae;font-size:13px;line-height:2}.empty .icon{width:34px;height:34px;margin-bottom:12px}.initial{display:grid;place-items:center;height:100vh;color:var(--purple)}.dialog-backdrop{position:fixed;inset:0;background:#24203255;z-index:100;display:grid;place-items:center;padding:24px;backdrop-filter:blur(3px)}.dialog{background:#fff;width:min(590px,100%);max-height:92vh;overflow:auto;padding:28px;border-radius:18px;box-shadow:0 25px 100px #2d224d30}.dialog-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:7px}.dialog h2{font-size:20px}.dialog-head button{display:flex;padding:5px}.dialog>p{font-size:12px;color:#9b92aa;line-height:1.8;margin-bottom:22px}.import-types{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;margin-bottom:22px}.import-types button{padding:13px 4px;border:1px solid var(--line);border-radius:9px;display:flex;flex-direction:column;align-items:center;gap:9px;color:#9d95ab;font-size:11px}.import-types button.active{border-color:#b7a7e2;background:#f4f0fc;color:#8970c3}label.field{display:block;font-size:12px;margin-bottom:16px;color:#81758f}label.field>input,label.field>textarea,label.field>select{display:block;width:100%;margin-top:7px;border:1px solid #e7e2ef;border-radius:8px;background:#fcfbfe;padding:11px 12px;color:#544a62;outline:none;font-size:12px}label.field>textarea{min-height:140px;resize:vertical;line-height:1.9}label.field>input:focus,label.field>textarea:focus{border-color:#b09dd9;box-shadow:0 0 0 3px #f3edfc}.field small{display:block;color:#afa2bc;font-size:10px;margin-top:6px;line-height:1.8}.dialog-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:20px}.error-text{font-size:12px;color:#c56c69;line-height:1.8;margin-top:10px}.hint{background:#f5f1fb;border:1px solid #eae2f7;color:#9c8bb5;padding:12px;border-radius:8px;font-size:11px;line-height:1.9}.dropzone{display:block;text-align:center;border:1px dashed #c9badd;background:#faf8fe;border-radius:10px;padding:28px;color:#a792c5;font-size:12px;line-height:2}.dropzone .icon{display:block;margin:0 auto 10px}.dropzone input{display:block;max-width:100%;font-size:11px;margin:12px auto 0}.settings-row{display:flex;justify-content:space-between;align-items:center;padding:15px 0;border-bottom:1px solid var(--line);font-size:12px}.settings-row span{color:#9b91ad}.settings-row code{font-size:10px;background:#f5f1fa;padding:6px;border-radius:5px}.toast-show{transform:translate(-50%,0)!important;opacity:1!important}#toast{position:fixed;bottom:28px;left:50%;transform:translate(-50%,20px);background:#514762;color:#fff;border-radius:9px;box-shadow:0 8px 25px #34254c25;padding:12px 20px;font-size:12px;opacity:0;pointer-events:none;transition:.2s;z-index:200;max-width:90%;line-height:1.8}.unit-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}.unit-card{background:#fff;border:1px solid var(--line);border-radius:12px;padding:24px;text-align:left}.unit-card h3{font-size:15px;margin:14px 0 7px}.unit-card p{font-size:11px;color:#a89caf}.unit-card .icon{color:#a58bc8}.unit-card .progress{margin-top:16px}.workspace-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:18px}.workspace-head h1{font-size:20px}.workspace-head p{font-size:11px;color:#9c91aa;margin-top:7px}.workspace{display:grid;grid-template-columns:1.05fr 1fr;gap:18px;min-height:660px;height:calc(100vh - 223px)}.source-panel,.scaffold{border:1px solid var(--line);border-radius:12px;background:#fff;min-width:0;overflow:hidden;display:flex;flex-direction:column}.source-tabs{display:flex;overflow:auto;border-bottom:1px solid var(--line);min-height:48px;flex-shrink:0}.source-tabs button{font-size:10px;white-space:nowrap;padding:14px 15px;color:#a194ae;border-bottom:2px solid transparent;display:flex;align-items:center;gap:6px}.source-tabs button.active{border-color:#9c83d0;color:#8567b7;background:#faf8fd}.source-tabs .icon{height:14px;width:14px}.source-toolbar{padding:10px 14px;background:#fcfbfe;border-bottom:1px solid var(--line);font-size:10px;color:#a79ab5;display:flex;justify-content:space-between;align-items:center;gap:8px}.source-toolbar input{width:58px;padding:4px;border:1px solid #e6dfee;border-radius:4px;color:#9984b3;font-size:10px}.source-content{overflow:auto;flex:1;padding:24px;line-height:2.1;font-size:13px;color:#7f718f;background:#faf9fc}.source-content h3{font-size:17px;color:#645571;line-height:1.7;margin-bottom:16px}.source-content iframe{width:100%;border:0;min-height:270px;display:block}.source-content.pdf-view{padding:0}.source-content.pdf-view iframe{height:100%}.chunk{background:#fff;border:1px solid #efe9f4;padding:20px;margin-bottom:14px;border-radius:8px;white-space:pre-wrap}.chunk small{display:block;color:#baacca;margin-bottom:9px;font-size:10px}.chunk.selected{border-color:#c5b2e3;box-shadow:0 0 0 2px #f1eafa}.mode-tabs{display:flex;border-bottom:1px solid var(--line);padding:0 5px;min-height:48px;flex-shrink:0}.mode-tabs button{flex:1;padding:13px 3px;font-size:10px;color:#aa9cb5;border-bottom:2px solid transparent;display:flex;align-items:center;justify-content:center;gap:5px}.mode-tabs button.active{border-color:#9d82cf;color:#8668b5}.mode-tabs .icon{width:14px;height:14px}.scaffold-body{flex:1;overflow:auto;padding:23px}.mode-heading{display:flex;justify-content:space-between;align-items:center;margin-bottom:7px}.mode-heading h3{font-size:14px;color:#7b668d}.mode-heading button{font-size:10px;color:#a18bb8}.mode-sub{font-size:10px;color:#b09fbc;line-height:1.9;margin-bottom:20px}.map-root{background:#eee7fa;border:1px solid #dfd1f3;border-radius:9px;padding:12px;text-align:center;color:#8b70b3;font-size:13px;margin-bottom:24px}.concept-list{border-left:1px solid #e3d9f0;margin-left:14px;padding-left:20px}.concept-node{position:relative;padding:13px 15px;border:1px solid #eae3f1;border-radius:9px;margin-bottom:14px;font-size:11px}.concept-node:before{content:'';position:absolute;left:-21px;top:23px;width:20px;height:1px;background:#e3d9f0}.concept-node strong{font-size:12px;font-weight:500}.concept-node .node-head{display:flex;align-items:center;justify-content:space-between;gap:8px}.score{font-size:9px;padding:3px 6px;border-radius:4px;background:#edf6f0;color:#8fb29c;white-space:nowrap}.score.medium{background:#fbf4e8;color:#c3a169}.score.low{background:#fbeded;color:#cb9797}.score.unknown{background:#f1eef6;color:#ad9ebc}.concept-node p{color:#b0a0ba;font-size:10px;line-height:1.9;margin-top:8px}.concept-node button{color:#a289ba;font-size:10px;margin-top:8px;padding:0}.chat-compose{border-top:1px solid var(--line);padding:13px 16px;flex-shrink:0}.context-label{font-size:9px;color:#b09dbe;margin-bottom:8px;display:flex;align-items:center;gap:5px}.context-label .icon{width:12px;height:12px}.chat-form{display:flex;gap:8px;background:#faf8fd;border:1px solid #e9e0f1;border-radius:8px;padding:7px}.chat-form textarea{width:100%;min-height:40px;max-height:100px;resize:vertical;border:0;outline:0;background:none;font-size:11px;line-height:1.7;color:#887296;padding:5px}.chat-form button{align-self:flex-end;background:#a089ca;color:#fff;padding:7px;border-radius:6px;display:flex}.chat-form button .icon{width:15px;height:15px}.chat-message{padding:15px;background:#f7f3fc;border:1px solid #eee6f6;border-radius:10px;font-size:12px;white-space:pre-wrap;line-height:1.9;color:#937ea3;margin-bottom:15px;overflow-wrap:anywhere}.chat-message.user{background:#eee6f9;margin-left:25px;color:#8a72a4}.chat-message small{font-size:9px;display:block;margin-bottom:5px;color:#b2a1c1}.citations{display:flex;gap:5px;flex-wrap:wrap;margin-bottom:16px}.citations button{font-size:9px;border:1px solid #e9dff1;padding:5px 7px;border-radius:5px;color:#a18ab6}.analogy-card{padding:20px;border-radius:11px;background:#f8f4fc;border:1px solid #eee3f5;margin-bottom:14px}.analogy-card h4{font-size:13px;color:#9a7bb4;margin-bottom:10px}.analogy-card p{font-size:12px;line-height:2;color:#aa94ba;white-space:pre-wrap}.flashcard{width:100%;min-height:230px;padding:30px;background:linear-gradient(135deg,#f5f0fc,#eee6f7);border:1px solid #e5d7f1;border-radius:13px;text-align:center;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:22px}.flashcard small{font-size:10px;color:#b49bc7}.flashcard p{font-size:16px;line-height:1.9;color:#9276a7}.flash-controls{display:flex;gap:9px;justify-content:center;margin-top:17px}.flash-controls .button{font-size:10px}.flash-count{text-align:center;font-size:10px;color:#b5a0c4;margin:14px}.review-list{display:grid;gap:14px}.review-item{background:#fff;border:1px solid var(--line);border-radius:12px;padding:22px;display:flex;align-items:center;gap:20px}.review-item>div{flex:1}.review-item h3{font-size:14px;margin-bottom:7px}.review-item p{font-size:11px;color:#a99ab4;line-height:1.9}.mobile-menu{display:none}.loader{padding:40px;text-align:center;color:#ad97c0;font-size:12px}.loader:before{content:'';width:22px;height:22px;display:block;margin:0 auto 14px;border:2px solid #eee6f6;border-top-color:#b295ca;border-radius:50%;animation:spin .9s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.status-progress{font-size:11px;color:#a892b8;padding:12px;border-radius:8px;background:#f8f4fc;margin:12px 0}.source-actions{display:flex;gap:6px}.source-actions button{font-size:9px;color:#a891b7}.full-resources{background:#fff;border:1px solid var(--line);border-radius:12px;padding:10px 24px}.full-resources .resource-row{padding:20px 0}.search-results{margin-bottom:26px}.demo-label{font-size:9px;color:#aa9a7d;background:#f6f1e7;padding:4px 7px;border-radius:5px;white-space:nowrap}.knowledge-map{background:white;padding:28px;border:1px solid var(--line);border-radius:14px;margin-bottom:20px}.knowledge-map h3{font-size:15px;margin-bottom:20px}.knowledge-nodes{display:flex;flex-wrap:wrap;gap:12px}.knowledge-nodes button{border:1px solid #e7dfee;border-radius:9px;padding:15px;display:flex;gap:12px;align-items:center;font-size:12px}.muted{color:#aaa0b6}.hidden{display:none!important}
@media(min-width:1500px){.content{padding-top:40px}.hero{min-height:230px}.hero-art{right:65px;transform:scale(1.1);top:13px}.course-cover{height:125px}.cover-art{right:24px;top:13px}.stat{padding:23px}.course-body{padding:21px}.hero h2{font-size:26px}.hero p{font-size:13px}}
@media(max-width:1180px){.sidebar{width:208px;padding-left:13px;padding-right:13px}.layout{grid-template-columns:208px 1fr}.content{padding:26px}.topbar{padding:0 26px}.hero-art{right:-50px;opacity:.65}.hero-copy{max-width:70%}.stats{gap:10px}.stat{padding:13px;gap:9px}.stat-icon{width:33px;height:33px}.stat strong{font-size:21px}.course-grid{gap:12px}.course-body{padding:16px}.bottom-grid{grid-template-columns:1.4fr 1fr;gap:16px}.panel{padding:18px}.workspace{grid-template-columns:1fr 1fr;gap:12px}.scaffold-body{padding:17px}.mode-tabs button{font-size:9px;gap:3px}.mode-tabs .icon{width:12px}}
@media(max-width:960px){.layout{grid-template-columns:180px 1fr}.sidebar{width:180px;padding-left:9px;padding-right:9px}.brand{padding:0 8px;gap:8px}.brand strong{font-size:20px}.brand .wordmark{display:none}.nav button{font-size:12px}.tagline{font-size:9px}.content{padding:22px}.topbar{padding:0 22px}.hero-art{width:280px;right:-55px;top:20px}.hero h2{font-size:19px}.stats{grid-template-columns:repeat(2,1fr)}.course-grid{grid-template-columns:repeat(2,1fr)}.bottom-grid{grid-template-columns:1fr}.unit-grid{grid-template-columns:repeat(2,1fr)}.workspace{height:auto;min-height:0;grid-template-columns:1fr}.source-panel{height:470px}.scaffold{min-height:560px;max-height:750px}.search input{width:120px}.top-actions{gap:12px}.course-grid .course-card:last-child{grid-column:auto}.greeting h1{font-size:22px}.greeting{gap:15px}.demo-label{display:none}}
@media(max-width:640px){.layout{display:block}.sidebar{transform:translateX(-100%);transition:transform .2s;width:235px;box-shadow:10px 0 40px #33264c18}.sidebar.open{transform:translateX(0)}.topbar{height:64px;padding:0 19px}.mobile-menu{display:flex;align-items:center;color:#9d8db2}.breadcrumb{font-size:10px;gap:6px}.breadcrumb>svg{display:none}.top-actions{gap:9px}.search{padding:7px 9px}.search input{width:88px;font-size:10px}.search kbd{display:none}.top-actions>button{display:none}.content{padding:24px 18px}.greeting{align-items:flex-start}.greeting h1{font-size:21px}.greeting p{font-size:10px;max-width:230px}.eyebrow{font-size:8px}.greeting>.button{font-size:10px;padding:9px 10px;margin-top:17px}.greeting>.button .icon{width:13px}.hero{padding:23px 20px;min-height:221px}.hero-copy{max-width:90%}.hero h2{font-size:19px}.hero p{font-size:10px;max-width:230px}.hero-art{width:195px;top:71px;right:-43px;opacity:.36}.hero .button{margin-top:18px}.stat{padding:15px 12px}.stat p{font-size:9px}.stats{margin-bottom:27px}.course-grid{grid-template-columns:1fr}.course-cover{height:100px}.cover-art{right:15px}.course-body{padding:18px 20px}.course-body h3{font-size:16px}.course-body .meta{font-size:11px}.course-grid{gap:17px}.section-head h2{font-size:14px}.section-head h2 small{display:none}.filters button{padding:5px 7px;font-size:9px}.panel{padding:20px}.unit-grid{grid-template-columns:1fr}.workspace-head{gap:10px}.workspace-head h1{font-size:17px}.workspace-head>.button{font-size:9px;padding:8px}.source-content{padding:16px}.source-panel{height:440px}.workspace{gap:18px}.review-item{padding:18px;gap:12px;flex-wrap:wrap}.review-item .button{font-size:10px;padding:8px 11px}.review-item h3{font-size:13px}.review-item p{font-size:10px}.dialog{padding:23px}.dialog-backdrop{padding:14px}.dialog h2{font-size:18px}.dialog>p{font-size:11px}.import-types button{font-size:10px}.footer-note{font-size:9px}.top-actions .search{max-width:148px}}
@media(prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important}}

.tool-filters{display:flex;flex-wrap:wrap;gap:8px;margin:18px 0}.tool-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.tool-card{display:flex;flex-direction:column;align-items:flex-start;text-align:left;background:white;border:1px solid #e7dfee;border-radius:14px;padding:24px;gap:14px}.tool-card:hover{border-color:#7160ce}.tool-card h2{font-size:18px;color:#574771}.tool-card p{font-size:13px;line-height:1.8;color:#736781}.tool-open{margin-top:auto;color:#7160ce}.tool-guide{line-height:1.9;color:#574771;margin-bottom:12px}.tool-sheet .hint{margin-bottom:24px}.tool-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.tool-sheet textarea{min-height:155px;resize:vertical;line-height:1.8;color:#40354e}.tool-sheet input{color:#40354e}.tool-sheet .field{min-width:0}.tool-footer{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap;margin-top:18px}.tool-footer>span{font-size:12px;color:#736781}.cornell-fields{grid-template-columns:1fr 2fr}.cornell-fields>.field:last-child{grid-column:1/-1}.cornell-fields>.field:not(:last-child) textarea{min-height:280px}.tool-card:focus-visible{outline:3px solid #7160ce;outline-offset:3px}@media(max-width:1100px){.tool-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:640px){.tool-grid,.tool-fields{grid-template-columns:1fr}.tool-card{padding:20px}.cornell-fields>.field:not(:last-child) textarea{min-height:155px}}

.math-content{white-space:pre-wrap;overflow-wrap:anywhere}.math-content .katex{white-space:normal}.katex-display{max-width:100%;overflow-x:auto;overflow-y:hidden;padding:6px 0}.katex-error{white-space:pre-wrap}.import-types{flex-wrap:wrap}

.auth-page{min-height:100vh;display:grid;place-items:center;padding:24px;background:#f6f3fb}.auth-card{width:min(100%,460px);background:white;border:1px solid var(--line);border-radius:20px;padding:36px;box-shadow:0 16px 60px #4430600c}.auth-card .brand{margin-bottom:30px}.auth-card h1{font-size:25px;color:#574771;margin-bottom:12px}.auth-card>p{line-height:1.8;font-size:13px;color:#736781;margin-bottom:24px}.auth-card .button{width:100%;justify-content:center}.auth-card .hint{margin-top:20px}.auth-card .field{color:#574771}.account-actions{display:flex;align-items:center;gap:10px;font-size:12px}.account-actions>span{max-width:110px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.account-actions button{color:#685299;border:1px solid #ddd2eb;border-radius:7px;padding:6px 9px;white-space:nowrap}.auth-card input{color:#40354e}.review-item h3 small{font-weight:normal;color:#736781}.auth-card .error-text{margin-bottom:14px}@media(max-width:960px){.topbar .search{display:none}.account-actions>span{display:none}}@media(max-width:640px){.auth-card{padding:26px}.account-actions{gap:5px;font-size:10px}.account-actions button{padding:5px}.topbar{padding:0 12px}.breadcrumb{gap:4px}}

:root{--reading-size:18px}.today-panel{margin-bottom:24px}.today-panel p{line-height:1.8;margin:12px 0}.today-actions,.practice-actions{display:flex;flex-wrap:wrap;gap:12px;margin:18px 0}.today-actions p{flex-basis:100%;margin:0}.today-goals{border-top:1px solid var(--line);padding-top:12px}.recent-panel{margin-top:24px}.evidence-line{font-size:13px;line-height:1.9;color:#625674;margin:20px 0}.evidence-line small{color:#746580}.practice-panel{max-width:860px;margin:auto}.practice-panel h2{line-height:1.8;margin:20px 0;font-size:21px}.practice-panel textarea{min-height:170px;line-height:1.8;font-size:var(--reading-size)}.practice-feedback,.answer-panel{background:#f6f3fb;padding:20px;border-radius:12px;margin:20px 0;line-height:1.9}.answer-panel{border-left:4px solid #8070bb}.note-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.scope-selector{display:flex;align-items:center;gap:8px;font-size:12px;margin-bottom:16px}.scope-selector select{max-width:100%;padding:8px;border:1px solid var(--line);border-radius:6px;background:white;color:#534366}.coverage-report{background:#eff6f0;border:1px solid #d5e5d7;border-radius:10px;padding:16px;font-size:12px;line-height:1.8;margin-bottom:16px;color:#365440}.source-evidence{margin-top:14px;font-size:12px;line-height:1.8}.source-evidence summary{cursor:pointer;color:#685299}.source-evidence blockquote{border-left:3px solid #c8b8dd;padding:12px;margin:10px 0;background:#faf8fc}.source-evidence small,.basis-label{font-size:11px;color:#786882}.basis-label{display:block;margin-top:14px}.source-toolbar{flex-wrap:wrap;gap:8px}.wide-dialog{width:min(1050px,95vw);max-width:1050px}.source-editor{display:grid;grid-template-columns:1fr 1fr;gap:18px}.source-editor iframe{width:100%;height:62vh;border:1px solid var(--line)}.source-editor:has(form:only-child){grid-template-columns:1fr}.source-editor textarea{min-height:220px}.formula-preview{border:1px solid #ddd0e9;background:#faf8fc;border-radius:8px;padding:18px;max-height:260px;overflow:auto;line-height:1.9}.source-content,.chat-message,.concept-node p,.analogy-card p,.tool-sheet textarea{font-size:var(--reading-size);line-height:1.9}.source-content{max-width:850px;margin:0 auto;width:100%}.wide-reading .source-content{max-width:none}.high-contrast .content,.high-contrast .content p,.high-contrast .field,.high-contrast .chat-message,.high-contrast .concept-node p,.high-contrast .course-body{color:#251d30}.high-contrast .hint{color:#40334e}.mobile-study-switch{display:none}.nav{max-height:44vh;overflow-y:auto}.tool-footer{position:sticky;bottom:0;background:white;padding:12px 0}.practice-panel>p{line-height:1.8}@media(max-width:640px){.note-list,.source-editor{grid-template-columns:1fr}.source-editor iframe{height:38vh}.mobile-study-switch{display:inline-flex}.today-panel .section-head{flex-wrap:wrap}.practice-panel{padding:18px}.account-actions{flex-wrap:wrap;justify-content:flex-end}.scope-selector{flex-direction:column;align-items:flex-start}.source-content,.chat-message{font-size:var(--reading-size)}}

.advanced-tabs,.advanced-shortcuts{display:flex;flex-wrap:wrap;gap:10px;margin:16px 0}.advanced-tabs{padding-bottom:12px;border-bottom:1px solid var(--line,#e5e7eb)}.advanced-tabs .button{white-space:normal}.diagnosis-item{margin:18px 0}.diagnosis-item textarea{min-height:120px}.diagnosis-item details{padding:12px 0}.analysis-detail{margin:16px 0;background:var(--surface,#faf9fe)}.analysis-detail p,.search-excerpt,.source-diff p{white-space:pre-wrap;overflow-wrap:anywhere}.insight-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(140px,1fr));gap:14px;margin:20px 0}.insight-grid>div{display:flex;flex-direction:column;gap:8px}.insight-grid strong{font-size:28px;color:var(--purple,#7051bd)}.cause-chip{display:inline-block;padding:6px 10px;border-radius:12px;background:#eee9fc;color:#493878;margin:4px}.source-diff{display:grid;grid-template-columns:1fr 1fr;gap:16px}.source-diff section{padding:12px;background:var(--surface,#f5f4f9);min-width:0}.exam-task{display:flex;justify-content:space-between;align-items:center;gap:16px;padding:14px 0;border-bottom:1px solid #e5e7eb}.exam-task label{flex:1}.unit-check{display:block;padding:8px}.report-reply textarea{min-height:110px}#content>.panel{margin-bottom:18px}@media(max-width:700px){.source-diff{grid-template-columns:1fr}.exam-task{align-items:flex-start;flex-direction:column}.advanced-tabs .button{flex:1 1 40%}.insight-grid{grid-template-columns:1fr 1fr}}

.note-ai-panel{margin:24px 0;padding:20px;border:1px solid #d9e3dd;border-radius:16px;background:#f7faf8}.note-ai-panel>p{line-height:1.7}.note-ai-field{padding:16px 0;border-top:1px solid #d9e3dd}.note-ai-field>div{line-height:1.8;overflow-wrap:anywhere}.note-ai-field .button{margin-top:12px}.note-ai-panel textarea{min-height:80px}.note-ai-preview{margin-top:20px}

.source-content.pdf-view{padding:12px;min-height:0;overflow:auto;overflow-anchor:none}.pdf-page{margin:0 0 18px;background:#fff;border:2px solid transparent;border-radius:5px;overflow:hidden}.pdf-page.selected{border-color:var(--purple)}.pdf-page figcaption{padding:6px 10px;background:#f1edf8;font-size:12px;color:#645571}.pdf-page img{display:block;width:100%;height:auto;background:white}.pdf-page-error{padding:12px;color:#984447}.pdf-loading{padding:20px}.source-content{min-height:0;scroll-behavior:auto}

.note-field{min-width:0}.note-field>h3{font-size:16px;margin-bottom:12px}.note-rendered{padding:16px;background:#faf9fd;border:1px solid var(--line);border-radius:10px;min-height:70px}.note-raw-editor{margin-top:10px}.note-raw-editor summary{cursor:pointer;color:#7864ce;font-size:13px}.note-raw-editor .field{margin-top:10px}.note-raw-editor textarea{font-family:inherit}.tool-fields>.note-field{min-width:0}

.credit-call{border-top:1px solid #ded6e8;padding:12px 0;overflow-wrap:anywhere}[data-credit-summary]{font-size:12px;color:#695282}
