.exam-switch{margin:24px auto 20px}.exam-switch button{cursor:pointer;transition:background .18s,color .18s,box-shadow .18s}.exam-switch button:hover:not(.active){background:var(--brand-light);color:var(--brand-primary)}.exam-switch button.active:hover{background:var(--brand-secondary)}.exam-switch button:focus-visible{outline:2px solid var(--brand-accent);outline-offset:2px}.xat-instructions{font-size:13px;line-height:1.6;border:1px solid var(--brand-light);background:color-mix(in srgb, var(--brand-light) 45%, white);padding:14px;border-radius:12px;margin-bottom:18px}.xat-instructions p:last-child{margin-bottom:0}.xat-sections{height:54px;padding:0 18px;display:flex;align-items:center;gap:12px;background:color-mix(in srgb, var(--brand-light) 45%, white);border-bottom:1px solid var(--brand-light);font-family:Inter,Arial,sans-serif;position:relative;z-index:16}.xat-section-item{display:flex;align-items:center;position:relative;gap:4px}.xat-section-tab{border:0;background:transparent;border-radius:100px;padding:9px 17px;font-size:13px;font-weight:600;transition:background .18s,color .18s}.xat-section-tab.active{background:var(--brand-primary);color:white}.xat-section-tab:hover:not(:disabled){background:var(--brand-light);color:var(--brand-primary)}.xat-section-tab.active:hover{background:var(--brand-secondary);color:white}.section-locked{font-size:10px;margin-left:6px;font-weight:400}.section-info-button{width:26px;height:26px;display:grid;place-items:center;border:0;border-radius:50%;background:transparent;color:#64748b;transition:background .18s,color .18s}.section-info-button svg{width:18px;height:18px}.section-info-button:hover,.section-info-button[aria-expanded=true]{background:var(--brand-light);color:var(--brand-primary)}.section-info-popover{position:absolute;top:44px;left:0;width:292px;padding:18px;background:white;border:1px solid var(--brand-border);border-radius:14px;box-shadow:0 12px 30px color-mix(in srgb, var(--brand-primary) 10.98%, transparent);color:#334155;font-size:12px;line-height:1.6}.section-info-popover[hidden]{display:none}.section-info-popover>strong{font-size:14px;display:block;color:var(--brand-primary)}.section-info-counts{display:grid;gap:4px;padding:10px 0;border-bottom:1px solid var(--brand-light)}.section-info-counts b{font-size:14px;color:var(--brand-primary)}.section-info-popover p{margin:10px 0}.section-info-popover small{font-size:11px;color:#64748b}.xat-part-label{margin-left:auto;color:#64748b;font-size:11px;white-space:nowrap}.xat-player .exam{height:calc(100dvh - 104px)}.section-marking{font-size:11px;font-weight:400;display:flex;gap:12px;align-items:center;color:#64748b}.section-marking b{color:#299752}.xat-question-figure{display:block;max-width:100%;height:auto;margin:16px auto;border:1px solid var(--brand-light);border-radius:10px}.xat-solution-block{background:color-mix(in srgb, var(--brand-light) 45%, white);border:1px solid var(--brand-light);border-radius:12px;padding:16px 20px;margin:12px 0}.xat-solution-block h4{font-size:14px;color:var(--brand-primary);margin:0 0 10px}.xat-solution-block p{margin:8px 0;line-height:1.8}.xat-score-note{font-size:12px;line-height:1.6;color:#64748b;padding:12px 16px;background:color-mix(in srgb, var(--brand-light) 45%, white);border:1px solid var(--brand-light);border-radius:10px}.xat-player header{font-family:Inter,Arial,sans-serif}.xat-player .question-no{gap:12px}@media(max-width:720px){.xat-sections{padding:0 8px;gap:4px}.xat-section-tab{padding:9px 8px;font-size:11px}.xat-part-label{display:none}.section-info-button{width:21px}.xat-section-item:nth-child(n+3) .section-info-popover{left:auto;right:0}.section-info-popover{width:min(292px,90vw)}.section-marking{font-size:10px;gap:6px}.xat-player .sidebar{top:104px}.section-locked{display:none}.xat-player header>span{font-size:12px}.xat-player .header-tools{gap:6px}}@media(prefers-reduced-motion:reduce){.exam-switch button,.xat-section-tab,.section-info-button{transition:none}}
.xat-player .question-no{justify-content:flex-start}.xat-player .section-marking{margin-left:18px}
.xat-rule-tooltip{pointer-events:none}
.review-explanation .xat-worked-table{display:table;margin:0;overflow:visible;overflow-wrap:normal}.review-explanation .xat-worked-table th,.review-explanation .xat-worked-table td,.analysis-card .xat-worked-table td:first-child{min-width:0;width:auto;overflow-wrap:normal;word-break:normal}.review-explanation .xat-worked-table:has(th:nth-child(3)){min-width:500px}.review-explanation .xat-worked-table:has(th:nth-child(5)){min-width:620px}
.xat-answer-summary{background:var(--brand-light);border-color:var(--brand-border)}.xat-answer-summary h4{margin:0}.xat-worked-equation{white-space:pre-wrap;overflow-wrap:anywhere;padding:14px 16px;margin:12px 0;border-left:3px solid var(--brand-accent);background:#fff;border-radius:0 8px 8px 0;color:var(--brand-secondary);font:500 14px/1.9 Inter,Arial,sans-serif;font-variant-numeric:tabular-nums}.xat-worked-table-wrap{max-width:100%;overflow-x:auto;margin:12px 0;border:1px solid var(--brand-border);border-radius:9px;background:#fff}.xat-worked-table{width:100%;border-collapse:collapse;text-align:left;font:400 13px/1.7 Inter,Arial,sans-serif}.xat-worked-table th{background:var(--brand-light);color:var(--brand-secondary);font-weight:600}.xat-worked-table th,.xat-worked-table td{padding:11px 13px;vertical-align:top;border-bottom:1px solid var(--brand-light)}.xat-worked-table tr:last-child td{border-bottom:0}.xat-worked-table tbody tr:nth-child(even){background:color-mix(in srgb, var(--brand-light) 45%, white)}.xat-worked-table td:first-child{font-weight:500}.xat-worked-figure{margin:18px 0;background:#fff;border:1px solid var(--brand-border);border-radius:10px;padding:12px}.xat-worked-figure img{display:block;max-width:100%;width:680px;height:auto;margin:auto}.xat-worked-figure figcaption{font:400 12px/1.6 Inter,Arial,sans-serif;color:#64748b;margin-top:10px;padding:0 4px}.xat-solution-block h4{line-height:1.6}.xat-solution-block p{overflow-wrap:anywhere}@media(max-width:720px){.xat-solution-block{padding:14px}.xat-worked-table th,.xat-worked-table td{padding:9px;font-size:12px}.xat-worked-figure{padding:5px}.xat-worked-equation{padding:10px;font-size:13px}}
.xat-force-area{border-top:1px solid var(--brand-light);margin-top:20px;padding-top:18px;text-align:left}.xat-force-note{display:flex;align-items:center;justify-content:space-between;gap:12px;color:#64748b;font:600 12px Inter,Arial,sans-serif}.xat-force-area>p{font-size:12px;line-height:1.6;margin:10px 0 14px;color:#64748b}.pyq-modal .xat-force-button{background:#b93636;border:1px solid #b93636;color:#fff;border-radius:100px;display:flex;align-items:center;justify-content:center;gap:10px;font-size:14px;padding:13px 18px;transition:background .18s,box-shadow .18s}.pyq-modal .xat-force-button:hover{background:#a32e2e;box-shadow:0 4px 12px #b9363626}.xat-rule-help{position:relative;display:inline-flex}.xat-rule-info{display:grid;place-items:center;width:28px;height:28px;border:1px solid var(--brand-border);border-radius:50%;background:color-mix(in srgb, var(--brand-light) 45%, white);color:#64748b}.xat-rule-info svg{width:17px;height:17px}.xat-rule-info:hover,.xat-rule-info:focus-visible{color:var(--brand-primary);background:var(--brand-light)}.xat-rule-tooltip{position:absolute;bottom:calc(100% + 8px);right:0;width:min(280px,65vw);z-index:2;padding:14px 16px;border:1px solid var(--brand-border);border-radius:12px;background:#fff;color:#475569;box-shadow:0 8px 24px color-mix(in srgb, var(--brand-primary) 10.20%, transparent);font:400 12px/1.6 Inter,Arial,sans-serif;opacity:0;visibility:hidden;transform:translateY(4px);transition:opacity .16s,transform .16s,visibility .16s}.xat-rule-tooltip strong{display:block;color:var(--brand-primary);margin-bottom:5px}.xat-rule-help:hover .xat-rule-tooltip,.xat-rule-help:focus-within .xat-rule-tooltip,.xat-rule-help:has([aria-expanded=true]) .xat-rule-tooltip{opacity:1;visibility:visible;transform:translateY(0)}@media(prefers-reduced-motion:reduce){.xat-rule-tooltip,.pyq-modal .xat-force-button{transition:none}}

@media(max-width:720px){.xat-section-item{position:static}.xat-section-item .section-info-popover,.xat-section-item:nth-child(n+3) .section-info-popover{left:8px;right:auto;top:48px;width:min(292px,calc(100vw - 16px))}}
/* Essay and keyboard controls reuse the light explanation surfaces and navy actions. */
.xat-keyboard-workspace{max-width:900px;margin:34px auto;padding:0 20px}.xat-keyboard-workspace h2,.essay-response-card h2{font-family:BDO,Inter,sans-serif;font-size:28px;font-weight:600}.xat-keyboard-workspace label,.xat-essay-question label{display:block;margin:22px 0 10px;font-weight:600;font-size:14px}.xat-keyboard-workspace textarea,#essay-response{display:block;width:100%;box-sizing:border-box;min-height:150px;border:1px solid var(--brand-border);border-radius:12px;background:color-mix(in srgb, var(--brand-light) 45%, white);padding:18px;font:16px/1.8 Inter,sans-serif;color:#101827;resize:vertical;transition:border-color .2s,box-shadow .2s}.xat-keyboard-workspace textarea:focus,#essay-response:focus{outline:none;border-color:var(--brand-accent);box-shadow:0 0 0 3px var(--brand-light)}#essay-response{min-height:310px}.essay-choice-note{display:flex;align-items:center;gap:16px;margin:22px 0;color:#64748b;font-size:13px}.essay-choice-note .primary{flex-shrink:0}.essay-editor-footer{display:flex;justify-content:space-between;gap:15px;margin-top:12px;color:#64748b;font-size:13px}.essay-submitted-response{white-space:pre-wrap;line-height:1.85;margin:20px 0;padding:22px;border:1px solid var(--brand-light);border-radius:12px;background:color-mix(in srgb, var(--brand-light) 45%, white);overflow-wrap:anywhere}.xat-keyboard-workspace .primary{padding:12px 22px;border-radius:30px}.xat-keyboard-workspace .primary small{display:block;margin-top:5px;font-size:11px;font-weight:400}.essay-response-card{margin-bottom:24px}.xat-essay-question .prompt{font-size:17px;line-height:1.7}.xat-essay-question{max-width:none!important}.xat-keyboard-workspace .muted{font-size:13px;margin-top:20px;line-height:1.7}@media(max-width:650px){.essay-choice-note{align-items:flex-start;flex-direction:column;gap:9px}.essay-editor-footer{font-size:11px}#essay-response{padding:14px;min-height:280px}.xat-keyboard-workspace{margin-top:20px}.essay-submitted-response{padding:16px}.xat-section-tab{font-size:12px}}
.review-heading .analysis-tabs{max-width:100%;box-sizing:border-box;overflow-x:auto;justify-content:flex-start}.review-heading .analysis-tabs button{flex:0 0 auto}@media(max-width:600px){.review-heading .analysis-tabs button{padding:8px 18px}.section-tabs{max-width:100%;box-sizing:border-box;overflow-x:auto}.section-tabs .section-tab{flex:0 0 auto}.xat-sections{gap:2px;padding:0 4px}.xat-section-tab{padding:9px 6px;font-size:11px}.xat-section-item{gap:1px}.section-info-button{width:19px}}
.results-page .cards-row>.card{min-width:0;max-width:100%;box-sizing:border-box}@media(max-width:600px){.results-page .section-tabs{width:100%;justify-content:flex-start}.results-page .section-tab{padding:.45rem .85rem}}
@media(max-width:600px){.results-page .nav-links{gap:14px}.results-page .nav-links>.pill{display:none}}

/* Historical paper tables retain readable labels in contained mobile scrollers. */
.xat-question-asset{margin:16px 0;max-width:100%;overflow-x:auto;border-radius:10px}.xat-question-asset .xat-question-figure{display:block;height:auto;margin:0}@media(max-width:720px){.xat-question-asset .xat-question-figure{min-width:720px;max-width:none}}
