:root{color:var(--text);background:var(--page-background);--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light;font-synthesis:none;text-rendering:optimizelegibility;-webkit-font-smoothing:antialiased;--page-background:#f6f8fc;--text:#24334c;--muted:#65748b;--brand-text:#26364f;--surface:#fff;--surface-raised:#f8faff;--border:#e0e7f3;--divider:#e5eaf3;--control-border:#dfe5f1;--control-text:#475772;--soft-background:#edf0f7;--blue:#3764de;--accent:#3764de;--accent-background:#edf2ff;--accent-border:#ccdafc;--focus:#97b5ff;--input-border:#c4d2f4;--input-focus:#6289ed;--focus-shadow:#3764de14;--placeholder:#a8badf;--operator:#9eabc0;--button-text:#fff;--button-hover:#2952c3;--button-disabled:#6e8fe3;--success-text:#207350;--success-border:#66b592;--success-background:#f0faf5;--success-icon:#3c9c72;--success-soft-background:#eef8f2;--wrong-text:#9b541c;--wrong-input-text:#a05722;--wrong-border:#dd9b64;--wrong-background:#fff8f1;--wrong-history-text:#a86131;--wrong-decoration:#e3b693;--wrong-hover:#fffaf5;--wrong-hover-border:#ecd7c1;--keycap-border:#dfe5ef;--keycap-text:#5d6d85;--keycap-background:#fafbfe;--stat-border:#e3e8f1;--stat-label:#5c6a80;--blue-dot:#6486e4;--green-dot:#49a87a;--orange-dot:#db9e67;--accuracy-text:#3b795e;--accuracy-track:#e7ecf4;--accuracy-fill:#55ad86;--heart:#8d9db9;--footer-dot:#b4c0d1;--history-divider:#edf0f6;--history-equals:#9aa7bb;--history-correct:#247950;--secondary-background:#f6f8fc;--secondary-text:#445874;--secondary-hover:#edf2fc;--notice-background:#fff3df;--notice-border:#f0d9b0;--notice-text:#825624;--card-shadow:#33476605;--brand-shadow:#dc30471a;--dialog-shadow:#24334c33;--dialog-backdrop:#17233d66;font-family:Trebuchet MS,Segoe UI,Arial,sans-serif}:root[data-theme=dark]{--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark;--page-background:#101724;--text:#e5edf9;--muted:#a7b5ca;--brand-text:#e5edf9;--surface:#192335;--surface-raised:#202d43;--border:#31405b;--divider:#2b3850;--control-border:#3b4b66;--control-text:#c8d5e8;--soft-background:#25324a;--blue:#456dde;--accent:#93b2ff;--accent-background:#273858;--accent-border:#4a66a5;--focus:#9abaff;--input-border:#587097;--input-focus:#9abaff;--focus-shadow:#8eadff2e;--placeholder:#96a9c5;--operator:#8da0bd;--button-hover:#3b60cd;--button-disabled:#3c507f;--success-text:#86dfb1;--success-border:#438466;--success-background:#18352d;--success-icon:#86dfb1;--success-soft-background:#203b32;--wrong-text:#f1b27d;--wrong-input-text:#f1b27d;--wrong-border:#986844;--wrong-background:#3b2c23;--wrong-history-text:#f1b27d;--wrong-decoration:#b78055;--wrong-hover:#302a29;--wrong-hover-border:#7b5b43;--keycap-border:#455471;--keycap-text:#c1cee3;--keycap-background:#202d43;--stat-border:#31405b;--stat-label:#b6c4d9;--blue-dot:#8eaaff;--green-dot:#6fcca1;--orange-dot:#e2a574;--accuracy-text:#86dfb1;--accuracy-track:#29374f;--accuracy-fill:#70c99e;--heart:#a7b5ca;--footer-dot:#647691;--history-divider:#2d3b55;--history-equals:#8da0bd;--history-correct:#86dfb1;--secondary-background:#202d43;--secondary-text:#d2def0;--secondary-hover:#2a3b56;--notice-background:#3a2e1d;--notice-border:#816332;--notice-text:#e4c08a;--card-shadow:#00000024;--brand-shadow:#dc304726;--dialog-shadow:#00000070;--dialog-backdrop:#050a13b3}*{box-sizing:border-box}body{min-width:320px;margin:0}button,input{font:inherit}button,a,label{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{cursor:default}button,a,input,label{touch-action:manipulation}button,a{transition:background-color .15s,box-shadow .15s,transform .15s}button:focus-visible,a:focus-visible,input:focus-visible{outline:3px solid var(--focus);outline-offset:4px}label:has(input:focus-visible){outline:3px solid var(--focus);outline-offset:4px}svg{flex-shrink:0;width:22px;height:22px}.app-shell{max-width:1120px;margin:0 auto;padding:0 44px}.site-header{border-bottom:1px solid var(--divider);justify-content:space-between;align-items:center;gap:20px;min-height:110px;display:flex}.brand{color:var(--brand-text);align-items:center;gap:12px;font-size:21px;font-weight:700;text-decoration:none;display:flex}.brand-name{white-space:nowrap}.brand-symbol{width:45px;height:45px;box-shadow:0 4px 10px var(--brand-shadow);border-radius:14px;flex-shrink:0;place-items:center;display:grid}.brand-symbol img{width:100%;height:100%;display:block}.brand-caption{color:var(--muted);letter-spacing:.3px;margin-top:3px;font-size:11px;font-weight:400;display:block}.header-actions{flex-shrink:0;align-items:center;gap:10px;display:flex}.history-button,.theme-button{border:1px solid var(--control-border);background:var(--surface);min-height:44px;color:var(--control-text);border-radius:12px;align-items:center;display:flex}.history-button{gap:9px;padding:11px 14px;font-size:13px;font-weight:700}.history-button:hover,.history-button.active,.theme-button:hover,.theme-button[aria-checked=true]{background:var(--accent-background);border-color:var(--accent-border);color:var(--accent)}.history-button svg{width:18px;height:18px}.theme-button{flex-shrink:0;justify-content:center;width:44px;min-width:44px;height:44px;padding:10px}.theme-button svg{width:20px;height:20px}.count-bubble{background:var(--soft-background);text-align:center;border-radius:6px;min-width:22px;padding:3px 5px;font-size:11px}main{max-width:640px;margin:0 auto}.intro{text-align:center;padding-top:43px}.eyebrow{color:var(--accent);letter-spacing:1.8px;font-size:10px;font-weight:700}h1{letter-spacing:-1.4px;margin:13px 0 12px;font-size:39px;font-weight:700;line-height:1.2}h1:focus{outline:none}.intro p{color:var(--muted);margin:0;font-size:15px;line-height:1.6}.start-card{background:var(--surface);border:1px solid var(--border);box-shadow:0 8px 30px var(--card-shadow);border-radius:23px;margin-top:29px;padding:32px}.start-card h1{letter-spacing:-.6px;margin:0 0 30px;font-size:28px}.operation-selector{border:0;min-width:0;margin:0;padding:0}.operation-selector legend{margin-bottom:12px;padding:0;font-size:14px;font-weight:700}.operation-option{border:1px solid var(--input-border);background:var(--surface-raised);cursor:pointer;border-radius:12px;align-items:center;gap:12px;min-height:76px;margin-top:10px;padding:14px 16px;display:flex}.operation-option.selected{border-color:var(--accent-border);background:var(--accent-background)}.operation-option:hover{border-color:var(--input-focus)}.operation-option input{width:20px;height:20px;accent-color:var(--blue);cursor:pointer;flex-shrink:0;margin:0}.operation-option-content{flex-direction:column;flex:1;min-width:0;display:flex}.operation-option-title{font-size:15px;font-weight:700}.operation-description{color:var(--muted);margin-top:5px;font-size:12px;line-height:1.5}.operation-choice-symbol{text-align:center;width:25px;color:var(--accent);flex-shrink:0;font-size:27px}.selection-notice{color:var(--wrong-text);margin:12px 0 0;font-size:12px;line-height:1.6}.selection-notice:empty{margin:0}.new-test-notice{color:var(--muted);margin:18px 0 0;font-size:12px;line-height:1.6}.start-card .primary-button{width:min(240px,100%);margin:30px auto 0}.exercise-card{background:var(--surface);border:1px solid var(--border);box-shadow:0 8px 30px var(--card-shadow);border-radius:23px;margin-top:29px;padding:25px 32px 23px}.exercise-meta{letter-spacing:1px;color:var(--muted);justify-content:space-between;align-items:center;gap:10px;font-size:10px;font-weight:700;display:flex}.operation-tag{background:var(--accent-background);color:var(--accent);letter-spacing:0;border-radius:7px;align-items:center;gap:4px;padding:6px 9px;font-size:11px;font-weight:400;display:flex}.operation-tag-symbol{text-align:center;width:14px;font-size:15px;line-height:1}.equation{font-variant-numeric:tabular-nums;letter-spacing:-2px;justify-content:center;align-items:center;gap:17px;margin-top:34px;font-size:54px;font-weight:700;display:flex}.operator{color:var(--operator);font-size:35px;font-weight:400}.answer-input{color:var(--text);text-align:center;background:var(--surface-raised);border:2px solid var(--input-border);font-variant-numeric:tabular-nums;width:110px;height:90px;caret-color:var(--accent);border-radius:15px;padding:0 5px;font-size:46px;font-weight:700}.answer-input::placeholder{color:var(--placeholder);opacity:1}.answer-input:focus{border-color:var(--input-focus);box-shadow:0 0 0 4px var(--focus-shadow);outline:none}.correct .answer-input{border-color:var(--success-border);background:var(--success-background);color:var(--success-text)}.wrong .answer-input{border-color:var(--wrong-border);background:var(--wrong-background);color:var(--wrong-input-text)}.answer-feedback{text-align:center;min-height:47px;color:var(--muted);justify-content:center;align-items:center;margin:14px 0 13px;font-size:13px;line-height:1.5;display:flex}.feedback-correct{color:var(--success-text);align-items:center;gap:7px;font-weight:700;display:inline-flex}.feedback-correct svg{width:18px;height:18px}.feedback-wrong{color:var(--wrong-text)}.feedback-wrong strong{margin-left:4px;font-size:17px}.primary-button{background:var(--blue);color:var(--button-text);border:0;border-radius:12px;justify-content:center;align-items:center;gap:16px;min-height:50px;padding:15px 23px;font-size:15px;font-weight:700;display:flex}.exercise-card .primary-button{width:240px;margin:0 auto}.primary-button:hover{background:var(--button-hover)}.primary-button:active{transform:translateY(1px)}.primary-button:disabled{background:var(--button-disabled);color:var(--button-text)}.primary-button svg{width:19px;height:19px}.keyboard-hint{color:var(--muted);justify-content:center;align-items:center;gap:6px;margin:14px 0 0;font-size:11px;display:flex}kbd{font:inherit;border:1px solid var(--keycap-border);color:var(--keycap-text);background:var(--keycap-background);border-bottom-width:2px;border-radius:4px;padding:3px 5px}.progress-section{margin-top:29px}.section-heading{justify-content:space-between;align-items:center;gap:12px;margin-bottom:13px;display:flex}.section-heading h2{margin:0;font-size:15px}.progress-caption,.muted{color:var(--muted);font-size:11px}.stats-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;display:grid}.stat-card{border:1px solid var(--stat-border);background:var(--surface);text-align:left;min-width:0;color:inherit;border-radius:14px;flex-direction:column;align-items:flex-start;padding:17px 19px;display:flex}.stat-label{color:var(--stat-label);align-items:center;gap:7px;font-size:12px;display:flex}.stat-dot{border-radius:50%;width:7px;height:7px}.blue{background:var(--blue-dot)}.green{background:var(--green-dot)}.orange{background:var(--orange-dot)}.stat-card strong{font-variant-numeric:tabular-nums;overflow-wrap:anywhere;max-width:100%;margin:11px 0 5px;font-size:31px}.stat-description{color:var(--muted);align-items:center;gap:5px;font-size:10px;display:flex}.stat-description svg{width:13px;height:13px}.mistakes-stat:hover{background:var(--wrong-hover);border-color:var(--wrong-hover-border)}.accuracy{color:var(--muted);justify-content:space-between;align-items:center;gap:16px;margin-top:15px;font-size:11px;display:flex}.accuracy strong{color:var(--accuracy-text);font-weight:700}.accuracy-track{background:var(--accuracy-track);border-radius:20px;flex-shrink:0;width:160px;height:5px;overflow:hidden}.accuracy-track>div{background:var(--accuracy-fill);border-radius:inherit;height:100%;transition:width .3s}.bottom-actions{color:var(--muted);justify-content:center;align-items:center;gap:12px;margin:27px 0 35px;font-size:11px;display:flex}.bottom-actions>span{align-items:center;gap:6px;display:flex}.bottom-actions>span svg{width:14px;height:14px;color:var(--heart)}footer{color:var(--muted);border-top:1px solid var(--divider);letter-spacing:.1px;justify-content:center;gap:13px;padding:23px 0 28px;font-size:10px;display:flex}footer span{color:var(--footer-dot)}.history-section .intro{padding-bottom:28px}.history-section h1{font-size:31px}.history-card{background:var(--surface);border:1px solid var(--border);border-radius:22px;padding:26px}.history-labels,.mistake-list li{grid-template-columns:1.15fr .85fr 1fr;align-items:center;gap:14px;display:grid}.history-labels{color:var(--muted);margin-top:26px;padding-bottom:12px;font-size:10px}.mistake-list{margin:0;padding:0;list-style:none}.mistake-list li{border-top:1px solid var(--history-divider);font-variant-numeric:tabular-nums;padding:17px 0;font-size:19px;font-weight:700}.mistake-problem>span{color:var(--history-equals)}.mistake-answer{color:var(--wrong-history-text);text-decoration:line-through;-webkit-text-decoration-color:var(--wrong-decoration);text-decoration-color:var(--wrong-decoration)}.mistake-correct{color:var(--history-correct);align-items:center;gap:8px;display:flex}.mistake-correct svg{width:17px;height:17px}.history-note{color:var(--muted);margin:16px 0 24px;font-size:11px;line-height:1.7}.history-card>.primary-button{margin:0 auto}.empty-history{text-align:center;padding:35px 0 30px}.empty-icon{width:55px;height:55px;color:var(--success-icon);background:var(--success-soft-background);border-radius:18px;place-items:center;display:inline-grid}.empty-history h3{margin:16px 0 10px;font-size:19px}.empty-history p{color:var(--muted);font-size:13px}.reset-dialog{background:var(--surface);color:var(--text);border:1px solid var(--border);width:min(480px,100% - 32px);box-shadow:0 12px 80px var(--dialog-shadow);border-radius:21px;padding:30px}.reset-dialog::backdrop{background:var(--dialog-backdrop);-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px)}.reset-dialog h2{margin:0 0 14px;font-size:23px;line-height:1.3}.reset-dialog p{color:var(--muted);margin:0 0 24px;font-size:14px;line-height:1.7}.dialog-actions{flex-direction:column;gap:10px;display:flex}.secondary-button{border:1px solid var(--control-border);background:var(--secondary-background);color:var(--secondary-text);border-radius:12px;min-height:48px;padding:12px;font-size:14px}.secondary-button:hover{background:var(--secondary-hover)}.storage-notice{background:var(--notice-background);border:1px solid var(--notice-border);color:var(--notice-text);border-radius:9px;margin:20px 0 0;padding:12px;font-size:12px;line-height:1.6}.sr-only{clip:rect(0, 0, 0, 0);white-space:nowrap;border:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}@media (width<=639px){.app-shell{padding:0 20px}.site-header{gap:12px;min-height:88px}.brand{gap:9px;font-size:18px}.brand-symbol{border-radius:12px;width:38px;height:38px}.brand-caption{font-size:9px}.header-actions{gap:8px}.history-button{gap:6px;padding:10px;font-size:11px}.history-button svg{display:none}.intro{padding-top:32px}.eyebrow{letter-spacing:1.4px;font-size:8px}h1{letter-spacing:-1px;margin-top:13px;font-size:clamp(26px,7.9vw,31px)}.intro p{font-size:12px}.start-card{border-radius:19px;margin-top:24px;padding:23px 18px}.start-card h1{margin-bottom:26px;font-size:25px}.operation-option{gap:10px;padding:13px 12px}.operation-option-title{font-size:14px}.operation-description{font-size:11px}.operation-choice-symbol{width:20px;font-size:25px}.exercise-card{border-radius:19px;margin-top:24px;padding:18px 16px 22px}.exercise-meta{font-size:9px}.equation{letter-spacing:-1px;gap:clamp(7px,2.5vw,14px);margin-top:28px;font-size:clamp(32px,9vw,47px)}.operator{font-size:26px}.answer-input{border-radius:12px;width:76px;height:74px;font-size:34px}.answer-feedback{margin:12px 0;font-size:12px}.exercise-card .primary-button{width:min(240px,100%)}.keyboard-hint{display:none}.progress-section{margin-top:25px}.progress-caption{display:none}.stats-grid{gap:8px}.stat-card{border-radius:12px;padding:14px 10px}.stat-label{gap:5px;font-size:9px}.stat-dot{width:5px;height:5px}.stat-card strong{font-size:28px}.stat-description{gap:2px;font-size:8px}.stat-description svg{display:none}.accuracy{gap:12px;font-size:10px}.accuracy-track{width:75px}.bottom-actions{flex-direction:column;gap:4px;margin:19px 0 22px;font-size:10px}footer{gap:8px;padding:20px 0;font-size:8px}.history-section h1{font-size:27px}.history-card{padding:20px 16px}.history-labels,.mistake-list li{grid-template-columns:1.1fr .75fr 1fr;gap:10px}.history-labels{font-size:9px}.mistake-list li{font-size:17px}.history-card>.primary-button{gap:9px;padding:14px;font-size:13px}}@media (width<=389px){.history-button>span{display:none}.history-button{justify-content:center;width:44px;min-width:44px;height:44px}.history-button svg{display:block}}@media (width<=359px){.brand-caption{display:none}}@media (prefers-reduced-motion:reduce){*,:before,:after{scroll-behavior:auto!important;transition:none!important}}
