:root{font-family:system-ui,-apple-system,'Segoe UI',sans-serif;color:#172440;background:#f3f6ff}*{box-sizing:border-box}body{margin:0}header{background:linear-gradient(110deg,#293c91,#7555c7);color:#fff;padding:25px 0}h1{margin:0;font-size:clamp(26px,4vw,36px)}header p{margin:8px 0 0;opacity:.9}.wrap{max-width:960px;margin:auto;padding-left:18px;padding-right:18px}main{padding-top:24px}.card{background:white;border:1px solid #dfe5f3;border-radius:18px;padding:24px;margin-bottom:18px;box-shadow:0 6px 22px #24356a0b}#auth{max-width:520px;margin:30px auto}.muted,small{color:#5c6982}h2{margin-top:10px}h3{margin-bottom:12px}label{display:block;margin:14px 0 7px;font-weight:600}input,select{display:block;width:100%;border:2px solid #ccd5e8;border-radius:11px;padding:12px 14px;font-size:16px;background:white;color:#172440}input:focus,select:focus{outline:3px solid #b2adff}button{border:0;background:#4b4fc1;color:#fff;border-radius:11px;padding:12px 16px;font-size:15px;font-weight:700;cursor:pointer}button:hover{filter:brightness(.96)}button:disabled{opacity:.5;cursor:wait}.secondary{background:#e9ebfa;color:#343e87}.actions,.tabs{display:flex;gap:9px;flex-wrap:wrap;margin:16px 0}.spread{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap}.fields{display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:12px}.pill{display:inline-block;border-radius:20px;background:#eeecff;color:#4d449e;font-weight:750;font-size:12px;padding:7px 12px}.stats{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}.stats>div{background:#f3f5ff;padding:17px;text-align:center;border-radius:12px}.stats b{display:block;font-size:27px;color:#343b9a}.stats small{display:block}.progress{background:#e5eaf7;height:12px;border-radius:30px;overflow:hidden;margin-top:18px}.progress div{background:#35b497;height:100%;width:0;transition:width .2s}.dots{display:flex;gap:7px;flex-wrap:wrap;margin-top:18px}.dots button{padding:7px 0;width:34px;border-radius:8px;background:#f0f3ff;color:#344269;border:1px solid #d9e0f0;font-size:12px}.dots .correct{background:#c7efdb;color:#12603c}.dots .wrong{background:#ffdfcf;color:#813d23}.dots .active{outline:3px solid #867cdd}.feedback{background:#eef2ff;border-radius:12px;padding:14px;line-height:1.6;white-space:pre-wrap}.good{background:#e3f8ec}.bad{background:#fff0e8}.tutor{border:1px solid #dce1f2;background:#f8f9ff;padding:16px;border-radius:14px;margin-top:22px}.tutor input{flex:1;min-width:200px}details{border:1px solid #dce1f2;border-radius:14px;padding:14px;margin-top:18px}summary{cursor:pointer;font-weight:700}canvas{width:100%;height:auto;aspect-ratio:800/350;border:1px solid #cbd4e8;background:#fff;touch-action:none;border-radius:8px;display:block}.history{width:100%;border-collapse:collapse}.history th,.history td{border-bottom:1px solid #e3e7f1;text-align:left;padding:9px;font-size:14px}.meter{height:9px;background:#e9ecf7;border-radius:9px;overflow:hidden}.meter div{height:100%;background:#6255c9}.review{border-top:1px solid #e1e5f0;padding-top:12px;margin-top:12px}footer{text-align:center;color:#66738d;padding:18px 0 45px;font-size:13px}#notice:not(:empty){padding:12px;background:#fff3db;color:#6d4a13;border-radius:10px;margin-bottom:14px}@media(max-width:550px){.card{padding:17px}.stats{gap:6px}.stats>div{padding:12px 5px}.stats b{font-size:21px}}
