:root{--ink:#16263b;--muted:#6c788b;--line:#e3e9f0;--blue:#2058d5;--navy:#102b55;--bg:#f5f7fb;--white:#fff;--cyan:#88d8ff;font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Microsoft YaHei",sans-serif;font-size:16px;color:var(--ink);background:var(--bg);line-height:1.65}*{box-sizing:border-box}body{margin:0}a{color:var(--blue);text-decoration:none}a:hover{text-decoration:underline}button,input,textarea,select{font:inherit}button,a,input,textarea,summary{outline-offset:4px}button{cursor:pointer}h1,h2,h3,p{margin-top:0}h1{font-size:2rem;line-height:1.3;letter-spacing:-.03em;margin-bottom:12px}h2{font-size:1.2rem;line-height:1.4;letter-spacing:-.02em}small,.small{font-size:.875rem}.muted{color:var(--muted)}.eyebrow{font-size:.75rem;font-weight:700;letter-spacing:.14em;color:var(--blue);margin-bottom:12px}.brand{display:flex;align-items:center;gap:12px;color:var(--ink);font-size:1.1rem;font-weight:800;letter-spacing:.05em;white-space:nowrap}.brand:hover{text-decoration:none}.brand b{font-weight:450}.brand-icon{width:34px;height:36px;border-radius:10px;background:var(--blue);color:white;display:grid;place-items:center;font-family:Georgia,serif;font-size:2rem;line-height:1}.sidebar{position:fixed;inset:0 auto 0 0;width:235px;background:white;border-right:1px solid var(--line);padding:32px 22px;display:flex;flex-direction:column;z-index:4}.nav-heading{color:#8b95a3;font-size:.75rem;letter-spacing:.08em;margin:42px 12px 12px}.sidebar nav a{display:flex;gap:14px;align-items:center;padding:12px;border-radius:9px;color:#59677b;font-size:.9375rem;margin-bottom:5px}.sidebar nav a.active{color:var(--blue);background:#edf3ff;font-weight:650}.nav-symbol{font-size:1.3rem;width:21px;text-align:center;line-height:1}.sidebar-bottom{margin-top:auto;display:grid;grid-template-columns:36px 1fr;gap:10px;padding:24px 6px 0;border-top:1px solid var(--line)}.sidebar-bottom strong{font-size:.875rem;display:block;overflow-wrap:anywhere}.sidebar-bottom span{font-size:.75rem;color:var(--muted);display:block}.avatar{width:34px;height:34px;border-radius:50%;background:#eaf0f8;display:grid;place-items:center;font-size:.875rem}.sidebar-bottom .account-link{grid-column:1/-1;font-size:.875rem;color:var(--muted)}.sidebar-bottom form{grid-column:1/-1}.text-button{padding:0;background:none;border:0;color:var(--muted);font-size:.875rem}.workspace{margin-left:235px}.topbar{height:72px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 46px;background:rgba(255,255,255,.7);font-size:.875rem;color:var(--muted)}.topbar strong{font-weight:500;color:var(--ink);margin-left:9px}.topbar-note{font-size:.75rem;letter-spacing:.15em}.main-content{max-width:1400px;margin:auto;padding:38px 46px 64px}.page-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:25px}.page-heading p{margin-bottom:0}.outline-label{border:1px solid #d5deeb;padding:5px 11px;border-radius:5px;letter-spacing:.06em;font-size:.75rem;color:#66738a;white-space:nowrap}.topic-banner{background:var(--navy);color:white;border-radius:15px;padding:30px 34px;display:grid;grid-template-columns:1.1fr 1fr;align-items:center;gap:24px}.topic-number{font-size:.75rem;color:#92b8ee;letter-spacing:.08em}.topic-banner h2{font-family:Georgia,"Times New Roman",serif;font-size:2.25rem;font-weight:400;margin:9px 0 7px;line-height:1.25}.topic-banner p{color:#aec1dc;font-size:.9375rem}.button{display:inline-flex;justify-content:center;align-items:center;gap:8px;padding:10px 20px;min-height:44px;border-radius:7px;border:1px solid #dbe3ef;background:white;color:var(--ink);font-weight:600;font-size:.9375rem;line-height:1.5}.button:hover{text-decoration:none;filter:brightness(.97)}.button.primary{background:var(--blue);border-color:var(--blue);color:white}.button.light{background:#f4f8ff;color:#183e79;border:0}.button.danger{color:#a22d32;border-color:#eccfd1;background:#fff8f8}.button.small{padding:6px 12px;font-size:.875rem;min-height:36px}.button.wide{width:100%;margin-top:16px}.topic-equation{padding:8px 18px}.topic-equation>.katex-display{font-size:1.15rem;margin:0 0 30px}.progress-caption{display:flex;justify-content:space-between;font-size:.75rem;color:#b9cce7}.progress-caption strong{font-weight:400;color:white}progress{display:block;appearance:none;width:100%;height:5px;margin-top:10px;border:0;background:#355074;border-radius:10px;overflow:hidden}progress::-webkit-progress-bar{background:#355074}progress::-webkit-progress-value{background:var(--cyan)}progress::-moz-progress-bar{background:var(--cyan)}.stats{display:grid;grid-template-columns:repeat(4,1fr);margin:24px 0;background:white;border:1px solid var(--line);border-radius:12px;padding:22px 0}.stats>div{padding:0 28px;border-right:1px solid var(--line)}.stats>div:last-child{border-right:0}.stats span{display:block;font-size:.875rem;color:var(--muted)}.stats strong{font-weight:550;font-size:1.8rem;line-height:1.4}.stats small{font-size:.75rem;color:var(--muted);margin-left:8px;font-weight:400}.panel{background:white;border:1px solid var(--line);border-radius:12px;padding:26px}.section-heading{display:flex;justify-content:space-between;align-items:center;gap:20px;padding:0 24px 18px}.section-heading h2{margin:0}.question-list{padding:22px 0 0;overflow:hidden}.tabs{display:flex;gap:6px;flex-wrap:wrap}.tabs a{font-size:.875rem;color:var(--muted);padding:6px 12px;border-radius:6px}.tabs a.selected{color:var(--blue);background:#edf3ff;font-weight:600}.question-row{display:flex;align-items:center;gap:20px;padding:17px 24px;border-top:1px solid #edf0f5;color:var(--ink)}.question-row:hover{background:#f9fbff;text-decoration:none}.question-index{background:#f2f5fa;border:1px solid #e7ecf3;border-radius:8px;width:40px;height:40px;display:grid;place-items:center;flex-shrink:0;font-size:.875rem;color:#566b89;font-variant-numeric:tabular-nums}.question-name{flex:1;min-width:0}.question-name strong{font-weight:550;font-size:1rem}.question-name span{display:block;color:var(--muted);font-size:.75rem;margin-top:3px}.row-status{font-size:.875rem}.row-action{font-size:.875rem;color:var(--blue);margin-left:16px}.badge{display:inline-block;border-radius:5px;padding:3px 9px;font-size:.75rem;font-weight:500;background:#f0f3f7;color:#66758b;white-space:nowrap}.badge.blue{background:#edf3ff;color:#2058d5}.badge.green{background:#e9f6ef;color:#28704b}.badge.amber{background:#fff4df;color:#976318}.compact{margin:17px 0 24px}.compact h1{font-size:1.7rem}.back-link{font-size:.875rem;color:var(--muted)}.practice-grid{display:grid;grid-template-columns:minmax(0,1fr) 270px;gap:24px;align-items:start}.problem-card{padding:30px}.problem-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:25px}.problem-body{font-family:Georgia,"Times New Roman",serif;font-size:1.2rem;line-height:1.85;overflow-wrap:break-word}.problem-body p{margin-bottom:20px}.problem-body table{border-collapse:collapse;margin:20px auto;font-family:inherit}.problem-body th,.problem-body td{border:1px solid #a6b3c7;padding:7px 22px;text-align:center}.latex-center{text-align:center}.answer-form{margin-top:32px;padding-top:24px;border-top:1px solid var(--line)}label{display:block;font-size:.9375rem;font-weight:550;margin:17px 0 7px}input:not([type=radio]):not([type=checkbox]):not([type=hidden]),textarea,select{width:100%;padding:11px 13px;border:1px solid #ccd6e3;border-radius:7px;background:white;color:var(--ink);min-width:0}input:focus,textarea:focus{border-color:var(--blue);outline:2px solid #c3d6ff;outline-offset:1px}input[type=radio],input[type=checkbox]{accent-color:var(--blue);width:18px;height:18px;flex-shrink:0}textarea{line-height:1.7}#id_answer{max-width:330px}fieldset{border:0;padding:0;margin:0 0 24px;min-width:0}legend{font-size:.875rem;color:var(--muted);margin-bottom:10px}.choice{display:flex;align-items:center;gap:14px;border:1px solid #dfe6ef;border-radius:8px;padding:14px;margin:10px 0;font-weight:400;cursor:pointer}.choice:has(input:checked){border-color:var(--blue);background:#f0f5ff}.choice-letter{font-size:.875rem;font-weight:700;color:#687a94}.choice .math{min-width:0;overflow:auto}.answer-form .button{margin-top:12px}.answer-form .small{margin-top:8px}.result{margin-top:26px;padding:22px;border-radius:9px;background:#f0f4fa;border:1px solid #dce5f3}.result h2{font-size:1rem}.result p{margin-bottom:8px}.result.correct{background:#f0f8f3;border-color:#d3eadc}.result.incorrect{background:#fffbf2;border-color:#efe1c3}.explanation{border-top:1px solid rgba(0,0,0,.08);padding-top:14px;margin-top:17px}.explanation summary{cursor:pointer;font-weight:600;font-size:.9375rem}.explanation .math{line-height:1.9;margin-top:17px}.problem-navigation{display:flex;justify-content:space-between;border-top:1px solid var(--line);margin-top:30px;padding-top:20px;font-size:.875rem}.practice-aside .panel{padding:22px}.practice-aside h2{font-size:1rem;margin-bottom:7px}.attempt-item{border-top:1px solid var(--line);padding:13px 0;display:grid;grid-template-columns:1fr auto;font-size:.875rem}.attempt-item time{grid-column:1/-1;font-size:.75rem;color:var(--muted)}.study-note{padding:28px 17px;color:var(--muted);font-size:.875rem}.study-note .math{line-height:2.3}.text-green{color:#25724c}.text-amber{color:#936217}.empty-state{text-align:center;padding:55px 25px}.empty-state h1{font-size:1.65rem;margin-top:18px}.empty-state p{color:var(--muted)}.empty-icon{font-size:2.8rem;color:var(--blue);margin-bottom:16px}.notice{padding:14px 18px;margin-bottom:22px;border-radius:8px;background:#eef6ef;border:1px solid #d6e7dc;color:#2c6546}.auth-shell{min-height:100vh;display:grid;grid-template-columns:1fr 1fr}.auth-story{background:#102b55;color:white;padding:42px 9%;display:flex;flex-direction:column;min-height:100vh}.auth-story .brand{color:white}.auth-story .brand-icon{background:#305ca0}.story-body{margin:auto 0;padding:55px 0}.story-body .eyebrow{color:#86bdf9}.story-body h1{font-size:2.45rem;line-height:1.45;margin-top:18px;margin-bottom:20px;font-weight:600}.story-body p{font-size:1rem;color:#b8c8e0;line-height:1.9}.auth-footer{font-size:.75rem;color:#819cbe;letter-spacing:.18em}.math-illustration{border-top:1px solid #335074;padding-top:26px;margin-top:42px;max-width:400px}.graph-label{font-size:.6875rem;letter-spacing:.14em;color:#839fc1}.math-illustration svg{display:block;width:100%;margin-top:12px}.grid-line{stroke:#244467;stroke-width:1;fill:none}.axis-line{stroke:#567293;stroke-width:1;fill:none}.curve-line{stroke:#8cd9ff;stroke-width:2.5;fill:none}.math-illustration text{font-family:Georgia,serif;fill:#bedbf4;font-size:20px;font-style:italic}.auth-form{display:flex;justify-content:center;align-items:center;padding:50px 45px;background:white}.form-inner{max-width:390px;width:100%}.auth-form h2{font-size:1.85rem;margin-bottom:12px}.auth-form form{margin-top:32px}.auth-form input{min-height:49px}.auth-switch{font-size:.875rem;text-align:center;margin-top:25px}.subtle-box{border-top:1px solid var(--line);color:#7c889c;font-size:.8125rem;text-align:center;padding-top:25px;margin-top:32px}.standalone{max-width:540px;margin:35px auto;padding:0 20px}.standalone .brand{justify-content:center;margin-bottom:30px}.registration{padding:32px}.registration h1{font-size:1.8rem}.helptext,.helptext li{font-size:.8125rem;color:var(--muted)}.helptext ul{padding-left:20px}.errorlist{padding:10px 14px 10px 30px;color:#a02b3b;background:#fff0f2;border-radius:6px;font-size:.875rem}.narrow{max-width:650px;margin:auto}.table-wrap{overflow:auto}table.records{width:100%;border-collapse:collapse;font-size:.875rem}table.records th{text-align:left;font-size:.75rem;font-weight:500;color:var(--muted);padding:12px;border-bottom:1px solid var(--line)}table.records td{padding:17px 12px;border-bottom:1px solid var(--line)}.pagination{display:flex;justify-content:space-between;align-items:center;margin-top:25px;font-size:.875rem}.teacher-tabs{margin:24px 0}.student-row{display:flex;align-items:center;gap:20px;padding:20px 0;border-bottom:1px solid var(--line)}.student-info{flex:1}.student-info span{display:block;font-size:.8125rem;color:var(--muted)}.student-actions{display:flex;gap:8px}.review-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:24px;align-items:start}.review-grid .problem-body{font-size:1.05rem}.review-note{background:#fff8e8;color:#795c27;padding:16px;border-radius:8px;font-size:.875rem;margin:18px 0}.review-form label[for=id_approved]{display:inline}.review-form .helptext{display:block}.draft-note{padding:14px 18px;background:#edf3ff;border:1px solid #d9e5ff;border-radius:8px;color:#456086;font-size:.875rem;margin-bottom:24px}.katex-display{overflow-x:auto;overflow-y:hidden;padding:5px 0}.math{overflow-wrap:break-word}.skip-link{position:fixed;top:-90px;left:10px;background:white;padding:10px;z-index:100}.skip-link:focus{top:10px}
@media(min-width:1600px){.main-content{padding-top:50px}}
@media(max-width:1150px){.sidebar{width:200px;padding:28px 16px}.workspace{margin-left:200px}.topbar{padding:0 28px}.main-content{padding:30px 28px 50px}.practice-grid{grid-template-columns:minmax(0,1fr) 220px;gap:18px}.topic-banner h2{font-size:1.9rem}.stats>div{padding:0 20px}.review-grid{grid-template-columns:1fr}.story-body h1{font-size:2rem}}
@media(max-width:850px){.sidebar{position:relative;width:auto;padding:16px 20px;border-right:0;border-bottom:1px solid var(--line)}.sidebar>.brand{margin-bottom:14px}.nav-heading,.sidebar-bottom,.sidebar .nav-symbol{display:none}.sidebar nav{display:flex;flex-wrap:wrap;gap:5px}.sidebar nav a{font-size:.875rem;padding:8px 12px;margin:0}.workspace{margin-left:0}.sidebar-bottom{display:flex;align-items:center;flex-wrap:wrap;margin-top:15px;padding:12px 0 0;gap:15px}.sidebar-bottom .avatar{display:none}.sidebar-bottom>div:not(.avatar){margin-right:auto}.sidebar-bottom span{display:none}.sidebar-bottom .account-link,.sidebar-bottom .text-button{font-size:.75rem}.topbar{height:48px;padding:0 22px}.main-content{padding:26px 22px 40px}.practice-grid{grid-template-columns:1fr}.practice-aside{display:grid;grid-template-columns:1fr 1fr;gap:16px}.practice-aside .study-note{padding:18px}.auth-story{padding:35px 8%}.auth-shell{grid-template-columns:.9fr 1fr}.auth-form{padding:40px 30px}.topic-equation{padding:0}.topic-equation>.katex-display{font-size:.95rem}.topic-banner{padding:26px}}
@media(max-width:600px){h1{font-size:1.75rem}.main-content{padding:22px 16px 36px}.topbar{padding:0 16px}.topbar-note{display:none}.page-heading{gap:12px;align-items:start}.page-heading .outline-label{display:none}.topic-banner{grid-template-columns:1fr;padding:25px;gap:5px}.topic-banner h2{font-size:1.9rem}.topic-equation{margin-top:13px}.topic-equation>.katex-display{display:none}.stats{grid-template-columns:repeat(2,1fr);padding:8px 0;gap:0;margin:18px 0}.stats>div{padding:12px 20px}.stats>div:nth-child(2){border-right:0}.stats>div:nth-child(-n+2){border-bottom:1px solid var(--line)}.stats strong{font-size:1.6rem}.section-heading{display:block;padding:0 16px 14px}.section-heading h2{margin-bottom:12px}.tabs{gap:2px}.tabs a{padding:5px 9px}.question-row{padding:16px;gap:12px}.question-index{width:34px;height:36px}.question-name strong{font-size:.9375rem}.row-action{display:none}.row-status{font-size:.75rem}.problem-card{padding:22px 18px}.problem-body{font-size:1.1rem;line-height:1.85}.practice-aside{grid-template-columns:1fr}.study-note{display:none}.choice{gap:10px;padding:12px 10px}.choice .katex{font-size:1em}.auth-shell{grid-template-columns:1fr}.auth-story{min-height:0;padding:25px}.story-body{padding:25px 0 0}.story-body h1{font-size:1.65rem;margin:12px 0}.story-body p,.math-illustration,.auth-footer,.story-body .eyebrow{display:none}.auth-form{padding:36px 25px}.auth-form h2{font-size:1.55rem}.auth-form .eyebrow{font-size:.6875rem}.registration{padding:24px}.panel{padding:21px}.panel.question-list{padding:21px 0 0}.empty-state{padding:35px 22px}.student-row{flex-wrap:wrap;gap:12px}.student-info{min-width:60%}.student-actions{width:100%}.review-grid{gap:18px}.review-grid .panel{padding:19px}.outline-label{font-size:.6875rem}}
