:root{font-family:Inter,system-ui,-apple-system,Segoe UI,Roboto,sans-serif;color:#192a3c;background:#f4f7fb;line-height:1.55}*{box-sizing:border-box}body{margin:0}.shell{max-width:960px;margin:auto;padding:0 22px}.site-header{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:26px 0 30px}.brand{display:flex;align-items:center;gap:12px}.brand strong{display:block;font-size:17px}.brand small{display:block;color:#66758a;font-size:12px}.logo{background:#173c62;color:white;font-weight:800;border-radius:12px;width:44px;height:44px;display:grid;place-items:center;font-size:24px}.pill{border-radius:40px;padding:6px 12px;background:#e5edf6;color:#244968;font-size:12px;font-weight:700;white-space:nowrap}.panel{background:white;border:1px solid #e1e8f0;box-shadow:0 10px 35px #173c620a;border-radius:20px;padding:32px}.eyebrow{font-size:11px;letter-spacing:.12em;color:#2c668e;font-weight:800}h1{font-size:clamp(26px,4vw,36px);line-height:1.15;margin:9px 0 10px}h2{font-size:23px;margin:5px 0}h3{font-size:21px;line-height:1.45;margin:12px 0 22px}.muted{color:#68788b}.small{font-size:13px}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:24px;margin-top:26px}.wide{grid-column:1/-1}fieldset{border:0;padding:0;margin:0}legend{font-weight:750;margin-bottom:11px}label{font-weight:650;font-size:14px}select{display:block;width:100%;margin-top:9px;background:#fff;border:1px solid #cbd6e2;border-radius:10px;padding:12px;color:#192a3c;font:inherit}.scope-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.scope{display:flex;gap:12px;align-items:flex-start;border:1px solid #d7e1ea;border-radius:12px;padding:16px;cursor:pointer}.scope:has(input:checked){border-color:#2c668e;background:#eff7ff}.scope input{margin-top:4px;accent-color:#1d567c}.scope small{display:block;font-weight:400;color:#6d7a8b}.checks{display:flex;flex-wrap:wrap;gap:20px}.checks input{accent-color:#1d567c}.actions{display:flex;gap:12px;flex-wrap:wrap;margin-top:22px}.between{justify-content:space-between}button{font:inherit;font-weight:700;border:0;border-radius:11px;padding:12px 20px;cursor:pointer}button:disabled{opacity:.45;cursor:not-allowed}.primary{background:#174e78;color:white}.primary:hover:not(:disabled){background:#103a5c}.secondary{background:#e9f0f7;color:#174e78}.secondary:hover:not(:disabled){background:#d9e7f3}.error{color:#a62626}.exam-bar{display:flex;align-items:center;justify-content:space-between;margin:8px 0 14px}.small-button{font-size:13px}.progress-track{height:9px;background:#dce7f1;border-radius:20px;overflow:hidden}.progress-fill{height:100%;width:0;background:#2679a5;transition:width .2s}.question-card{margin-top:22px}.options{display:grid;gap:12px}.option{display:flex;align-items:flex-start;gap:13px;padding:14px 16px;border:1px solid #d5dfe9;border-radius:12px;cursor:pointer;font-weight:500}.option:has(input:checked){border-color:#2c668e;background:#f0f7fc}.option input{margin-top:5px;accent-color:#1c5c84}.option.correct,.option.correct:has(input:checked){border-color:#2b9363;background:#effaf3}.option.incorrect,.option.incorrect:has(input:checked){border-color:#c84a4a;background:#fff2f2}.feedback{border-left:4px solid #2b9363;padding:13px 16px;background:#f2f8f5;margin-top:18px;border-radius:6px}.feedback.is-correct{border-left-color:#2b9363;background:#effaf3;color:#1d6b47}.feedback.is-incorrect{border-left-color:#c84a4a;background:#fff2f2;color:#9b2c2c}.stats{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin:24px 0}.stat{background:#f0f5fa;padding:18px;border-radius:12px;text-align:center}.stat strong{display:block;font-size:29px}.stat span{font-size:12px;color:#607187}.correction{border-top:1px solid #e1e8ef;padding:18px 0}.correction h3{font-size:16px;margin:7px 0}.correction p{margin:5px 0}.good{color:#16704b}.bad{color:#b23434}.neutral{color:#6b7280}footer{color:#7a8798;text-align:center;font-size:12px;padding:30px 0 40px}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}[hidden]{display:none!important}@media(max-width:640px){.shell{padding:0 12px}.panel{padding:20px}.scope-grid,.form-grid{grid-template-columns:1fr}.wide{grid-column:auto}.stats{grid-template-columns:repeat(2,1fr)}.site-header{align-items:flex-start}.brand small{max-width:210px}.pill{font-size:10px}.checks{flex-direction:column;gap:10px}}@media print{body{background:white}.site-header,#setup,#exam,footer,.actions{display:none!important}#results{display:block!important;box-shadow:none;border:0;padding:0}.correction{break-inside:avoid}}

.main-nav{display:flex;gap:10px;margin:-8px 0 20px}.nav-tab{background:#e6edf5;color:#244968}.nav-tab.active{background:#174e78;color:#fff}.library-list{display:grid;gap:12px;margin-top:25px}.topic-card{border:1px solid #dce5ee;border-radius:14px;padding:17px;display:flex;justify-content:space-between;align-items:center;gap:16px}.topic-card h3{font-size:17px;margin:5px 0}.topic-card p{margin:0}.topic-actions{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end;min-width:280px}.topic-actions button,.topic-actions a{font-size:13px;padding:10px 13px;white-space:nowrap}.button-link{display:inline-flex;align-items:center;justify-content:center;text-decoration:none;font-weight:700;border-radius:11px;padding:12px 20px}.reader{margin-top:25px;border-top:1px solid #dce5ee;padding-top:18px;scroll-margin-top:20px}.reader-head{display:flex;align-items:center;justify-content:space-between;gap:15px}.reader-head h2{font-size:19px}#pdf-frame{width:100%;height:min(76vh,900px);border:1px solid #dce5ee;border-radius:12px;background:#f4f7fb}.mobile-only{display:none}@media(max-width:700px){.desktop-only{display:none}.mobile-only{display:inline}.topic-card{align-items:stretch;flex-direction:column}.topic-actions{justify-content:flex-start;min-width:0}.reader-head{align-items:flex-start;flex-direction:column}#pdf-frame{height:65vh}.download-pdf{display:none}}@media print{.main-nav,#library{display:none!important}}

.source-link{display:inline-block;margin-top:.5rem;color:#145e96;font-weight:650;text-decoration:underline;text-underline-offset:3px}
.source-link:focus-visible{outline:3px solid #ffba49;outline-offset:3px}
