@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Noto+Sans+SC:wght@400;500;600;700&display=swap');
:root{--bg:#f6f8fc;--panel:#fff;--ink:#202e47;--muted:#8b97ab;--text:#64738b;--line:#e9edf4;--blue:#4c70ed;--soft:#eef2ff;--side:235px;font-family:'DM Sans','Noto Sans SC','Microsoft YaHei',sans-serif;color:var(--ink)}*{box-sizing:border-box}body{margin:0;background:var(--bg);font-size:16px;line-height:1.65}button,input,select,textarea{font:inherit}button{cursor:pointer;color:inherit}button:disabled{opacity:.5;cursor:not-allowed}a{color:var(--blue);text-decoration:none}button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible{outline:3px solid #a6b7ff;outline-offset:3px}svg{flex-shrink:0}h1,h2,h3,p{margin:0}h1{font-size:29px;letter-spacing:-1px;font-weight:600;line-height:1.4}h2{font-size:19px;font-weight:600}h3{font-size:16px;font-weight:600}small{font-size:13px}.muted{color:var(--muted)}.text{color:var(--text)}.eyebrow{font-size:11px;letter-spacing:2px;color:var(--blue);font-weight:700}.sidebar{width:var(--side);height:100dvh;position:fixed;inset:0 auto 0 0;background:white;border-right:1px solid var(--line);padding:32px 20px;display:flex;flex-direction:column;z-index:30}.brand{display:flex;align-items:center;gap:12px;margin:0 10px 42px}.brand-mark{width:42px;height:42px;background:var(--blue);color:white;border-radius:14px;display:grid;place-items:center;box-shadow:0 6px 14px #4c70ed25}.brand-name{font-size:23px;letter-spacing:3px;font-weight:700}.brand-sub{font-size:10px;letter-spacing:2px;color:#9aa6bb;line-height:1}.nav-caption{color:#a6afbf;font-size:12px;letter-spacing:1.5px;margin:0 16px 12px}.nav-link{width:100%;border:0;background:none;display:flex;align-items:center;gap:14px;text-align:left;padding:13px 17px;border-radius:12px;font-size:15px;color:#758198;margin-bottom:7px}.nav-link svg{width:21px;height:21px}.nav-link.active{background:var(--soft);color:var(--blue);font-weight:600}.nav-link:hover{background:#f6f8fc}.nav-link .nav-count{margin-left:auto;font-size:12px;background:#e2e9ff;padding:0 7px;border-radius:6px}.side-bottom{margin-top:auto}.space-note{background:#f7f9fd;border:1px solid var(--line);border-radius:14px;padding:16px;font-size:12px;color:var(--text);margin-top:20px}.space-note strong{display:block;color:var(--ink);font-size:14px;margin-bottom:5px}.space-note .line{height:4px;background:#e6ebf6;border-radius:4px;margin:15px 0 8px}.space-note .line span{display:block;width:36%;height:100%;background:#9bb0ff;border-radius:4px}.workspace{margin-left:var(--side)}.topbar{height:88px;padding:0 40px;display:flex;align-items:center;justify-content:space-between;gap:20px;border-bottom:1px solid var(--line);background:#ffffffa8}.breadcrumbs{font-size:14px;color:#8c97a9;display:flex;gap:14px;align-items:center}.breadcrumbs b{color:var(--ink);font-weight:500}.top-actions{display:flex;align-items:center;gap:22px}.local-pill{font-size:12px;color:#8c97a9;display:flex;gap:7px;align-items:center}.local-pill i{width:6px;height:6px;background:#69b89c;border-radius:50%}.avatar{width:34px;height:34px;border-radius:50%;background:#e9edfb;color:#7486bf;font-size:12px;display:grid;place-items:center}.icon-btn{border:0;background:transparent;padding:8px;display:inline-flex;align-items:center;justify-content:center;color:#8190aa;border-radius:9px}.icon-btn:hover{background:#eef2ff;color:var(--blue)}.icon-btn svg{width:20px;height:20px}main{padding:34px 40px 48px;max-width:1640px;margin:auto}.page-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:28px}.page-heading p{font-size:14px;color:var(--muted);margin-top:9px}.primary,.secondary,.plain-btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;border-radius:10px;padding:10px 17px;font-size:14px;line-height:1.5;white-space:nowrap;min-height:42px}.primary{background:var(--blue);border:1px solid var(--blue);color:#fff;box-shadow:0 4px 8px #4c70ed13}.primary:hover{background:#3e60d8}.secondary{background:white;border:1px solid var(--line);color:var(--text)}.secondary:hover{border-color:#b9c7f7}.plain-btn{border:0;background:none;color:var(--blue);padding:7px 0}.primary svg,.secondary svg,.plain-btn svg{width:17px;height:17px}.panel{background:var(--panel);border:1px solid var(--line);border-radius:20px;padding:24px}.panel-head{display:flex;justify-content:space-between;align-items:center;gap:14px;margin-bottom:21px}.panel-head .plain-btn{font-size:13px}.dashboard-grid{display:grid;grid-template-columns:minmax(0,1fr) 322px;gap:24px}.main-column,.right-column{display:flex;flex-direction:column;gap:24px;min-width:0}.hero{position:relative;overflow:hidden;min-height:245px;border-radius:20px;background:linear-gradient(115deg,#eaf0ff 0%,#edf1ff 65%,#e2eafd 100%);padding:30px 32px;border:1px solid #e3eafd;display:flex;align-items:center}.hero-copy{max-width:66%;z-index:1}.hero h2{font-size:27px;line-height:1.6;letter-spacing:-.5px;margin:8px 0}.hero p{font-size:14px;line-height:1.9;color:#7b8cae;margin-bottom:21px}.hero .primary{font-size:13px}.hero-art{position:absolute;width:270px;height:240px;right:-13px;top:8px;pointer-events:none}.hero-art svg{width:100%;height:100%}.stats-row{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.stat-card{background:white;border:1px solid var(--line);border-radius:15px;display:flex;align-items:center;padding:19px 18px;gap:15px}.stat-icon{width:42px;height:42px;display:grid;place-items:center;border-radius:12px;background:var(--soft);color:#6c88ee}.stat-icon.green{background:#e9f6f1;color:#58a993}.stat-icon.orange{background:#fff4e8;color:#d5a263}.stat-number{font-size:25px;line-height:1.3;font-weight:600;letter-spacing:-.7px}.stat-label{font-size:12px;color:var(--muted);margin-top:4px}.question-row{display:flex;align-items:center;gap:16px;padding:18px 0;border-bottom:1px solid var(--line)}.question-row:last-child{border-bottom:0;padding-bottom:0}.q-icon{width:42px;height:46px;border-radius:10px;background:#f2f5fd;display:grid;place-items:center;color:#8a9bc9}.q-info{min-width:0;flex:1}.q-title{display:block;border:0;background:none;text-align:left;font-size:14px;padding:0;width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#37455f}.q-meta{display:flex;gap:9px;align-items:center;flex-wrap:wrap;font-size:12px;color:#9aa5b5;margin-top:8px}.tag{display:inline-flex;align-items:center;background:#f0f3fc;border:1px solid transparent;color:#758ac2;font-size:12px;padding:2px 8px;border-radius:5px;line-height:1.7;max-width:100%}.tag.green{background:#edf8f3;color:#5aa68c}.tag.orange{background:#fff5ea;color:#c89761}.tag.purple{background:#f1eeff;color:#9981cc}.tag.gray{background:#f4f6f9;color:#8c99ac}.q-start{width:32px;height:32px;border:1px solid var(--line);border-radius:50%;background:white;color:#7d8caa;display:grid;place-items:center}.q-start svg{width:14px}.agent-orb{width:48px;height:48px;background:linear-gradient(135deg,#758aff,#bbcbff);border-radius:16px;box-shadow:0 5px 14px #6580ed22;display:grid;place-items:center;color:white;position:relative}.agent-orb:after{content:'';position:absolute;inset:5px;border:1px solid #ffffff65;border-radius:12px}.agent-card{background:linear-gradient(145deg,#fff,#f9faff)}.agent-title{display:flex;align-items:center;gap:13px;margin-bottom:20px}.agent-title p{font-size:12px;color:#99a3b7;margin-top:2px}.agent-bubble{background:#f0f3fc;border-radius:3px 14px 14px 14px;padding:16px;font-size:13px;line-height:1.95;color:#76849f}.agent-prompt{display:flex;align-items:center;justify-content:space-between;width:100%;text-align:left;background:white;border:1px solid var(--line);border-radius:9px;padding:11px 12px;font-size:12px;color:#8b98ae;margin-top:10px}.agent-card .secondary{width:100%;margin-top:20px;background:#f7f9ff;color:var(--blue);border-color:#e3e9fa}.network-preview{height:195px;position:relative;overflow:hidden}.network-preview svg{width:100%;height:100%}.network-caption{display:flex;justify-content:space-between;font-size:12px;color:#9aa4b5;padding-top:14px;border-top:1px solid var(--line)}.mini-draft{background:#fbfcfe;border:1px solid var(--line);border-radius:9px;height:80px;display:flex;align-items:center;justify-content:center;color:#94a0b7;font-family:'Cambria Math',serif;font-style:italic;font-size:22px;margin:14px 0;overflow:hidden}.mini-draft svg{width:100%;height:100%}.mini-link{display:flex;gap:10px;align-items:center;font-size:13px;color:#7b8aa1}.draft-small-title{font-size:13px;color:#5f6f88;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.section-label{font-size:12px;color:#95a0b4;margin-bottom:9px}.learning-path{display:flex;align-items:center;gap:10px;overflow:auto;margin-top:6px}.path-step{flex:1;min-width:115px;padding:15px;background:#fafbfe;border-radius:12px;border:1px solid var(--line);font-size:13px}.path-step strong{display:block;margin-bottom:4px;font-weight:500}.path-step span{color:#9ba5b6;font-size:12px}.path-step.active{border-color:#c8d3fc;background:#f5f7ff}.path-dot{width:7px;height:7px;background:#b7c3df;border-radius:50%;margin-bottom:12px}.path-step.active .path-dot{background:var(--blue)}.library-toolbar{display:flex;gap:12px;flex-wrap:wrap;margin-bottom:22px}.input-wrap{display:flex;align-items:center;gap:9px;background:white;border:1px solid var(--line);border-radius:10px;padding:0 14px;flex:1;min-width:210px;color:#9ba7bb}.input-wrap input{width:100%;border:0;background:none;padding:11px 0;outline:none;color:var(--ink);font-size:14px}.field,select{border:1px solid #e0e6f0;border-radius:10px;padding:10px 12px;background:#fff;color:var(--text);font-size:14px;min-height:42px;max-width:100%}select{appearance:none;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' stroke='%238090a5'%3E%3Cpath d='m2 4 4 4 4-4'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 12px center;padding-right:32px}.field{width:100%}textarea.field{resize:vertical;min-height:100px;line-height:1.8}.library-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.library-card{padding:22px;min-width:0;display:flex;flex-direction:column}.card-top{display:flex;justify-content:space-between;gap:10px;margin-bottom:17px}.question-stem{font-size:16px;line-height:1.95;overflow-wrap:anywhere;min-width:0}.question-stem img{max-height:180px!important}.library-card .question-stem{max-height:108px;overflow:hidden;margin-bottom:18px;flex:1}.card-bottom{display:flex;align-items:center;justify-content:space-between;border-top:1px solid var(--line);padding-top:15px;gap:10px;margin-top:13px}.card-bottom .secondary{font-size:12px;padding:7px 12px;min-height:34px}.chips{display:flex;gap:6px;flex-wrap:wrap}.list-footer{display:flex;justify-content:space-between;align-items:center;margin-top:22px;font-size:13px;color:var(--muted)}.pagination{display:flex;gap:8px}.empty-state{text-align:center;padding:70px 24px;color:var(--muted)}.empty-state svg{color:#a6b6e5;width:45px;height:45px;margin-bottom:16px}.empty-state h3{color:var(--ink);margin-bottom:8px}.empty-state p{font-size:14px;margin-bottom:22px}.chat-layout{display:grid;grid-template-columns:minmax(0,1fr) 310px;gap:22px;align-items:start}.chat-panel{min-height:640px;display:flex;flex-direction:column;padding:0;overflow:hidden}.chat-header{display:flex;justify-content:space-between;align-items:center;padding:20px 24px;border-bottom:1px solid var(--line);gap:10px}.chat-header .agent-title{margin:0}.chat-header .agent-orb{width:38px;height:38px;border-radius:12px}.chat-messages{flex:1;min-height:340px;max-height:calc(100dvh - 395px);overflow-y:auto;padding:24px;scroll-behavior:smooth}.chat-welcome{padding:30px 12px;text-align:center}.chat-welcome .agent-orb{margin:0 auto 18px;width:62px;height:62px}.chat-welcome h2{font-size:22px;margin-bottom:9px}.chat-welcome p{font-size:14px;color:var(--muted);max-width:430px;margin:0 auto 25px}.suggestions{display:flex;gap:8px;flex-wrap:wrap;justify-content:center}.suggestions button{border:1px solid var(--line);background:#fff;padding:9px 14px;border-radius:10px;font-size:13px;color:#7e8da8}.chat-message{margin-bottom:22px;display:flex;gap:11px}.chat-message.user{justify-content:flex-end}.message-body{max-width:90%;background:#f5f7fc;border-radius:3px 14px 14px;padding:15px 18px;font-size:14px;white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.95}.user .message-body{background:#eef2ff;color:#4d67ac;border-radius:14px 3px 14px 14px}.message-label{font-size:11px;color:#9aa7bb;margin-bottom:5px}.chat-composer{padding:16px 22px 20px;border-top:1px solid var(--line);background:#fff}.composer-box{border:1px solid #dfe6f3;border-radius:13px;background:#fafbfe;padding:12px}.composer-box textarea{resize:vertical;width:100%;min-height:54px;max-height:180px;border:0;outline:none;background:transparent;color:var(--ink);font-size:14px;line-height:1.8}.composer-bottom{display:flex;justify-content:space-between;align-items:center;font-size:11px;color:#a0aabd;gap:12px}.composer-bottom .primary{padding:7px 15px;min-height:34px;font-size:13px}.save-note{background:#eef8f4;color:#629e8c;border-radius:9px;padding:11px 13px;font-size:12px;display:flex;gap:8px;margin-top:14px}.mode-note{font-size:12px;line-height:1.9;color:#8c99af;margin-top:15px}.graph-layout{display:grid;grid-template-columns:minmax(0,1fr) 290px;gap:22px}.graph-panel{height:650px;padding:0;overflow:hidden;position:relative;background:radial-gradient(#dae1ef .8px,transparent .8px);background-size:23px 23px;background-color:white}.graph-controls{position:absolute;bottom:20px;left:20px;display:flex;gap:5px;background:white;border:1px solid var(--line);border-radius:10px;padding:4px;z-index:2}.graph-controls button{background:none;border:0;padding:7px 12px;border-radius:6px;font-size:14px}.graph-controls button:hover{background:var(--soft)}.graph-legend{position:absolute;top:20px;left:20px;display:flex;gap:14px;font-size:12px;color:#8796ae;pointer-events:none}.legend-dot{width:7px;height:7px;border-radius:50%;display:inline-block;margin-right:6px}.graph-svg{width:100%;height:100%;touch-action:none;display:block}.graph-svg g[role=button]{cursor:pointer}.graph-side{display:flex;flex-direction:column;gap:18px}.node-type{font-size:11px;letter-spacing:1px;color:var(--blue);margin-bottom:10px}.node-title{font-size:22px;margin-bottom:10px}.node-body{font-size:13px;line-height:1.95;color:var(--text);white-space:pre-wrap;overflow-wrap:anywhere}.source-item{border-left:2px solid #d5def9;padding-left:12px;font-size:12px;color:#9aa5b7;margin-top:15px}.source-item b{display:block;font-weight:500;color:#71819e;margin-bottom:4px}.node-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:20px}.node-actions button{font-size:12px}.node-form{margin-top:16px}.node-form label{display:block;font-size:12px;color:var(--muted);margin:12px 0 6px}.import-stepper{display:flex;align-items:center;gap:20px;margin-bottom:26px;font-size:13px;color:#a0aabd}.import-stepper span{display:flex;gap:8px;align-items:center}.import-stepper b{font-size:11px;width:23px;height:23px;border:1px solid #dbe2ef;border-radius:50%;display:grid;place-items:center;font-weight:500}.import-stepper .active{color:var(--blue)}.import-stepper .active b{background:var(--blue);color:white;border-color:var(--blue)}.upload-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px;margin-bottom:22px}.upload-zone{display:block;border:1.5px dashed #cfdaee;border-radius:14px;background:#fafcff;text-align:center;padding:30px 20px;cursor:pointer}.upload-zone:hover,.upload-zone.dragover{background:#f0f4ff;border-color:var(--blue)}.upload-zone svg{width:32px;height:32px;color:#90a6d9;margin-bottom:12px}.upload-zone h3{margin-bottom:7px;font-size:15px}.upload-zone p{font-size:12px;color:#9aa7be}.upload-files{display:flex;gap:8px;flex-wrap:wrap;margin-top:14px}.upload-thumb{border:1px solid var(--line);border-radius:8px;padding:6px;display:flex;align-items:center;gap:8px;font-size:11px;max-width:100%;color:#8390a8}.upload-thumb img{width:36px;height:44px;object-fit:cover;border-radius:4px}.upload-thumb span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:140px}.notice{background:#f4f7ff;color:#7c90bb;padding:13px 16px;border-radius:10px;font-size:13px;line-height:1.9;margin:16px 0}.notice.warn{background:#fff7eb;color:#b18b52}.import-actions{display:flex;justify-content:space-between;align-items:center;gap:14px;flex-wrap:wrap}.manual-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px}.form-label{display:block;font-size:13px;color:#7887a0;margin:16px 0 7px}.review-card{margin-top:18px;border:1px solid var(--line);border-radius:14px;padding:20px}.review-head{display:flex;justify-content:space-between;align-items:center;gap:12px}.review-head label{display:flex;gap:10px;align-items:center;font-size:14px}.review-fields{display:grid;grid-template-columns:1fr 1fr;gap:14px}.hint-editor{display:grid;grid-template-columns:1fr 1fr 1fr;gap:12px}.notebook-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}.notebook-card{padding:0;overflow:hidden}.notebook-preview{height:170px;background-color:#fbfcff;background-image:radial-gradient(#e0e6f0 .8px,transparent .8px);background-size:18px 18px;border-bottom:1px solid var(--line);padding:15px;width:100%;border:0;display:block;cursor:pointer}.notebook-preview svg{width:100%;height:100%}.notebook-content{padding:20px}.notebook-content h3{font-size:14px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.notebook-content p{font-size:12px;color:#9aa5b9;margin-top:7px}.mobile-nav{display:none}dialog{border:0;border-radius:20px;box-shadow:0 30px 100px #1b2b5630;padding:0;background:#fff;color:var(--ink);max-height:92dvh}dialog::backdrop{background:#24354b65;backdrop-filter:blur(4px)}.dialog-header{padding:20px 26px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;gap:12px}.dialog-header p{font-size:12px;color:var(--muted);margin-top:3px}.question-dialog{width:min(1000px,94vw)}.question-body{padding:26px;overflow-y:auto;max-height:calc(92dvh - 90px)}.question-top{display:flex;justify-content:space-between;gap:12px;align-items:center;margin-bottom:20px}.question-body .question-stem{font-size:20px;padding:25px;background:#f7f9ff;border:1px solid #edf1fb;border-radius:14px;margin-bottom:22px}.question-body .question-stem img{max-height:500px!important}.practice-grid{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:22px}.practice-hints{display:flex;flex-direction:column;gap:12px}.hint-card{border:1px solid #e2e8f6;border-radius:11px;padding:15px;font-size:14px;line-height:1.9}.hint-card h4{margin:0 0 7px;font-size:12px;color:var(--blue)}.hint-locked{background:#fafbfe;color:#a1acbe;font-size:13px;display:flex;gap:10px;align-items:center}.answer{padding:20px;border:1px solid #cce9df;background:#f3fbf7;border-radius:12px;margin-top:18px;font-size:17px;overflow-wrap:anywhere}.practice-side{background:#fafbfe;border:1px solid var(--line);border-radius:14px;padding:20px;align-self:start}.practice-side .primary,.practice-side .secondary{width:100%;margin-top:10px}.practice-side p{font-size:12px;color:#8a97ae;line-height:1.9;margin:10px 0}.option-list{display:grid;gap:10px;margin-bottom:20px}.approach-option{padding:14px;text-align:left;border:1px solid var(--line);background:white;border-radius:10px;font-size:14px;line-height:1.8}.approach-option.selected{border-color:#bdccff;background:#f6f8ff}.option-note{color:#8190ad;font-size:13px;margin-top:9px}.source-details{font-size:12px;color:#8997ad;margin-top:20px}.source-details summary{cursor:pointer}.source-details img{max-width:100%;max-height:600px;object-fit:contain;display:block;margin:10px auto}.draft-dialog{width:min(1200px,98vw);height:min(860px,96dvh);max-height:96dvh;display:none;flex-direction:column}.draft-dialog[open]{display:flex}.draft-header{padding:15px 22px;flex-shrink:0}.draft-toolbar{padding:10px 20px;display:flex;gap:10px;align-items:center;flex-wrap:wrap;border-bottom:1px solid var(--line);background:#fbfcff;flex-shrink:0}.tool-group{display:flex;align-items:center;gap:5px;padding-right:12px;border-right:1px solid var(--line)}.tool-group:last-child{border:0;margin-left:auto}.tool-btn{width:36px;height:36px;border:1px solid transparent;background:transparent;border-radius:8px;display:grid;place-items:center;color:#8291aa}.tool-btn.active{background:#e9efff;border-color:#dbe4ff;color:var(--blue)}.tool-btn svg{width:18px;height:18px}.color-btn{width:25px;height:25px;border-radius:50%;border:3px solid white;outline:1px solid #e0e6f0}.color-btn.active{outline:2px solid #a5b6ec}.draft-area{flex:1;min-height:0;overflow:auto;background:#eff2f7;overscroll-behavior:contain}.paper{background-color:#fff;background-image:radial-gradient(#dce3ee .8px,transparent .8px);background-size:24px 24px;margin:16px auto;position:relative;width:min(900px,calc(100% - 32px));height:1050px;box-shadow:0 2px 10px #203e5910}.paper canvas{width:100%;height:100%;touch-action:none;display:block}.draft-footer{padding:10px 22px;display:flex;align-items:center;justify-content:space-between;font-size:12px;color:#95a0b3;border-top:1px solid var(--line);flex-shrink:0;gap:12px}.save-state{color:#5ba48a}.settings-dialog{width:min(600px,94vw)}.settings-body{padding:25px;overflow:auto;max-height:calc(90dvh - 85px)}.settings-body p{font-size:14px;line-height:1.9;color:var(--text);margin:12px 0}.settings-body .secondary{margin:6px 5px 6px 0}.settings-body h3{margin:18px 0 6px}.settings-body code{font-size:12px;background:#f1f4fa;border-radius:5px;padding:3px 6px;overflow-wrap:anywhere}.toast{position:fixed;bottom:30px;left:calc(50% + var(--side)/2);transform:translateX(-50%) translateY(30px);padding:12px 22px;background:#263857;color:white;border-radius:12px;box-shadow:0 8px 40px #1b31502a;opacity:0;pointer-events:none;z-index:1000;font-size:14px;transition:.2s;max-width:90vw}.toast.show{opacity:1;transform:translateX(-50%) translateY(0)}.help-caption{font-size:12px;color:#9aa7bc;line-height:1.9;margin-top:12px}.danger-btn{color:#ca6b79}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}.busy-dot{animation:pulse 1.2s infinite}.backup-summary{background:#f7f9fd;padding:14px;border-radius:10px;font-size:13px;color:var(--text)}mjx-container{max-width:100%;overflow-x:auto;overflow-y:hidden}input[type=checkbox]{accent-color:var(--blue)}@keyframes pulse{50%{opacity:.3}}
@media(min-width:1550px){main{padding-top:42px}.dashboard-grid{grid-template-columns:minmax(0,1fr) 350px}.hero{min-height:270px}.hero-art{right:20px}.hero-copy{max-width:65%}}
@media(max-width:1200px){:root{--side:206px}.sidebar{padding:28px 13px}.topbar{padding:0 28px}main{padding:28px}.dashboard-grid{grid-template-columns:minmax(0,1fr) 282px;gap:18px}.main-column,.right-column{gap:18px}.hero{padding:25px;min-height:235px}.hero h2{font-size:24px}.hero-art{width:220px;right:-24px;opacity:.8}.hero-copy{max-width:72%}.stats-row{gap:10px}.stat-card{padding:16px 12px;gap:10px}.stat-icon{width:32px;height:36px}.stat-number{font-size:23px}.panel{padding:21px}.chat-layout{grid-template-columns:minmax(0,1fr) 270px}.graph-layout{grid-template-columns:minmax(0,1fr) 265px}.notebook-grid{grid-template-columns:1fr 1fr}.chat-header{padding:18px}.chat-header .secondary{font-size:12px;padding:8px 10px}}
@media(max-width:1000px){:root{--side:80px}.sidebar{padding:24px 12px}.brand{margin:0 7px 30px}.brand-mark{width:42px;min-width:42px}.brand-name,.brand-sub,.nav-caption,.nav-link span,.space-note{display:none}.nav-link{padding:13px;justify-content:center}.topbar{height:74px}.dashboard-grid{grid-template-columns:minmax(0,1fr) 275px}.hero-art{opacity:.6}.hero-copy{max-width:85%}.chat-layout{grid-template-columns:minmax(0,1fr) 245px}.graph-layout{grid-template-columns:minmax(0,1fr) 245px}.practice-grid{grid-template-columns:1fr 250px}}
@media(max-width:780px){main{padding:24px 20px}.topbar{padding:0 20px}.dashboard-grid{grid-template-columns:1fr}.right-column{display:grid;grid-template-columns:1fr 1fr}.right-column .agent-card{grid-column:1/-1}.agent-card .agent-prompt{display:none}.hero-copy{max-width:70%}.hero-art{opacity:1;right:0;width:230px}.chat-layout{grid-template-columns:1fr}.chat-side{display:none}.graph-layout{grid-template-columns:1fr}.graph-panel{height:490px}.graph-side{display:grid;grid-template-columns:1fr 1fr}.practice-grid{grid-template-columns:1fr}.practice-side{order:-1}.practice-side .primary,.practice-side .secondary{width:auto;margin-right:5px}.practice-side .mini-draft{display:none}.hint-editor,.review-fields{grid-template-columns:1fr}.chat-messages{max-height:calc(100dvh - 370px)}.chat-panel{min-height:calc(100dvh - 220px)}}
@media(max-width:600px){:root{--side:0px}.sidebar{display:none}.workspace{margin:0}.topbar{height:64px;padding:0 19px;background:white}.breadcrumbs{font-size:13px;gap:8px}.breadcrumbs .crumb-space{display:none}.top-actions{gap:10px}.local-pill{font-size:10px}.avatar{width:29px;height:29px}.top-actions .icon-btn{padding:5px}main{padding:23px 17px 100px}h1{font-size:25px}.page-heading{margin-bottom:21px;align-items:flex-start;gap:12px}.page-heading p{font-size:12px;line-height:1.9;margin-top:6px}.page-heading>.primary,.page-heading>.secondary{font-size:12px;padding:9px 11px;min-height:38px}.mobile-nav{position:fixed;display:flex;bottom:0;left:0;right:0;justify-content:space-around;background:#ffffffed;backdrop-filter:blur(15px);border-top:1px solid var(--line);z-index:40;padding:8px 4px calc(8px + env(safe-area-inset-bottom))}.mobile-nav button{border:0;background:transparent;color:#9aa6bc;display:flex;align-items:center;flex-direction:column;gap:4px;font-size:10px;padding:3px 8px}.mobile-nav button svg{width:21px;height:21px}.mobile-nav button.active{color:var(--blue)}.hero{padding:24px 22px;min-height:235px}.hero h2{font-size:23px}.hero p{font-size:12px;max-width:215px}.hero-copy{max-width:77%}.hero-art{width:190px;right:-40px;top:35px;opacity:.7}.hero .eyebrow{font-size:10px}.hero .primary{padding:9px 13px;font-size:12px}.stats-row{gap:8px}.stat-card{flex-direction:column;align-items:flex-start;gap:9px;padding:15px 13px}.stat-icon{width:30px;height:30px;border-radius:9px}.stat-icon svg{width:16px;height:16px}.stat-number{font-size:24px}.stat-label{font-size:11px}.panel{padding:19px;border-radius:16px}.panel-head{margin-bottom:18px}.panel-head h2{font-size:17px}.panel-head .plain-btn{font-size:12px}.question-row{gap:11px;padding:16px 0}.q-icon{width:33px;height:38px}.q-icon svg{width:17px}.q-title{font-size:13px}.q-meta{font-size:11px;gap:5px}.q-meta .tag{font-size:10px}.right-column{gap:15px}.right-column>.panel{padding:17px}.right-column .panel-head h2{font-size:14px}.network-preview{height:145px}.network-caption{font-size:10px;gap:5px}.mini-draft{height:70px}.draft-small-title{font-size:12px}.mini-link{font-size:11px}.agent-title{margin-bottom:15px}.agent-bubble{font-size:12px}.path-step{min-width:105px;font-size:12px;padding:13px}.library-grid{grid-template-columns:1fr;gap:14px}.library-toolbar{gap:9px}.library-toolbar .input-wrap{flex-basis:100%}.library-toolbar select{flex:1;min-width:0;font-size:12px}.library-card .question-stem{font-size:15px;max-height:120px}.tag{font-size:11px}.list-footer{font-size:12px}.pagination .secondary{padding:8px 11px;font-size:12px}.chat-header{padding:15px}.chat-header h3{font-size:14px}.chat-header .agent-title p{font-size:10px}.chat-header .secondary{font-size:11px;padding:7px 9px;min-height:34px}.chat-header .agent-orb{width:32px;height:32px}.chat-panel{min-height:calc(100dvh - 250px)}.chat-messages{padding:17px;min-height:270px;max-height:calc(100dvh - 420px)}.chat-welcome{padding:15px 0}.chat-welcome h2{font-size:19px}.chat-welcome p{font-size:12px}.suggestions button{font-size:11px;padding:8px 10px}.chat-composer{padding:12px}.message-body{max-width:96%;font-size:13px;padding:12px 14px}.composer-bottom{font-size:10px}.graph-panel{height:430px}.graph-side{grid-template-columns:1fr}.graph-legend{top:14px;left:12px;font-size:10px;gap:9px}.graph-controls{bottom:12px;left:12px}.graph-controls button{font-size:12px;padding:7px 10px}.upload-grid,.manual-grid{grid-template-columns:1fr;gap:15px}.upload-zone{padding:24px 16px}.import-stepper{gap:12px;font-size:11px}.import-stepper span{gap:5px}.import-stepper b{width:20px;height:20px;font-size:10px}.import-actions .primary,.import-actions .secondary{font-size:12px;padding:9px 12px}.notice{font-size:12px}.notebook-grid{grid-template-columns:1fr}.notebook-preview{height:200px}.question-dialog{width:100vw;max-width:100vw;max-height:100dvh;height:100dvh;border-radius:0;margin:0}.dialog-header{padding:15px 18px}.dialog-header h2{font-size:17px}.question-body{padding:18px;max-height:calc(100dvh - 82px)}.question-body .question-stem{font-size:17px;padding:18px}.question-top{flex-wrap:wrap}.question-top .secondary{font-size:12px;padding:8px 11px}.practice-side{padding:16px}.practice-side .primary,.practice-side .secondary{font-size:12px}.practice-side p{font-size:11px}.hint-card{font-size:13px;padding:13px}.draft-dialog{height:100dvh;max-height:100dvh;width:100vw;max-width:100vw;border-radius:0;margin:0}.draft-header{padding:12px 16px}.draft-header h2{font-size:16px}.draft-header p{font-size:10px}.draft-toolbar{padding:8px 12px;gap:6px}.tool-group{padding-right:6px;gap:3px}.tool-btn{width:32px;height:32px}.color-btn{width:21px;height:21px}.draft-toolbar input[type=range]{width:65px}.draft-footer{font-size:10px;padding:10px 14px}.paper{width:calc(100% - 20px);margin:10px auto;height:900px}.toast{left:50%;bottom:90px;font-size:12px;width:max-content;max-width:90vw}.settings-body{padding:20px}.settings-body p{font-size:13px}.settings-body .secondary{font-size:12px}}
.paper{height:auto;aspect-ratio:5/7}.paper canvas{position:absolute;inset:0}.composer-box:focus-within{border-color:#b8c7f4}.message-body{font-family:inherit}.review-card textarea{min-height:110px}.upload-zone:focus-within{outline:3px solid #b8c7f4}button.path-step{color:inherit}button.tag{cursor:pointer}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;animation:none!important;transition:none!important}}
