/* Exam delivery is deliberately stable across the site's light and dark themes. */
#quiz-view .results:has(.score-report){width:calc(100% - 48px);max-width:1120px}
.score-report{--bg:#fff;--surf:#fff;--line:#d5dce1;--txt:#183b57;--mute:#526879;--acc:#24577e;--acc-soft:#edf4fa;margin:24px 0 36px;background:#fff;color:#183b57;border:1px solid #d5dce1;border-radius:8px;overflow:hidden;font:14px/1.5 Arial,Helvetica,sans-serif}
.score-report-head{display:flex;justify-content:space-between;align-items:center;gap:20px;padding:26px;background:#f6f8fa}.score-report-head>div>span{font-size:11px;letter-spacing:1px}.score-report-head h2{margin:6px 0;font-size:24px;letter-spacing:0}.score-report-head p{margin:0;color:#526879;font-size:13px}.score-total{text-align:center;flex-shrink:0}.score-total strong{display:block;font-size:48px;line-height:1.15}.score-total span{display:block;letter-spacing:0!important}
.score-table-wrap{overflow-x:auto}.score-table{width:100%;min-width:800px;border-collapse:collapse;font-size:13px}.score-table th,.score-table td{border:1px solid #dfe3e6;padding:12px;text-align:center}.score-table thead{background:#fff2cd}.score-table th:first-child{text-align:left;width:27%}.score-table tbody th{font-weight:400}.score-table tbody tr{background:#f7f8fa}.score-table td:nth-child(2){font-size:18px}.score-table td:nth-child(4),.score-table td:nth-child(5){font-size:11px;color:#526879}.score-table .score-total-row{background:#e2efd8;font-weight:700}.score-profile{display:block;width:240px;height:60px;margin:auto;color:#17252f}.score-method{padding:16px 24px;font-size:13px;color:#526879}.score-method summary{cursor:pointer;color:#183b57;font-weight:700}.score-method a{text-decoration:underline}.score-method p{max-width:900px}
/* Dark theme: the score report matches the app's dark surfaces instead of a bright white card. */
[data-theme=dark] .score-report{--surf:#111a2e;--line:#223152;--txt:#e8eefc;--mute:#a3b2d2;--acc:#7aa2ff;--acc-soft:#16264a;background:#111a2e;color:#e8eefc;border-color:#223152;border-radius:14px;font-family:inherit}
[data-theme=dark] .score-report-head{background:linear-gradient(135deg,#16264a,#111a2e)}[data-theme=dark] .score-report-head>div>span{color:#ffcd1f}[data-theme=dark] .score-report-head h2{color:#e8eefc}[data-theme=dark] .score-report-head p{color:#a3b2d2}[data-theme=dark] .score-total strong{color:#fff}[data-theme=dark] .score-total span{color:#a3b2d2}
[data-theme=dark] .score-table th,[data-theme=dark] .score-table td{border-color:#223152}[data-theme=dark] .score-table thead{background:#2a2410;color:#ffe08a}[data-theme=dark] .score-table tbody tr{background:#0f1729}[data-theme=dark] .score-table tbody th{color:#d3defa}
[data-theme=dark] .score-table td:nth-child(4),[data-theme=dark] .score-table td:nth-child(5){color:#8a9bc0}[data-theme=dark] .score-table .score-total-row{background:#13301f;color:#c9f2d6}[data-theme=dark] .score-profile{color:#c7d4f0}
[data-theme=dark] .score-method{color:#a3b2d2}[data-theme=dark] .score-method summary{color:#e8eefc}[data-theme=dark] .score-method a{color:#7aa2ff}
@media(max-width:600px){.score-report-head{padding:18px;align-items:flex-start}.score-report-head h2{font-size:20px}.score-total strong{font-size:36px}.score-total span{max-width:90px}.score-method{padding:16px}}
/* The exam screen is always light (like the real test). Reset the app's theme colours here so dark-mode text colours never land on its white background. */
#quiz-view .exam-player{--bg:#fff;--surf:#fff;--line:#d2dce3;--txt:#20252b;--mute:#526879;--acc:#24577e;--acc2:#193f5d;--acc-soft:#edf4fa;--ok:#17794c;--bad:#b42318;position:fixed;inset:0;z-index:1000;display:flex;flex-direction:column;background:#fff;color:#20252b;font:16px/1.6 Arial,Helvetica,sans-serif;color-scheme:light}
.exam-player *{box-sizing:border-box}
.exam-player button{border:1px solid #9baebf;border-radius:3px;background:#fff;color:#234967;padding:8px 14px;font:600 14px/1.4 Arial,Helvetica,sans-serif;cursor:pointer}
.exam-player button:hover{background:#edf4fa;border-color:#326a96}
.exam-player button:focus-visible{outline:3px solid #df9b19;outline-offset:2px}
.exam-player button:disabled{opacity:.4;cursor:default}
.exam-header{display:flex;justify-content:space-between;align-items:center;gap:24px;padding:16px 28px;background:#24577e;color:#fff;border-bottom:4px solid #193f5d}
.exam-header small{display:block;font-size:12px;letter-spacing:.4px;color:#dfebf5}
.exam-header h1{font-size:20px;line-height:1.3;letter-spacing:0;margin:4px 0 0;font-weight:600}
.exam-time{flex-shrink:0;text-align:right;font-variant-numeric:tabular-nums}
.exam-time span{font-size:25px;font-weight:700;line-height:1.2}
.exam-toolbar{display:flex;align-items:center;gap:24px;padding:8px 28px;background:#eaf0f5;border-bottom:1px solid #b8c8d5;font-size:13px;color:#354b5d}
.exam-toolbar>span:nth-child(2){margin-left:auto}.exam-toolbar button{padding:5px 12px}
.exam-workspace{display:grid;grid-template-columns:1fr 1fr;flex:1;min-height:0;overflow:hidden}
.exam-passage,.exam-question{overflow:auto;padding:28px 36px;scrollbar-gutter:stable}
.exam-passage{border-right:1px solid #aebdca;background:#fff;font-size:16px;line-height:1.75}
.exam-passage p{margin:18px 0;white-space:pre-line}
.exam-label{color:#526879;font-size:13px;font-weight:700;letter-spacing:.3px}
.exam-question-top{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:26px}
.exam-question-top button[aria-pressed=true]{background:#fff3cb;border-color:#aa7900;color:#6b4a00}
.exam-question h2{font:400 18px/1.65 Arial,Helvetica,sans-serif;letter-spacing:0;margin:0 0 25px;white-space:pre-line}
.exam-workspace.discrete{grid-template-columns:1fr}.exam-workspace.discrete .exam-question{width:min(900px,100%);margin:auto;height:100%}
.exam-choices{display:grid;gap:10px}
.exam-choice{display:flex;align-items:stretch;border:1px solid transparent;border-radius:4px}
.exam-choice.selected{background:#edf5fc;border-color:#5482a5}
.exam-player .exam-answer{display:flex;align-items:baseline;gap:12px;text-align:left;flex:1;min-width:0;border:0;background:transparent;color:#20252b;padding:12px;font-size:16px;font-weight:400;line-height:1.6}
.exam-answer>span:last-child{flex:1;min-width:0}.exam-answer b{font-weight:400}
.exam-radio{width:15px;height:15px;border:1px solid #657580;border-radius:50%;flex-shrink:0;align-self:flex-start;margin-top:5px}
.selected .exam-radio{border:4px solid #24577e;background:white}
.eliminated .exam-answer>span:last-child{text-decoration:line-through;color:#737d86}
.exam-player .exam-strike{border:0;border-left:1px solid #dce4eb;border-radius:0;background:transparent;align-self:center;padding:7px 10px;color:#657580}
.exam-player .exam-strike[aria-pressed=true]{color:#183e5c;background:#e2eaf0}
.exam-help{font-size:12px;color:#637785;margin-top:25px}
.exam-footer{display:flex;align-items:center;justify-content:space-between;gap:16px;background:#eaf0f5;border-top:1px solid #b8c8d5;padding:13px 24px}
.exam-footer>div{display:flex;gap:10px}.exam-footer-note{font-size:12px;color:#526879}
.exam-player .exam-primary{background:#24577e;border-color:#24577e;color:#fff}.exam-player .exam-primary:hover{background:#193f5d}
.exam-review{overflow:auto;flex:1;min-height:0;padding:28px max(28px,calc((100vw - 1040px)/2))}
.exam-review h2{font-size:24px;letter-spacing:0;margin:0 0 8px}.exam-review p{color:#526879;font-size:14px}
.exam-review-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:24px 0}
.exam-review-grid button{text-align:left;padding:14px;border-left:4px solid #a66b19}.exam-review-grid .answered{border-left-color:#39758c}
.exam-review-grid b,.exam-review-grid span{display:block}.exam-review-grid span{font-size:12px;font-weight:400;margin-top:4px}
#quiz-view .exam-player .fig{background:#fff;color:#20252b;border-color:#d2dce3}#quiz-view .exam-player :is(.fig.sm .fsvg svg,.passage){color:#20252b}#quiz-view .exam-player .gtable th{background:#eef3f7;color:#20252b}#quiz-view .exam-player figcaption,#quiz-view .exam-player .mol em{color:#526879}
.exam-player ::selection{background:#ffe7a1;color:#20252b}
@media(max-width:760px){.exam-header{padding:12px 16px;gap:12px}.exam-header h1{font-size:16px}.exam-toolbar{padding:8px 16px;gap:12px;flex-wrap:wrap}.exam-toolbar>span:nth-child(2){margin-left:0}.exam-toolbar button{margin-left:auto}.exam-workspace{grid-template-columns:1fr;overflow:auto;display:block}.exam-passage,.exam-question{overflow:visible;padding:22px}.exam-passage{border-right:0;border-bottom:1px solid #aebdca}.exam-workspace.discrete .exam-question{height:auto}.exam-footer{padding:12px;gap:8px}.exam-footer-note{display:none}.exam-player button{font-size:12px;padding:8px 10px}.exam-review-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.exam-question-top{margin-bottom:20px}}

/* Visual score summary above the table: total ring, section bars, time per question. Follows the light/dark theme. */
@keyframes svDraw{from{stroke-dasharray:0 999}}@keyframes svGrow{from{height:0}}@keyframes svPop{from{opacity:0;transform:scale(.3)}}
.sv{--sv-bg:#fff;--sv-line:#e3e8ee;--sv-txt:#16202c;--sv-mute:#5d6b7c;margin:24px 0 18px;padding:24px 26px;background:var(--sv-bg);color:var(--sv-txt);border:1px solid var(--sv-line);border-radius:14px}
[data-theme=dark] .sv{--sv-bg:#111a2e;--sv-line:#223152;--sv-txt:#e8eefc;--sv-mute:#a3b2d2}
.sv-head{display:flex;justify-content:space-between;align-items:flex-start;gap:16px;padding-bottom:12px;border-bottom:1px solid var(--sv-line)}.sv-head h2{margin:0;font-size:26px;color:var(--sv-txt)!important}.sv-head p{margin:4px 0 0;color:var(--sv-mute);font-size:13px}.sv-review{color:#3b82f6;font-weight:600;white-space:nowrap;text-decoration:none}
.sv-top{display:grid;grid-template-columns:240px 1fr;gap:28px;align-items:center;margin-top:22px}
.sv-total{text-align:center}.sv-total>b{display:block;margin-top:6px;font-size:15px}.sv-ring{width:210px;max-width:100%}.sv-track{fill:none;stroke:var(--sv-line);stroke-width:12}.sv-arc{fill:none;stroke-width:12;stroke-linecap:round;animation:svDraw 1.2s ease-out both}
.sv-ring text{text-anchor:middle;fill:var(--sv-txt)}.sv-big{font-size:46px;font-weight:800}.sv-small{font-size:12.5px;fill:var(--sv-mute)!important}
.sv-bars{display:grid;grid-template-columns:34px 1fr;gap:8px}.sv-axis{display:flex;flex-direction:column;justify-content:space-between;height:200px;font-size:11px;color:var(--sv-mute);text-align:right;padding-bottom:0}
.sv-cols{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;border-left:1px solid var(--sv-line)}.sv-plot{position:relative;height:200px;display:flex;align-items:flex-end;border-bottom:1px solid var(--sv-line);padding-left:8px}
.sv-bar{width:52%;height:var(--h);background:var(--c);border-radius:4px 4px 0 0;display:flex;justify-content:center;animation:svGrow .9s cubic-bezier(.2,.8,.2,1) both;animation-delay:calc(var(--i)*.12s)}.sv-bar b{color:#fff;font-size:19px;margin-top:6px}
.sv-plot em{position:absolute;left:calc(52% + 14px);bottom:calc(var(--h) - 16px);font-style:normal;font-size:12px;color:var(--c);font-weight:600;white-space:nowrap}
.sv-name{display:block;margin-top:10px;padding-left:8px;font-size:13px;font-weight:700;color:var(--c);line-height:1.3}[data-theme=dark] .sv-col[style*="5d6790"] .sv-name,[data-theme=dark] .sv-col[style*="5d6790"] em{color:#a9b3d9}
.sv-time{margin-top:26px;border-top:1px solid var(--sv-line);padding-top:16px}.sv-time-head{display:flex;align-items:center;gap:16px;flex-wrap:wrap;font-size:13px;color:var(--sv-mute)}.sv-time-head label{display:flex;align-items:center;gap:6px}.sv-time-head select{font:inherit;font-weight:700;color:var(--sv-txt);background:transparent;border:0;cursor:pointer}
.sv-dot{width:12px;height:12px;border-radius:3px;display:inline-block}.sv-key{margin-left:auto;display:flex;gap:6px;align-items:center}.sv-key i{display:inline-block;width:9px;height:9px;border-radius:50%;margin-left:8px}.sv-key .ok{background:#22c55e}.sv-key .no{background:#ef4444}.sv-key .fl{background:var(--sv-mute);border-radius:1px;transform:rotate(45deg)}
.sv-chart svg{width:100%;height:auto;margin-top:6px}.sv-grid{stroke:var(--sv-line)}.sv-ylab{fill:var(--sv-mute);font-size:11px;text-anchor:end}.sv-line{fill:none;stroke:var(--sv-mute);stroke-opacity:.45;stroke-width:1.2}
.sv-chart .ok{fill:#22c55e}.sv-chart .no{fill:#ef4444}.sv-chart circle{animation:svPop .35s ease-out both;animation-delay:calc(var(--i)*12ms);transform-box:fill-box;transform-origin:center}
@media(max-width:760px){.sv{padding:18px}.sv-top{grid-template-columns:1fr}.sv-cols{gap:6px}.sv-bar{width:70%}.sv-plot em{display:none}.sv-name{font-size:11.5px}.sv-key{margin-left:0}}
@media(prefers-reduced-motion:reduce){.sv *{animation:none!important}}

/* data tables inside passages (built from "Label: 1, 2, 3" lines) */
.sci-table-wrap{overflow-x:auto;margin:4px 0 18px}.sci-table{border-collapse:collapse;font-size:.95em;font-variant-numeric:tabular-nums;min-width:50%}
.sci-table th,.sci-table td{border:1px solid #c9d3dc;padding:6px 12px;text-align:center;white-space:nowrap}.sci-table thead th,.sci-table tbody th{background:#eef3f7;font-weight:700;text-align:left}
[data-theme=dark] .mcat-view:not(#quiz-view) .sci-table th,[data-theme=dark] .mcat-view:not(#quiz-view) .sci-table td,[data-theme=dark] #quiz-view main.quiz .sci-table th,[data-theme=dark] #quiz-view main.quiz .sci-table td{border-color:#2a3a63}
[data-theme=dark] .mcat-view:not(#quiz-view) .sci-table th,[data-theme=dark] #quiz-view main.quiz .sci-table th{background:#16264a}
sub,sup{font-size:.72em;line-height:0}
