@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Space+Grotesk:wght@400;500;600;700&display=swap');
:root{font-family:'DM Sans',sans-serif;color:#17243d;background:#f5f7fa;font-synthesis:none}*{box-sizing:border-box}body{margin:0}button,select{font:inherit}button{cursor:pointer}button:disabled{opacity:.4;cursor:not-allowed}[hidden]{display:none!important}.shell{max-width:1240px;min-height:100vh;margin:auto;padding:0 38px;display:flex;flex-direction:column}header{height:92px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #e1e6ed}.brand{display:flex;gap:12px;align-items:center}.mark{background:#087bde;color:white;width:42px;height:42px;border-radius:11px;display:grid;place-items:center;font:700 25px 'Space Grotesk'}.brand strong{font:700 20px 'Space Grotesk';display:block;line-height:1}.brand small{font-size:10px;letter-spacing:2.2px;font-weight:700;color:#7b899e}.header-right{display:flex;gap:9px;align-items:center;color:#65748b;font-size:12px;font-weight:700;letter-spacing:.6px;text-transform:uppercase}.status-dot{height:8px;width:8px;border-radius:50%;background:#36b991}main{flex:1}.intro{padding:62px 0 35px}.eyebrow{color:#087bde;font-size:11px;font-weight:700;letter-spacing:1.8px}.eyebrow span{display:inline-block;width:4px;height:4px;border-radius:50%;background:#8b9aab;margin:0 8px 2px}h1,h2,p{margin-top:0}h1,h2{font-family:'Space Grotesk',sans-serif}h1{font-size:clamp(34px,5vw,55px);line-height:1.1;letter-spacing:-2.5px;margin:18px 0 15px}.intro p,.results-head p{font-size:16px;color:#69788e;line-height:1.6}.workspace{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(280px,.9fr);gap:24px}.card{background:#fff;border:1px solid #e2e8ef;border-radius:18px;box-shadow:0 10px 30px rgba(30,52,82,.035)}.config{padding:36px}.section-head{display:flex;gap:18px;align-items:flex-start;margin-bottom:30px}.section-icon{background:#e9f4ff;color:#087bde;border-radius:10px;padding:10px;font-size:12px;font-weight:700}.section-head h2{font-size:23px;letter-spacing:-.7px;margin:1px 0 5px}.section-head p{color:#78879b;font-size:13px;margin:0}.config label:not(.switch){display:block;font-size:12px;font-weight:700;color:#34445c;margin:22px 0 9px}.select-wrap{position:relative}.select-wrap:after{content:'⌄';position:absolute;right:17px;top:9px;color:#728198;font-size:25px;pointer-events:none}select{width:100%;appearance:none;border:1px solid #dfe6ee;background:#fff;border-radius:10px;padding:15px 18px;color:#24354d;outline:none}select:focus,button:focus-visible,input:focus-visible{outline:3px solid #99d2ff;outline-offset:2px}.toggle-row{display:flex;justify-content:space-between;align-items:center;border-top:1px solid #edf1f5;margin-top:25px;padding-top:24px}.toggle-row strong,.toggle-row small{display:block}.toggle-row strong{font-size:14px}.toggle-row small{font-size:12px;color:#8995a5;margin-top:3px}.switch input{position:absolute;opacity:0}.switch span{display:block;width:42px;height:24px;background:#c5cfda;border-radius:20px;position:relative}.switch span:before{content:'';width:18px;height:18px;border-radius:50%;background:white;position:absolute;left:3px;top:3px;transition:.2s}.switch input:checked+span{background:#087bde}.switch input:checked+span:before{left:21px}.primary{background:#087bde;border:0;color:white;border-radius:10px;padding:16px 20px;font-weight:700}.config .primary{width:100%;margin-top:29px;display:flex;justify-content:space-between}.primary:hover{background:#056cc5}.fine{font-size:12px;color:#8a98a9;text-align:center;margin-top:13px}.side{background:#101e35;color:white;padding:36px;position:relative;overflow:hidden}.side:after{content:'';position:absolute;width:260px;height:260px;border:1px solid #264568;border-radius:50%;right:-125px;top:-115px}.side-top{color:#98b3d2;font-size:11px;font-weight:700;letter-spacing:1.4px;display:flex;gap:10px;align-items:center}.side-symbol{font-size:23px;color:#59b8ff}.big-number{font:700 78px 'Space Grotesk';letter-spacing:-5px;margin-top:35px;line-height:1}.number-label{font-size:13px;color:#a9bbd2;margin-top:5px}.divider{height:1px;background:#2a3b54;margin:35px 0 24px}.source-list{display:grid;gap:14px}.source-row{display:flex;justify-content:space-between;font-size:13px;color:#bbcbdd}.source-row strong{color:white}.side-note{font-size:12px;color:#91a7c0;line-height:1.6;margin:30px 0 0}footer{font-size:12px;color:#9aA6b5;text-align:center;padding:35px 0}#exam,#results{padding-top:42px}.exam-top,.results-head{display:flex;justify-content:space-between;align-items:end}.exam-top h1,.results-head h1{font-size:38px;margin:12px 0 26px}.exam-top h1 em{font-style:normal;color:#a6b2c0}.timer{background:#e9f4ff;color:#087bde;border-radius:9px;padding:12px 16px;margin-bottom:25px;font-weight:700;font-variant-numeric:tabular-nums}.progress{height:6px;background:#e0e9f2;border-radius:9px;margin-bottom:28px;overflow:hidden}.progress div{height:100%;background:#087bde;transition:width .25s}.exam-layout{display:grid;grid-template-columns:minmax(0,1fr) 280px;gap:24px;align-items:start}.question-card{padding:38px}.question-meta{display:flex;justify-content:space-between;gap:12px;color:#087bde;font-size:11px;font-weight:700;letter-spacing:1px;text-transform:uppercase}.question-card h2{white-space:pre-line;font:600 22px/1.55 'Space Grotesk';letter-spacing:-.4px;margin:25px 0}.choices{display:grid;gap:11px}.choice{display:flex;align-items:flex-start;gap:14px;border:1px solid #dfe7ef;border-radius:11px;padding:16px;cursor:pointer;line-height:1.5}.choice:hover{border-color:#80beee;background:#f8fcff}.choice.selected{border-color:#087bde;background:#eaf6ff}.choice input{margin-top:5px;accent-color:#087bde}.choice b{color:#087bde;min-width:18px}.exam-actions{display:flex;justify-content:space-between;margin-top:32px;gap:12px}.ghost{border:1px solid #d5e0ea;background:white;color:#39506b;border-radius:10px;padding:14px 18px;font-weight:700}.navigator{padding:24px}.nav-title{display:flex;justify-content:space-between;gap:8px;font-size:13px}.nav-title span{color:#8390a2;font-size:11px}.question-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:8px;margin-top:24px}.question-grid button{aspect-ratio:1;border:1px solid #d9e3ed;border-radius:8px;background:#fff;color:#5d7089;font-size:12px;font-weight:700}.question-grid button.answered{background:#dff4ed;border-color:#dff4ed;color:#148f68}.question-grid button.current{outline:2px solid #087bde;outline-offset:1px}.nav-key{display:flex;gap:16px;margin:22px 0;font-size:11px;color:#8090a4}.key{display:inline-block;width:10px;height:10px;border-radius:2px;margin-right:4px}.key.answered{background:#dff4ed}.key.current{border:2px solid #087bde}.finish{width:100%;padding:13px;background:#f1f6fb;border:1px solid #d9e5ee;border-radius:9px;color:#234765;font-weight:700}.finish:hover{background:#e6f1fa}.results-head p{margin-top:-13px}.results-head .ghost{margin-bottom:28px}.scoreboard{display:flex;align-items:center;padding:26px 36px;gap:20px}.score{width:30%;border-right:1px solid #e5ebf1}.score span{font:700 55px 'Space Grotesk';color:#087bde;display:block;line-height:1}.score small{font-size:10px;letter-spacing:1.5px;color:#8c9aab;font-weight:700}.stat{flex:1;display:grid;gap:4px}.stat strong{font:700 26px 'Space Grotesk'}.stat span{font-size:12px;color:#8795a7}.review-heading{display:flex;justify-content:space-between;align-items:center;margin:42px 0 18px}.review-heading h2{margin:0}.review-heading select{max-width:220px;padding:11px}.review-item{padding:26px;margin-bottom:14px}.review-top{display:flex;justify-content:space-between;gap:12px;font-size:11px;font-weight:700;letter-spacing:1px;color:#78889b;text-transform:uppercase}.badge{border-radius:20px;padding:5px 10px}.badge.correct{background:#e3f6ee;color:#138d65}.badge.incorrect{background:#fff0ed;color:#c95642}.review-item h3{white-space:pre-line;font:600 17px/1.5 'Space Grotesk';margin:17px 0}.answer-line{font-size:13px;margin:7px 0}.answer-line strong{color:#253b56}.explanation{border-top:1px solid #e8edf2;margin-top:18px;padding-top:16px;color:#566981;font-size:13px;line-height:1.65;white-space:pre-line}.explanation a{color:#087bde}.note{background:#eff7ff;border-radius:8px;padding:12px;margin-top:12px;font-size:12px;color:#3c6080}@media(max-width:800px){.shell{padding:0 20px}header{height:74px}.header-right{display:none}.intro{padding:38px 0 24px}.workspace,.exam-layout{grid-template-columns:1fr}.side{padding:28px}.big-number{margin-top:15px}.side-note{margin-top:18px}.config,.question-card{padding:25px}.navigator{order:-1}.scoreboard{flex-wrap:wrap}.score{width:100%;border:0;border-bottom:1px solid #e5ebf1;padding-bottom:18px}.stat{min-width:70px}.results-head{align-items:start;gap:10px}.results-head .ghost{font-size:12px}.question-grid{grid-template-columns:repeat(10,1fr)}}@media(max-width:500px){.question-grid{grid-template-columns:repeat(8,1fr)}.exam-top h1{font-size:30px}.exam-actions{flex-direction:column}.exam-actions button{width:100%}.review-heading{align-items:stretch;flex-direction:column;gap:12px}.review-heading select{max-width:none}}

/* Immediate answer feedback and Markdown explanations */
.choice.choice-correct{border-color:#42b889;background:#e9f8f0}
.choice.choice-wrong{border-color:#df806f;background:#fff1ee}
.choice:has(input:disabled){cursor:default}
.feedback{margin-top:24px;padding:22px;border:1px solid #dce7f0;border-radius:12px;background:#f8fbfe}
.feedback>strong{display:block;font:700 18px 'Space Grotesk';margin-bottom:8px}
.feedback-correct{border-color:#b7e8d0;background:#f3fbf7}
.feedback-correct>strong{color:#137c5d}
.feedback-wrong{border-color:#f0cdc4;background:#fff8f6}
.feedback-wrong>strong{color:#bd5948}
.feedback .answer-line{margin:0 0 12px}
.explanation{white-space:normal}
.markdown-body{font-size:13px;line-height:1.7;color:#566981;overflow-wrap:anywhere}
.markdown-body>*:first-child{margin-top:0}
.markdown-body>*:last-child{margin-bottom:0}
.markdown-body p,.markdown-body ul,.markdown-body ol,.markdown-body blockquote,.markdown-body pre{margin:0 0 12px}
.markdown-body ul,.markdown-body ol{padding-left:23px}
.markdown-body li+li{margin-top:4px}
.markdown-body a{color:#087bde;text-decoration:underline;text-underline-offset:2px}
.markdown-body code{background:#e8eef5;color:#263d58;padding:2px 5px;border-radius:4px;font-size:.95em}
.markdown-body pre{background:#15233a;color:#edf5ff;padding:14px;border-radius:8px;overflow-x:auto}
.markdown-body pre code{background:none;color:inherit;padding:0}
.markdown-body blockquote{border-left:3px solid #9bc9ee;padding-left:13px;color:#6a7b90}
.markdown-body table{border-collapse:collapse;display:block;overflow-x:auto;max-width:100%}
.markdown-body th,.markdown-body td{border:1px solid #dce5ee;padding:7px 10px;text-align:left}
.markdown-body h1,.markdown-body h2,.markdown-body h3,.markdown-body h4{font:700 15px 'Space Grotesk';letter-spacing:0;margin:17px 0 7px}

.question-text{font-size:17px;line-height:1.6;color:#17243d;font-weight:500;margin:22px 0 26px;white-space:normal}
.review-question{font-size:16px;line-height:1.55;color:#17243d;margin:17px 0}
.question-text table,.review-question table{font-size:14px;white-space:normal;margin:14px 0}
.explanation{white-space:normal}

.review-mark{display:flex;align-items:center;gap:8px;font-size:14px;margin-top:18px;color:#39506b}.review-mark input{accent-color:#087bde}.review-mark small{font-size:12px;color:#78879b;margin-left:auto}

.review-controls{display:flex;flex-wrap:wrap;align-items:center;gap:12px 24px;margin:18px 0}.review-controls .review-mark{margin:0;cursor:pointer}.review-controls>small{font-size:12px;color:#78879b}.review-controls input{width:16px;height:16px}

.account-bar{display:flex;flex-wrap:wrap;align-items:center;gap:12px;margin:16px 0;padding:18px 24px;font-size:14px}.account-bar a{color:#087bde}.account-bar #account-status{flex:1;min-width:220px}.account-bar .ghost{font-size:13px}.account-bar [hidden]{display:none}

.brand-logo{display:block;width:42px;height:42px;object-fit:contain;flex-shrink:0}

.case-panel{margin:24px 0;padding:24px}.case-heading h2{font-size:23px;margin:8px 0}.case-heading p{font-size:13px;color:#69788e;margin-bottom:16px}.case-description{max-height:38vh;overflow:auto;padding-right:16px;overscroll-behavior:contain}.case-description:focus-visible{outline:2px solid #087bde;outline-offset:5px}.review-case{margin:18px 0;border:1px solid #dfe6ee;border-radius:10px;padding:14px}.review-case summary{cursor:pointer;color:#087bde;font-weight:600}.review-case .markdown-body{margin-top:14px;max-height:40vh;overflow:auto}

.answer-field{display:block;margin:18px 0}.answer-field>span{display:block;font-size:14px;font-weight:600;margin-bottom:9px}.answer-field small{display:block;margin-top:8px;color:#39506b}.answer-field select{white-space:normal}

fieldset.answer-field{border:0;padding:0;min-width:0}fieldset.answer-field legend{font-weight:600;margin-bottom:9px;font-size:14px}
