:root{font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;color:#20252e;background:#f4f6f9;font-synthesis:none;text-rendering:optimizeLegibility}*{box-sizing:border-box}body{margin:0}.app-shell{min-height:100vh}.sidebar{position:fixed;inset:0 auto 0 0;width:294px;background:#171d2a;color:#e9edf5;display:flex;flex-direction:column;z-index:5}.brand{height:82px;display:flex;align-items:center;gap:12px;padding:0 22px;border-bottom:1px solid #2a3241}.brand-mark{width:39px;height:39px;border-radius:12px;background:#dbeafe;color:#1d4ed8;display:grid;place-items:center;font-size:26px;font-weight:700}.brand strong{display:block;font-size:15px;letter-spacing:.08em}.brand small{display:block;color:#8994a8;font-size:11px;margin-top:4px}.progress-wrap{padding:19px 22px 16px;border-bottom:1px solid #2a3241}.progress-label{display:flex;justify-content:space-between;color:#9aa5b8;font-size:11px;margin-bottom:9px}.progress-label b{color:#e8edf7;font-weight:600}.progress-track{height:5px;background:#30394a;border-radius:8px;overflow:hidden}.progress-track span{display:block;height:100%;background:#77a9ff;width:.5%;border-radius:8px;transition:width .2s}#tree{overflow:auto;padding:12px 10px 20px;flex:1}.domain-group{margin-bottom:5px}.domain-group summary{list-style:none;cursor:pointer;display:flex;align-items:center;gap:10px;padding:10px 11px;border-radius:7px;color:#e5eaf3;font-size:13px;font-weight:600}.domain-group summary::-webkit-details-marker{display:none}.domain-group summary:before{content:"›";color:#8290a6;font-size:20px;transform:rotate(0);transition:transform .15s}.domain-group[open] summary:before{transform:rotate(90deg)}.domain-code{width:21px;height:21px;display:grid;place-items:center;border-radius:6px;background:#303b50;color:#a9c8ff;font-size:11px}.domain-group summary small{margin-left:auto;color:#8490a4;font-size:10px;font-weight:400}.day-list{padding-left:15px}.day-node{border-left:1px solid #354052;margin-left:10px;padding:1px 0 3px 9px}.day-select{display:flex;width:100%;gap:9px;align-items:center;border:0;background:transparent;color:#aab4c5;text-align:left;padding:7px 8px;border-radius:6px;cursor:pointer}.day-select span{font-size:10px;color:#7f8ba0;min-width:26px}.day-select b{font-size:11px;font-weight:500;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.day-node.selected{border-left:2px solid #78aaff}.day-node.selected .day-select{background:#27364d;color:#fff}.day-node.selected .day-select span{color:#9dc2ff}.sub-links{display:none;padding:0 0 4px 42px;gap:10px}.day-node.selected .sub-links{display:flex}.sub-links button{border:0;background:none;color:#92a0b5;font-size:10px;padding:2px 0;cursor:pointer}.sub-links button:hover{color:#fff}.sidebar-foot{padding:15px 20px;border-top:1px solid #2a3241;color:#8591a5;font-size:10px}.status-dot{display:inline-block;width:7px;height:7px;border-radius:50%;background:#56c69a;margin-right:6px}.version{float:right}.main{margin-left:294px;min-height:100vh}.topbar{height:94px;background:#fff;border-bottom:1px solid #e7eaf0;display:flex;align-items:center;justify-content:space-between;padding:0 36px}.eyebrow,.section-kicker,.rail-label{font-size:9px;letter-spacing:.13em;color:#8792a4;font-weight:700}.topbar h1{font-size:21px;margin:5px 0 0;font-weight:650;letter-spacing:-.025em}.top-actions{display:flex;align-items:center;gap:13px}.local-pill{font-size:11px;color:#667184}.btn{border:1px solid transparent;border-radius:7px;padding:10px 14px;font-size:11px;font-weight:650;cursor:pointer;transition:.15s}.btn-primary{background:#2859a8;color:#fff}.btn-primary:hover{background:#1e4789}.btn-secondary{background:#fff;border-color:#dce2eb;color:#445064}.btn-secondary:hover{background:#f6f8fb}.workspace{display:grid;grid-template-columns:minmax(0,1fr) 258px;gap:22px;padding:25px 28px 45px;max-width:1600px;margin:auto}.content-panel{background:#fff;border:1px solid #e7eaf0;border-radius:10px;min-width:0;min-height:calc(100vh - 145px);overflow:hidden}.tabs{display:flex;gap:26px;padding:0 28px;border-bottom:1px solid #e9edf2;height:57px;align-items:stretch}.tab{position:relative;border:0;background:none;color:#8b95a5;font-size:11px;font-weight:650;cursor:pointer}.tab.active{color:#2456a2}.tab.active:after{content:"";position:absolute;bottom:-1px;left:0;right:0;height:2px;background:#2c63b7}.count{color:#8290a5}.tab-panel{display:none;padding:28px}.tab-panel.active{display:block}.prose{font-size:13px;line-height:1.8;color:#424c5c}.prose h2{font-size:20px;letter-spacing:-.02em;color:#1f2937;margin:0 0 22px}.prose h3{font-size:14px;color:#26344a;margin:24px 0 9px}.prose p{margin:9px 0}.prose ul{padding-left:21px}.prose li{padding:3px 0}.numbered{padding:7px 10px;border-left:2px solid #d6e4fa;background:#f8faff}.course-footer{display:flex;align-items:center;justify-content:space-between;border-top:1px solid #edf0f4;margin-top:35px;padding-top:18px;color:#8993a3;font-size:10px}.exercise-list{display:grid;gap:10px;margin:17px 0 28px}.exercise{display:flex;gap:14px;padding:14px 15px;border:1px solid #e8edf3;border-radius:8px;color:#394456;font-size:12px;line-height:1.65}.exercise-no{font-size:10px;color:#4676ba;font-weight:700;padding-top:1px}.answer-head{display:flex;align-items:center;justify-content:space-between;margin:28px 0 12px}.answer-head h2{font-size:16px;margin:0}.answer-head p{font-size:11px;color:#8993a3;margin:5px 0 0}.save-state{font-size:10px;color:#a17a37}.save-state.saved{color:#23936b}.answer-editor{width:100%;min-height:230px;resize:vertical;border:1px solid #dfe5ed;border-radius:8px;padding:15px;font:13px/1.7 ui-monospace,SFMono-Regular,Consolas,monospace;color:#293445;outline:none}.answer-editor:focus{border-color:#8aafe6;box-shadow:0 0 0 3px #eaf2ff}.math-tools{display:grid;grid-template-columns:1fr 1fr;gap:13px;margin-top:13px}.math-entry,.calculator{border:1px solid #e7ebf1;border-radius:8px;padding:13px}.math-tools label{display:block;font-size:10px;font-weight:700;color:#697588;margin-bottom:9px}math-field{display:block;width:100%;min-height:43px;border:1px solid #dfe5ed;border-radius:6px;padding:8px;font-size:17px;--caret-color:#2b5da5;--selection-background-color:#dceaff}.math-entry .btn{margin-top:8px}.calc-row{display:flex;gap:6px}.calc-row input{min-width:0;flex:1;border:1px solid #dfe5ed;border-radius:6px;padding:9px;font-size:12px}.calc-result{margin-top:10px;background:#f6f8fb;border-radius:5px;padding:8px;font:12px ui-monospace,monospace;color:#34445b;min-height:32px}.calc-actions{display:flex;gap:13px;margin-top:8px}.text-button{border:0;background:none;color:#3768aa;font-size:10px;padding:0;cursor:pointer}.submit-row{display:flex;align-items:center;justify-content:space-between;margin-top:20px;gap:12px}.submit-row>div{display:flex;gap:8px}.muted{font-size:10px;color:#8b95a4}.correction-content .empty-state{text-align:center;padding:70px 15px;color:#8490a0}.empty-icon{width:45px;height:45px;border-radius:50%;display:grid;place-items:center;background:#eef5ff;color:#4778bb;font-size:20px;margin:0 auto 15px}.empty-state h2{font-size:15px;color:#344054}.empty-state p{font-size:11px}.correction-card{border:1px solid #e5eaf1;border-radius:8px;padding:18px;margin-bottom:14px}.correction-meta{font-size:10px;color:#8591a3;margin-bottom:15px}.correction-text{white-space:normal}.correction-card details{margin-top:15px;font-size:11px;color:#657187}.correction-card pre{white-space:pre-wrap;background:#f7f8fa;padding:12px;border-radius:6px}.right-rail{display:flex;flex-direction:column;gap:14px}.rail-card{background:#fff;border:1px solid #e7eaf0;border-radius:9px;padding:18px}.day-number{font-size:48px;line-height:1.1;font-weight:700;letter-spacing:-.06em;color:#2c5fa9;margin-top:17px}.day-card h3{font-size:14px;margin:8px 0 5px}.day-card>p{font-size:11px;color:#8993a3;margin:0}.rail-divider{height:1px;background:#edf0f4;margin:17px 0}.mini-stat{display:flex;justify-content:space-between;gap:8px;margin:10px 0;font-size:10px}.mini-stat span{color:#8a95a5}.mini-stat b{font-size:10px;color:#475467;text-align:right}.method-step{display:flex;align-items:center;gap:11px;margin-top:17px}.method-step>span{font-size:10px;color:#4676b7;font-weight:700}.method-step b{display:block;font-size:10px;color:#455064}.method-step small{display:block;color:#929baa;font-size:9px;margin-top:3px}.rail-note{background:#eef4fc;border:1px solid #dce8f8;border-radius:8px;padding:15px;color:#3f5f8b;font-size:11px}.rail-note p{font-size:10px;line-height:1.6;margin:7px 0 0;color:#6d819e}@media(max-width:1150px){.workspace{grid-template-columns:minmax(0,1fr)}.right-rail{display:grid;grid-template-columns:repeat(3,1fr)}.sidebar{width:250px}.main{margin-left:250px}}@media(max-width:800px){.sidebar{position:relative;width:100%;height:340px}.main{margin-left:0}.topbar{padding:15px 18px;height:auto;align-items:flex-start;gap:12px;flex-direction:column}.workspace{padding:14px}.right-rail{grid-template-columns:1fr}.top-actions{width:100%;justify-content:space-between}.tab-panel{padding:18px}.tabs{padding:0 17px;gap:17px}.math-tools{grid-template-columns:1fr}.submit-row{align-items:flex-start;flex-direction:column}.course-footer{gap:12px;align-items:flex-start;flex-direction:column}}.exercise-with-prompt{align-items:flex-start}.exercise-body{flex:1;min-width:0}.exercise-statement{white-space:pre-wrap}.prompt-context{margin-top:12px;padding-top:10px;border-top:1px solid #edf0f4}.prompt-context summary{cursor:pointer;color:#315f9e;font-size:11px;font-weight:650}.prompt-text{display:block;width:100%;min-height:210px;max-height:420px;resize:vertical;margin:10px 0;border:1px solid #dfe5ed;border-radius:7px;padding:12px;background:#f8fafc;color:#344054;font:11px/1.55 ui-monospace,SFMono-Regular,Consolas,monospace}.copy-prompt{margin-bottom:4px}.manual-result-box{padding:17px;border:1px solid #e5eaf1;border-radius:9px;background:#fbfcfe}.manual-result-box .answer-head{margin:0 0 12px}.manual-result-box .answer-editor{min-height:280px;background:#fff}.history-heading{margin:27px 0 13px}.history-heading h2{font-size:15px;margin:0;color:#344054}.exercise-body>.copy-prompt{margin-top:12px}.prompt-text[hidden]{display:none!important}.exercise-editor-intro{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:18px 0 14px}.exercise-editor-intro h2{font-size:17px;margin:0;color:#263449}.exercise-editor-intro p{font-size:11px;color:#8792a4;margin:5px 0 0}.exercise-list{display:grid;gap:16px;margin:16px 0 24px}.exercise-card{border:1px solid #e3e9f1;border-radius:10px;padding:16px;background:#fff;min-width:0}.exercise-card-head{display:flex;align-items:flex-start;gap:12px;padding-bottom:12px;border-bottom:1px solid #edf0f4}.exercise-card-head .exercise-no{flex:0 0 28px}.exercise-statement{white-space:pre-wrap;font-size:13px;line-height:1.7;color:#344054;min-width:0}.exercise-preview{min-height:88px;margin:13px 0 10px;padding:13px 15px;border:1px dashed #cbd6e5;border-radius:8px;background:#fbfcfe;color:#27364a;font-size:13px;line-height:1.8;cursor:text;overflow-wrap:anywhere}.exercise-preview:hover{border-color:#86a9d8;background:#f8fbff}.exercise-preview[hidden]{display:none}.exercise-preview p{margin:5px 0}.exercise-preview .answer-placeholder{color:#9aa4b2;font-style:italic}.exercise-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.exercise-actions .btn{font-size:10px;padding:8px 11px}.exercise-editor-wrap{margin-top:12px;border:1px solid #dbe3ee;border-radius:8px;overflow:hidden}.exercise-editor-wrap[hidden]{display:none}.toolbar-hint{font-size:10px;color:#8b95a4;margin-left:8px}.mathlive-answer-editor{min-height:220px;padding:16px;border:0;border-radius:0;background:#fff;font-size:19px;line-height:1.8;--caret-color:#2859a8;--selection-background-color:#dceaff}.exercise-preview-math{min-height:88px;margin:13px 0 10px;padding:13px 15px;border:1px dashed #cbd6e5;border-radius:8px;background:#fbfcfe;color:#27364a;font-size:17px;cursor:pointer}.exercise-preview-math:hover{border-color:#86a9d8;background:#f8fbff}.editor-help{padding:8px 12px;background:#f8fafc;color:#8490a0;font-size:10px;border-top:1px solid #edf0f4}.editor-actions{padding:10px;background:#f8fafc;border-top:1px solid #edf0f4}.math-workbench{display:grid;grid-template-columns:1fr 1fr;gap:13px;margin:18px 0 22px;padding:16px;border:1px solid #e1e7ef;border-radius:10px;background:#fafbfd}.math-workbench-head{grid-column:1/-1;display:flex;justify-content:space-between;align-items:flex-start;gap:12px}.math-workbench-head h3{font-size:14px;margin:0;color:#344054}.math-workbench-head p{font-size:10px;color:#8a95a5;margin:4px 0 0}.active-editor-label{font-size:10px;color:#3568a9;text-align:right}.math-toolbar{grid-column:1/-1;display:flex;gap:6px;flex-wrap:wrap;align-items:center}.exercise-editor-wrap>.math-toolbar{padding:9px;background:#f5f7fa;border-bottom:1px solid #e1e7ef}.math-toolbar button{min-width:34px;height:32px;padding:0 8px;border:1px solid #dbe3ed;border-radius:6px;background:#fff;color:#334155;font-size:12px;cursor:pointer}.math-toolbar button:hover{background:#edf4ff;border-color:#9bb8e1}.math-workbench .math-entry,.math-workbench .calculator{background:#fff}.global-copy-row{align-items:center;margin-top:18px}.global-copy-row .muted{max-width:360px;line-height:1.5}.global-copy-row>div{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end}@media(max-width:800px){.math-workbench{grid-template-columns:1fr}.math-workbench-head,.math-toolbar{grid-column:1}.exercise-editor-intro{align-items:flex-start;flex-direction:column}.global-copy-row>div{justify-content:flex-start}}.math-tools-dialog{width:min(920px,calc(100vw - 28px));max-width:920px;max-height:calc(100vh - 32px);overflow:auto;border:1px solid #dce4ef;border-radius:12px;padding:20px;background:#fff;color:#20252e;box-shadow:0 24px 80px #0f172a47}.math-tools-dialog::backdrop{background:#0f172a94;backdrop-filter:blur(2px)}.math-tools-dialog-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:14px}.math-tools-dialog-head h2{font-size:17px;margin:0;color:#263449}.math-tools-dialog .math-workbench{margin:0;border:0;padding:0;background:transparent}.open-math-tools{margin-left:8px}@media(max-width:650px){.math-tools-dialog{padding:14px}.math-tools-dialog .math-workbench{grid-template-columns:1fr}.math-tools-dialog .math-workbench-head,.math-tools-dialog .math-toolbar{grid-column:1}}.math-toolbar button{min-width:36px;height:34px;font-weight:600}.math-toolbar .open-math-tools{margin-left:auto}.mathlive-answer-editor:focus{outline:none;box-shadow:inset 0 0 0 2px #eaf2ff}.exercise-preview-math[read-only]{pointer-events:auto}.account-dialog{width:min(480px,calc(100vw - 28px));border:1px solid #dce4ef;border-radius:12px;padding:22px;background:#fff;color:#20252e;box-shadow:0 24px 80px #0f172a47}.account-dialog::backdrop{background:#0f172a94;backdrop-filter:blur(2px)}.account-dialog-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.account-dialog-head h2{font-size:18px;margin:6px 0 0;color:#263449}.account-explanation{font-size:12px;line-height:1.6;color:#687588;margin:18px 0}.account-fields{display:grid;gap:7px}.account-fields label{font-size:11px;font-weight:650;color:#475467;margin-top:7px}.account-fields input{width:100%;padding:11px;border:1px solid #dce3ed;border-radius:7px;font-size:13px}.account-fields input:focus{outline:2px solid #dceaff;border-color:#8aafe6}.account-actions{display:flex;gap:8px;margin-top:17px;flex-wrap:wrap}.account-error{font-size:11px;color:#b42318;background:#fff1f0;border-radius:6px;padding:9px}.logout-button{margin-top:16px}.top-actions{flex-wrap:wrap}.google-auth-separator{display:flex;align-items:center;gap:12px;margin:16px 0;color:#98a2b3;font-size:11px}.google-auth-separator:before,.google-auth-separator:after{content:"";height:1px;background:#e4e7ec;flex:1}.google-auth-button{display:flex;align-items:center;justify-content:center;gap:10px;width:100%;min-height:42px;padding:9px 12px;border:1px solid #d0d5dd;border-radius:7px;background:#fff;color:#344054;text-decoration:none;font-size:13px;font-weight:650;transition:background .15s,border-color .15s}.google-auth-button:hover{background:#f9fafb;border-color:#98a2b3}.google-auth-button svg{width:18px;height:18px;flex:none}.google-auth-button[hidden]{display:none}.sumethic-link{display:flex;align-items:center;gap:10px;min-height:58px;box-sizing:border-box;color:#aeb9ca;text-decoration:none;font-size:11px;letter-spacing:.02em;transition:background .18s ease,color .18s ease}.sumethic-link img{display:block;width:24px;height:24px;object-fit:contain;border-radius:5px;flex:0 0 24px}.sumethic-link strong{color:#e9edf5;font-weight:700;letter-spacing:.08em}.sumethic-link:hover,.sumethic-link:focus-visible{background:#222c3d;color:#fff;outline:none}.sumethic-link:focus-visible{box-shadow:inset 0 0 0 2px #77a9ff}.sumethic-link{gap:8px}.sumethic-link img{width:36px;height:36px;flex:0 0 36px;object-fit:contain;border-radius:0;margin-left:auto}.account-email-display{margin:18px 0 0;padding:12px 13px;border:1px solid #dce7f5;border-radius:7px;background:#f5f8fc;color:#344054;font-size:13px;font-weight:600;overflow-wrap:anywhere}.account-fields[hidden]{display:none}.programme-switch{padding:12px 20px 15px;border-bottom:1px solid #2a3241;display:grid;grid-template-columns:1fr;gap:7px}.programme-switch label{font-size:10px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:#9aa5b8}.programme-switch select{width:100%;padding:9px 10px;border:1px solid #3b4659;border-radius:6px;background:#222c3d;color:#eef3fb;font-size:12px;outline:none}.programme-switch select:focus{border-color:#77a9ff;box-shadow:0 0 0 2px #77a9ff33}.course-resources{margin-top:30px;padding:18px;border:1px solid #e3eaf3;border-radius:9px;background:#fbfcfe}.course-resources h3{margin:0 0 12px;color:#344054;font-size:13px}#resourceList{display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:8px}.course-resource{display:flex;flex-direction:column;gap:5px;padding:10px 12px;border:1px solid #e7ecf3;border-radius:7px;background:#fff;color:#315f9e;text-decoration:none;font-size:11px;line-height:1.45}.course-resource:hover{border-color:#9bb8e1;background:#f7faff}.course-resource small{color:#8792a4;font-size:9px}@media(max-width:800px){.programme-switch{padding:10px 18px}.course-resources{padding:13px}}.domain-code{width:auto;min-width:21px;padding:0 5px}
