*,:before,:after{box-sizing:border-box}:root{--red:#d52b1e;--red-light:#fbe9e7;--green:#1a7a4a;--green-light:#e6f4ed;--blue:#1a4b8c;--bg:#f5f5f5;--surface:#fff;--option-bg:var(--surface);--border:#ddd;--text:#1a1a1a;--text-muted:#666;--text-on-accent:#fff;--radius:10px;--shadow:0 2px 12px #00000014;--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light;color:var(--text);background:var(--bg);font-family:system-ui,-apple-system,sans-serif;font-size:16px}:root[data-theme=dark]{--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark;--bg:#1a1a1a;--surface:#252526;--option-bg:#323235;--border:#4e4e52;--text:#e0e0e0;--text-muted:#a0a0a0;--text-on-accent:#1a1a1a;--red:#ff7b72;--red-light:#ff505026;--green:#3dd68c;--green-light:#3cd78c26;--blue:#79b8ff;--shadow:0 2px 20px #0009}body{margin:0}#root{flex-direction:column;align-items:center;min-height:100svh;display:flex}.app{width:100%;max-width:680px;padding:12px 16px 48px}.card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);box-shadow:var(--shadow);padding:28px}.setup header{text-align:center;margin-bottom:24px}.setup h1{color:var(--red);margin:0 0 6px;font-size:1.6rem;font-weight:700;line-height:1.2}.subtitle{color:var(--text-muted);font-size:.95rem}.field{margin-bottom:20px}.field label{color:var(--text);margin-bottom:8px;font-size:.9rem;font-weight:600;display:block}.field select{border:1px solid var(--border);background:var(--surface);width:100%;color:var(--text);appearance:auto;border-radius:6px;padding:10px 12px;font-size:1rem}.field select:focus{outline:2px solid var(--red);outline-offset:1px}.lang-toggle{gap:8px;display:flex}.lang-toggle button{border:2px solid var(--border);background:var(--surface);cursor:pointer;color:var(--text-muted);border-radius:6px;flex:1;padding:10px;font-size:.95rem;font-weight:600;transition:all .15s}.lang-toggle button.active{border-color:var(--red);color:var(--red);background:var(--red-light)}.field input[type=range]{width:100%;accent-color:var(--red)}.range-labels{color:var(--text-muted);justify-content:space-between;margin-top:4px;font-size:.8rem;display:flex}.btn-primary{background:var(--red);width:100%;color:var(--text-on-accent);cursor:pointer;border:none;border-radius:6px;margin-top:8px;padding:14px;font-size:1rem;font-weight:700;transition:background .15s;display:block}.btn-primary:hover:not(:disabled){background:#b02419}.btn-primary:disabled{opacity:.4;cursor:not-allowed}.btn-secondary{width:100%;color:var(--red);border:2px solid var(--red);cursor:pointer;background:0 0;border-radius:6px;padding:14px;font-size:1rem;font-weight:700;transition:all .15s;display:block}.btn-secondary:hover{background:var(--red-light)}.progress-bar{background:var(--border);border-radius:3px;height:6px;margin-bottom:12px;overflow:hidden}.progress-fill{background:var(--red);border-radius:3px;height:100%;transition:width .3s}.progress-label{text-align:right;color:var(--text-muted);margin-bottom:16px;font-size:.85rem}.question-card{flex-direction:column;gap:16px;display:flex}.question-text{margin:0;font-size:1.1rem;font-weight:600;line-height:1.5}.options{flex-direction:column;gap:10px;display:flex}.option{border:2px solid var(--border);background:var(--option-bg);width:100%;color:var(--text);font:inherit;text-align:left;cursor:pointer;border-radius:8px;align-items:flex-start;gap:12px;padding:12px 16px;font-size:.95rem;line-height:1.4;transition:all .15s;display:flex}.option:hover,.option.selected{border-color:var(--red);background:var(--red-light)}.option.correct{border-color:var(--green);background:var(--green-light);color:var(--green);font-weight:600}.option.incorrect{border-color:var(--red);background:var(--red-light);color:var(--red);text-decoration:line-through}.option-letter{min-width:20px;color:var(--text-muted);font-weight:700}.option.correct .option-letter,.option.incorrect .option-letter{color:inherit}.feedback{color:var(--text);border-radius:6px;padding:10px 14px;font-size:.9rem;line-height:1.45}.correct-feedback{background:var(--green-light);border-left:4px solid var(--green)}.correct-feedback strong{color:var(--green)}.incorrect-feedback{background:var(--red-light);border-left:4px solid var(--red)}.incorrect-feedback strong{color:var(--red)}.result-banner{border-radius:var(--radius);text-align:center;box-shadow:var(--shadow);margin-bottom:24px;padding:28px 24px}.result-banner.pass{background:var(--green-light);border:2px solid var(--green);color:var(--green)}.result-banner.fail{background:var(--red-light);border:2px solid var(--red);color:var(--red)}.result-verdict{letter-spacing:1px;text-transform:uppercase;font-size:1.8rem;font-weight:800}.result-score{margin:8px 0;font-size:2.5rem;font-weight:700}.result-banner p{opacity:.85;font-size:.95rem}.answer-review{flex-direction:column;gap:12px;margin-bottom:24px;display:flex}.review-item{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);border-left:4px solid var(--border);padding:16px}.review-item.correct{border-left-color:var(--green)}.review-item.incorrect{border-left-color:var(--red)}.review-header{align-items:center;gap:10px;margin-bottom:8px;display:flex}.review-num{color:var(--text-muted);font-size:.85rem;font-weight:700}.review-badge{text-transform:uppercase;border-radius:4px;padding:2px 8px;font-size:.75rem;font-weight:700}.badge-correct{background:var(--green-light);color:var(--green)}.badge-incorrect{background:var(--red-light);color:var(--red)}.review-question{margin:0 0 6px;font-size:.9rem;font-weight:600}.review-chosen{color:var(--text-muted);margin:0;font-size:.88rem}.review-answer{color:var(--green);margin:4px 0 0;font-size:.88rem}.review-explanation{color:var(--text-muted);margin:6px 0 0;font-size:.85rem;line-height:1.45}.result-actions{flex-direction:column;gap:10px;display:flex}:root[data-theme=dark] .btn-primary:hover:not(:disabled){background:#e86e66}.app-header{justify-content:flex-end;margin-bottom:12px;display:flex}.theme-toggle{border:1px solid var(--border);background:var(--surface);width:36px;height:36px;color:var(--text);cursor:pointer;box-shadow:var(--shadow);border-radius:50%;justify-content:center;align-items:center;font-size:1rem;transition:border-color .15s;display:flex}.theme-toggle:hover{border-color:var(--red)}
