:root{--bg:#f5f6ff;--white:#ffffff;--ink:#20213d;--muted:#5e6480;--line:#dfe2f2;--green:#4b36b1;--tint:#eeebff;--serif:"STIX Two Text",Cambria,Georgia,serif;--sans:Inter,"Segoe UI",Arial,sans-serif;font:15px/1.55 var(--sans);color:var(--ink);background:var(--bg);color-scheme:light}
*{box-sizing:border-box}body{margin:0}button,input,select{font:inherit}button{cursor:pointer}button:disabled{cursor:default;opacity:.48}button:focus-visible,a:focus-visible,summary:focus-visible{outline:3px solid #b38435;outline-offset:3px}input:focus,select:focus{outline:2px solid #438371;outline-offset:1px}
header{background:var(--white);border-bottom:1px solid var(--line)}.bar{max-width:1456px;margin:auto;min-height:72px;padding:0 clamp(20px,4vw,70px);display:flex;align-items:center;gap:52px}.brand{display:flex;align-items:center;gap:10px;font:600 29px/1 var(--serif);letter-spacing:-1.7px}.brand img{width:36px}.bar nav{display:flex;align-self:stretch;gap:26px;align-items:stretch}nav button{border:0;border-bottom:3px solid transparent;background:none;color:var(--muted);padding:4px 0 0;font-weight:600;font-size:14px}nav button.active{color:var(--green);border-color:var(--green)}#account{margin-left:auto;display:flex;align-items:center;gap:12px}.user-chip{display:flex;align-items:center;gap:8px;font-size:13px}.avatar{display:grid;place-items:center;width:28px;height:28px;border-radius:50%;background:#e3ebd7;color:#35583e;font-weight:700}
main{max-width:1456px;margin:0 auto;padding:32px clamp(20px,4vw,70px) 70px}.hero,.authart{position:relative;overflow:hidden;background:var(--green);color:#f8f6e9;border-radius:15px}.hero{padding:32px 38px;min-height:171px;display:flex;align-items:center;margin-bottom:26px}.hero>div,.authart>div{position:relative;z-index:1}.hero p,.authart p{color:#dcebe0;margin:7px 0 0}.graph{position:absolute;inset:0;width:100%;height:100%;pointer-events:none}.eyebrow,.label-caps{font:700 10.5px/1.4 var(--sans);text-transform:uppercase;letter-spacing:1.9px}.eyebrow{color:#c6dac7;margin-bottom:7px}.label-caps{color:var(--muted)}
h1,h2,h3,p{margin:0}h1,h2,h3{font-family:var(--serif);font-weight:500;letter-spacing:-.035em}h1{font-size:clamp(38px,4.2vw,64px);line-height:1.05}h2{font-size:29px;line-height:1.18}h3{font-size:21px;line-height:1.3}.muted,.hint{color:var(--muted)}.hint{font-size:13px}.layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(288px,31%);gap:24px;align-items:start}.panel,.qcard{background:var(--white);border:1px solid var(--line);border-radius:12px}.panel{padding:23px}.filter-head,.row,.qhead,.tabs,.actions,.item-row{display:flex;gap:10px;align-items:center}.filter-head,.qhead,.spread{justify-content:space-between}.filter-head{margin-bottom:16px}.filter-head strong{font-size:15px}.filters{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}.field{display:grid;gap:6px;min-width:0;font-size:13px;font-weight:650;color:#45544b}.field input,.field select,.search{min-width:0;width:100%;border:1px solid #cbd1c5;border-radius:6px;background:white;color:var(--ink);padding:9px 10px;font-weight:400}.field select{font-size:13px}.search{margin-top:13px;padding-left:13px}.btn,.iconbtn,.ghost,.tab,.pillbtn{display:inline-flex;align-items:center;justify-content:center;gap:7px;border-radius:7px;font-size:13px;font-weight:650;line-height:1.35}.btn{background:var(--green);color:white;border:1px solid var(--green);padding:10px 15px}.btn:hover:not(:disabled){background:#103d33}.secondary,.pillbtn{color:var(--green);background:#fffefa;border:1px solid #bfcbbc}.secondary:hover:not(:disabled),.pillbtn:hover{background:var(--tint)}.btn.selected{background:var(--tint);color:var(--green);border-color:#c4d4c3}.ghost{border:0;background:none;color:var(--green);padding:5px 4px}.ghost:hover{text-decoration:underline}.iconbtn{border:1px solid var(--line);background:transparent;color:var(--muted);width:31px;height:31px}.icon{vertical-align:middle;width:17px;height:17px;flex-shrink:0}.result-head{margin:24px 0 13px}.count{color:#5d6b60;font-size:13px}.cards{display:grid;gap:13px}.qcard{overflow:hidden}.qhead{padding:17px 20px 0;align-items:flex-start}.meta{display:flex;flex-wrap:wrap;align-items:center;gap:8px;font-size:12px;color:var(--muted)}.qid{font:600 11px/1.4 Consolas,monospace;letter-spacing:.5px;color:#61766b}.tag{border-radius:4px;padding:3px 8px;font-weight:650;font-size:11px;background:#ebefdf;color:#4d603c}.tag.standard{background:#f5ead2;color:#735623}.tag.challenge{background:#efe6ee;color:#745073}.qbody{padding:11px 20px 16px;min-height:60px}.qbody .rich{font:18px/1.55 var(--serif)}.rich{white-space:pre-wrap;overflow-wrap:anywhere}.rich math,.eq-embed math{font-family:"Cambria Math",math;font-size:1.14em;vertical-align:middle;margin:0 2px}.rich{overflow-x:auto}.qfoot{padding:8px 20px;border-top:1px solid #e8eae2;background:#fcfcf7;display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:9px}.tabs{gap:4px}.tab{border:0;padding:6px 9px;background:transparent;color:var(--muted);font-size:12px}.tab.on{background:var(--tint);color:var(--green)}.aside{position:sticky;top:14px}.aside .panel{padding:23px}.aside-title{display:flex;align-items:center;gap:10px}.book-icon{color:var(--green);display:grid;place-items:center;background:var(--tint);width:35px;height:35px;border-radius:8px}.aside-title h2{font-size:25px}.stack{display:grid;gap:15px}.top-line{border-top:1px solid var(--line);margin-top:17px;padding-top:17px}.empty{text-align:center;padding:24px 16px;background:#f6f7ee;border:1px dashed #cbd3bf;border-radius:8px;color:var(--muted)}.empty h3{color:var(--ink);margin-bottom:5px}.empty .icon{width:28px;height:28px;margin-bottom:7px}.wide{width:100%}.actions{flex-wrap:wrap}.aside .actions>.btn{flex:1}.draft-list{list-style:none;margin:0;padding:0;display:grid;gap:8px}.draft-list li{border-bottom:1px solid var(--line);padding:7px 0 12px;display:flex;gap:8px;align-items:center}.item-text{min-width:0;flex:1;font-size:13px}.item-text b,.item-text span{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.item-text span{font-size:12px;color:var(--muted)}.ordinal{font:italic 19px var(--serif);color:#5a7566}.tiny{width:23px;height:25px;border:0;background:transparent;color:var(--green);padding:0}.tiny .icon{width:14px}.tools{display:flex}.subtle{background:#f3f5ed;border-radius:8px;padding:12px;font-size:13px}.auth{display:grid;grid-template-columns:1.05fr 1fr;max-width:1080px;margin:clamp(10px,5vh,55px) auto;min-height:510px;border:1px solid var(--line);border-radius:17px;overflow:hidden;background:var(--white)}.authart{border-radius:0;padding:40px;min-height:350px}.authart h2{font-size:clamp(38px,4.7vw,66px);line-height:1.06;max-width:8em}.authform{padding:clamp(25px,3vw,48px);align-self:center}.authform h1{font-size:36px}.authform>p{margin:9px 0 23px}.authform form{display:grid;gap:16px}.authform input{padding:11px}.authform .btn{margin-top:4px}.err{color:#933728;font-size:13px;white-space:pre-wrap}.err:empty{display:none}
dialog{padding:0;border:1px solid var(--line);border-radius:14px;background:var(--white);color:var(--ink);width:min(700px,94vw);max-height:90dvh;box-shadow:0 24px 100px #11251b33}dialog::backdrop{background:#152d2459}#modalBody{padding:25px}.dhead{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:18px}.grid2{display:grid;grid-template-columns:1fr 1fr;gap:12px}.editor-label{font-size:13px;font-weight:700}.editorwrap{min-width:0}.editorwrap .ql-editor{min-height:96px;font:16px/1.6 var(--sans)}.editorwrap .ql-toolbar{border-radius:7px 7px 0 0;background:#f4f6ef}.ql-toolbar.ql-snow,.ql-container.ql-snow{border-color:#cbd1c5}.eq-embed{border-radius:3px;background:#eaf0e7;cursor:pointer;padding:2px}.eq-button{width:auto!important;font-weight:700!important;color:var(--green)!important}.formula-box{border:1px solid #bccabc;background:#f8faf3;border-radius:8px;padding:13px}.formula-box math-field{width:100%;font-size:23px;min-height:58px;margin:6px 0;background:white}.palette{display:flex;gap:5px;flex-wrap:wrap}.pillbtn{padding:5px 9px}.choice{padding:13px;border:1px solid var(--line);border-radius:8px;display:flex;gap:10px;align-items:baseline;cursor:pointer}.choice:has(input:checked){background:#edf4e9;border-color:#64856c}.choice b,.choice small{display:block}.choice small{color:var(--muted);font-size:13px}.sheet-row{display:flex;align-items:center;gap:15px;justify-content:space-between;padding:16px 20px}.sheet-row h3{margin-bottom:4px}.authart p{max-width:27em}.modal-foot{display:flex;justify-content:flex-end;gap:8px;flex-wrap:wrap}.modal-foot .err{width:100%}.helptext{margin-top:14px;color:var(--muted);font-size:13px}#notice{position:fixed;bottom:20px;left:50%;transform:translateX(-50%);background:#1c3e32;color:white;border-radius:8px;padding:11px 18px;z-index:50;max-width:90%;box-shadow:0 5px 20px #0002}#notice:empty{display:none}.hidden,[hidden]{display:none!important}
@media(max-width:950px){.layout{grid-template-columns:minmax(0,1fr) 290px;gap:15px}.filters{grid-template-columns:1fr 1fr}.bar{gap:26px}.hero{padding:27px}.qfoot{padding:8px 12px}.aside .panel{padding:17px}}
@media(max-width:740px){.layout,.auth{grid-template-columns:1fr}.aside{position:static;grid-row:1}.aside .empty{display:none}.aside .stack{gap:10px}.hero{min-height:141px}.hero p{max-width:72%}.authart{min-height:195px;padding:25px}.authart h2{font-size:36px;max-width:9em}.authart p{max-width:65%;font-size:13px}.bar{flex-wrap:wrap;gap:0 14px;padding-top:11px}.bar nav{order:3;width:100%;height:40px}.bar nav:empty{display:none}.bar:has(nav:empty){padding-bottom:10px;min-height:58px}.brand{font-size:25px}.brand img{width:30px}.auth{margin-top:0}.grid2{gap:8px}.authform{padding:26px}main{padding:17px 12px 40px}.hero{padding:19px}.user-chip{font-size:12px}.filters{gap:8px}.panel{padding:16px}.qhead{padding:15px 14px 0}.qbody{padding:10px 14px}.row{flex-wrap:wrap}#modalBody{padding:17px}.sheet-row{flex-wrap:wrap}.authart .eyebrow{font-size:9px}}
.stack{grid-template-columns:minmax(0,1fr)}.draft-list,.draft-list li,.aside{min-width:0}

.hero,.authart{background:linear-gradient(120deg,#302281 0%,#5942c7 62%,#9c65dc 100%)}.panel,.qcard{box-shadow:0 5px 24px #373b8610}.btn:hover:not(:disabled){background:#35218b}.brand{font-size:24px;letter-spacing:-.8px}.book-icon,.avatar{color:#4b36b1;background:#eeebff}.qfoot{background:#fafaff}.formula-library{background:#f7f7ff}.formula-card[aria-pressed=true]{background:#eeebff}.equation-proof{background:#f5f1ff;border-color:#ddd4f9}.formula-symbol{color:#4b36b1}.formula-card:hover{border-color:#8373d7}.equation-mode{background:#f1effb}.equation-mode button[aria-pressed=true]{color:#4b36b1}.tag{background:#e4f5ef;color:#176547}.tag.standard{background:#fff0d3;color:#79500a}.tag.challenge{background:#f8e4f5;color:#8a387c}

button, select, input, .qcard, .panel, .formula-card {transition: background-color .22s ease, color .22s ease, border-color .22s ease, box-shadow .22s ease, transform .22s ease;}
.btn:hover:not(:disabled), .formula-card:hover {transform: translateY(-2px);box-shadow:0 6px 16px #5136b12b;}
.btn:active:not(:disabled), .formula-card:active {transform:translateY(0) scale(.98)}
.tab[data-tab=question]:hover,.tab[data-tab=question].on {background:#e5eaff;color:#273fa9}
.tab[data-tab=answer]:hover,.tab[data-tab=answer].on {background:#d8f5ec;color:#08755a}
.tab[data-tab=solution]:hover,.tab[data-tab=solution].on {background:#ffebd8;color:#9a4c0e}
.qcard:hover {border-color:#c6bcf8;box-shadow:0 8px 24px #4b36b11c}
dialog[open] {animation:dialog-enter .24s ease-out both} dialog[open]::backdrop {animation:backdrop-enter .24s ease-out both}
.qbody .rich {animation:content-enter .2s ease-out both}
@keyframes dialog-enter {from {opacity:0;transform:translateY(12px) scale(.98)} to {opacity:1;transform:none}}
@keyframes backdrop-enter {from {opacity:0} to {opacity:1}}
@keyframes content-enter {from {opacity:0;transform:translateY(4px)} to {opacity:1;transform:none}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation-duration:.01ms!important;transition-duration:.01ms!important;scroll-behavior:auto!important}}

@keyframes logo-entrance {0%{opacity:0;transform:rotate(-16deg) scale(.75)} 65%{opacity:1;transform:rotate(5deg) scale(1.08)} 100%{opacity:1;transform:rotate(0) scale(1)}}
@keyframes login-enter {from{opacity:0;transform:translateY(18px)}to{opacity:1;transform:translateY(0)}}
@keyframes graph-reveal {from{opacity:0;transform:translateY(12px)}to{opacity:1;transform:translateY(0)}}
.brand img{animation:logo-entrance .8s cubic-bezier(.2,.8,.2,1) both;transition:transform .35s ease}.brand:hover img{transform:rotate(-8deg) scale(1.08)}
.auth{animation:login-enter .6s ease-out both}.authart .graph{animation:graph-reveal .9s .15s ease-out both}.authform{animation:login-enter .65s .12s ease-out both}

.worksheet-animation{position:absolute!important;left:50%;bottom:22px;transform:translateX(-50%);width:210px;height:235px;pointer-events:none}.worksheet-shadow{position:absolute;inset:17px -14px -8px 16px;background:#ffffff25;border:1px solid #ffffff50;border-radius:12px;transform:rotate(7deg)}.worksheet-page{position:absolute;inset:0 0 0 0;background:#fff;border-radius:10px;padding:22px 20px;box-shadow:0 18px 40px #20144c55;transform:rotate(-4deg);animation:page-appear .8s .2s both}.sheet-heading{width:67%;height:10px;background:#3f308f;border-radius:5px}.sheet-line{height:4px;background:#d8d7e9;border-radius:4px;margin-top:8px}.sheet-line.short{width:42%}.sheet-question{display:flex;align-items:center;gap:8px;margin-top:15px;animation:question-arrive .5s .65s both}.sheet-question.second{animation-delay:1.1s}.sheet-question.third{animation-delay:1.55s}.sheet-number{display:grid;place-items:center;width:18px;height:18px;flex:none;border-radius:5px;background:#eeeaff;color:#5140ad;font:bold 10px Arial}.sheet-lines{flex:1}.sheet-lines i{display:block;width:100%;height:4px;border-radius:3px;background:#d8d7e9;margin:4px 0}.sheet-lines i:last-child{width:65%}.sheet-question b{color:#1da77d;font-size:15px;animation:tick-appear .35s 2.1s both}.sheet-question.second b{animation-delay:2.35s}.sheet-question.third b{animation-delay:2.6s}.sheet-footer{height:1px;background:#e5e5ef;margin-top:13px}.print-label{position:absolute;right:-38px;bottom:9px;background:#ffe0a8;color:#54334c;padding:8px 12px;border-radius:8px;box-shadow:0 8px 20px #28165744;font:700 11px Arial;animation:question-arrive .5s 2.8s both}.print-label span{margin-left:6px}.authart{min-height:510px}.authart>div:first-of-type{z-index:2}.authart h2{font-size:clamp(38px,4vw,55px);max-width:9em}.authart p{max-width:25em}@keyframes page-appear{from{opacity:0;transform:translateY(25px) rotate(-8deg)}to{opacity:1;transform:rotate(-4deg)}}@keyframes question-arrive{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}@keyframes tick-appear{from{opacity:0;transform:scale(.5)}to{opacity:1;transform:scale(1)}}@media(max-width:740px){.authart{min-height:270px}.authart h2{font-size:31px;max-width:8em}.authart p{max-width:53%}.worksheet-animation{left:auto;right:30px;bottom:13px;transform:scale(.63);transform-origin:bottom right}.print-label{right:-18px}}
@media(prefers-reduced-motion:reduce){.worksheet-animation *, .worksheet-animation{animation:none!important}}
