/* Shared chapter, setup, specialty, report and saved-question surfaces. */
body[data-view="quiz"] {--qf-blue:#0066ff;--qf-ink:#10203f;--qf-muted:#536581;--qf-line:#e3eaf6;--qf-soft:#edf4ff}
.qf-hero,.qf-section,.qf-chapter-head,.qf-library-head,.qf-empty,.qf-saved-list{color:#10203f}
.qf-hero{display:flex;align-items:end;justify-content:space-between;gap:28px;padding:20px 0 30px;border-bottom:1px solid #dfe7f4}
.qf-hero>div>small{font-size:11px;color:#0066ff;letter-spacing:.13em;font-weight:700}
.qf-hero h1{font-size:38px!important;line-height:1.3;margin:9px 0 10px;color:#10203f!important;letter-spacing:-.035em}
.qf-hero p,.qf-section p,.qf-chapter-head p,.qf-library-head p{font-size:14px;line-height:1.8;color:#697994;margin:6px 0 0}
.qf-stats{display:flex;gap:32px;flex-shrink:0}.qf-stats>span{display:grid;gap:8px}.qf-stats b{font-size:28px;color:#0066ff;font-variant-numeric:tabular-nums}.qf-stats small{font-size:12px;color:#697994}
.qf-section{padding-top:30px}.qf-section>header{display:flex;justify-content:space-between;align-items:baseline;gap:20px;margin-bottom:16px}.qf-section h2{font-size:20px;line-height:1.4;letter-spacing:-.02em;margin:0;color:#10203f}
.qf-subjects{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
#quizNav .qf-subject{display:grid!important;grid-template-columns:44px minmax(0,1fr) 18px!important;align-items:start!important;gap:18px!important;min-height:155px!important;padding:22px!important;background:#fff!important;border:1px solid #e3eaf6!important;border-radius:12px!important;box-shadow:none!important;color:#10203f!important;text-align:left;transform:none}
#quizNav .qf-subject::before,#quizNav .qf-subject::after{display:none!important}.qf-number{font-size:28px;color:#b8cbea;font-weight:500;letter-spacing:-.06em}.qf-subject>span:nth-child(2){display:grid;gap:5px;min-width:0}.qf-subject b{font-size:17px;font-weight:650}.qf-subject small{color:#697994;font-size:11px}.qf-subject em{font-size:12px;color:#697994;font-style:normal}.qf-subject>i{font-style:normal;color:#0066ff;font-size:20px}
.qf-track{display:block;height:3px;border-radius:3px;background:#edf1f8;margin:8px 0 3px;overflow:hidden}.qf-track i{display:block;height:100%;background:#0066ff}
.qf-tools{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.qf-tools>button{display:grid;gap:9px;text-align:left;padding:20px;min-height:142px;border:1px solid #e3eaf6;border-radius:10px;background:#fff;color:#10203f}.qf-tools>button>span{font-size:25px;color:#0066ff}.qf-tools b{font-size:15px}.qf-tools small{font-size:12px;color:#697994;line-height:1.7}
.qf-specialties{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px}.qf-specialties>button{display:grid;gap:8px;text-align:left;padding:16px;min-height:120px;border:1px solid #e3eaf6;border-radius:10px;background:#fff;color:#10203f}.qf-specialties b{font-size:14px}.qf-specialties small{font-size:11px;line-height:1.6;color:#697994}.qf-specialties i{font-style:normal;color:#0066ff;text-align:right}
.qf-breadcrumb{display:flex;align-items:center;gap:12px;padding:24px 0 6px;color:#697994;font-size:12px}.qf-breadcrumb button{min-height:36px;background:none;border:0;padding:0;color:#0066ff;font-size:12px}
.qf-chapter-head{display:flex;justify-content:space-between;align-items:center;gap:24px;padding:16px 0 28px}.qf-chapter-head h2,.qf-library-head h2{font-size:27px;color:#10203f;line-height:1.4;margin:8px 0}.qf-chapter-head>div>small{font-size:12px;color:#0066ff}.qf-chapter-head>div:last-child{display:grid;text-align:right;gap:10px}.qf-chapter-head strong{font-size:38px;color:#0066ff;font-weight:600}.qf-chapter-head strong small{font-size:16px}.qf-chapter-head>div>span{font-size:12px;color:#697994}
.qf-tabs{display:flex;gap:8px;margin-bottom:18px}.qf-tabs button{min-width:68px;min-height:38px;padding:8px 16px;border:1px solid #e3eaf6;border-radius:7px;background:#fff;color:#697994}.qf-tabs button[aria-pressed="true"]{background:#0066ff;border-color:#0066ff;color:#fff}
.qf-chapters{border:1px solid #e3eaf6;border-radius:12px;background:#fff;overflow:hidden}
#quizNav .qf-chapters .qc-item{display:flex!important;align-items:center!important;gap:20px!important;min-height:90px!important;width:100%;padding:17px 22px!important;margin:0!important;border:0!important;border-bottom:1px solid #e3eaf6!important;border-radius:0!important;box-shadow:none!important;background:#fff!important;color:#10203f!important;text-align:left;transform:none!important}.qf-chapters .qc-item:last-child{border-bottom:0!important}.qf-chapters .qc-item::before,.qf-chapters .qc-item::after{display:none!important}.qf-row-number{font-size:12px;color:#8798b3}.qf-chapter-copy{display:grid;gap:8px;flex:1;min-width:0}.qf-chapter-copy b{font-size:15px}.qf-chapter-copy small{color:#697994;font-size:12px}.qf-row-action{color:#0066ff;font-size:12px;white-space:nowrap}
body[data-view="quiz"] .cs-page{position:static!important;transform:none!important;width:100%!important;max-height:none!important;padding:0 28px 24px!important;margin:24px 0 0!important;overflow:visible!important;border:1px solid #e3eaf6!important;border-radius:12px!important;background:#fff!important;color:#10203f!important;box-shadow:none!important}
body[data-view="quiz"] .cs-modal-head{position:static!important;margin:0 -28px 0!important;padding:24px 28px!important;background:#fff!important;border-color:#e3eaf6!important;border-radius:12px 12px 0 0}
body[data-view="quiz"] .cs-title b{font-size:26px;color:#10203f}body[data-view="quiz"] .cs-title span{color:#697994}body[data-view="quiz"] .cs-close{border:1px solid #e3eaf6;background:#fff;color:#697994}
body[data-view="quiz"] .cs-step{padding:22px 0!important;border-color:#e3eaf6!important;background:#fff!important}body[data-view="quiz"] .cs-step>header span,body[data-view="quiz"] .cs-step>summary>span{background:#edf4ff;color:#0066ff}body[data-view="quiz"] .cs-step :is(header,summary) b{color:#10203f}body[data-view="quiz"] .cs-step :is(header,summary) small{color:#697994}
body[data-view="quiz"] :is(.cs-pill,.cs-chapter,.cs-all-btn,.cs-custom-count,.cs-item){color:#536581!important;border:1px solid #e3eaf6!important;background:#fff!important;box-shadow:none!important;border-radius:8px!important;min-height:40px}
body[data-view="quiz"] :is(.cs-pill.on,.cs-chapter.on,.cs-all-btn.on,.cs-item.on){color:#0066ff!important;border-color:#91baff!important;background:#f3f7ff!important}
body[data-view="quiz"] .cs-subjects{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:12px!important}
body[data-view="quiz"] .cs-item{display:grid!important;grid-template-columns:38px minmax(0,1fr) 20px!important;gap:12px!important;min-height:106px!important;padding:16px!important;transform:none!important}.cs-item .qs-code{background:#edf4ff!important;color:#0066ff!important;font-size:17px!important;width:38px!important;height:38px!important;border-radius:7px!important}.cs-item .qs-info b{color:#10203f!important;font-size:13px!important}.cs-item .qs-sub,.cs-item .qs-progress{color:#697994!important;font-size:11px!important}.cs-item .cs-check{color:#0066ff!important;background:none!important}
body[data-view="quiz"] .cs-chapter-block{border-color:#e3eaf6;background:#f9fbff}body[data-view="quiz"] .cs-summary{position:static;border:1px solid #d8e6fc;background:#f3f7ff;color:#536581;border-radius:10px;padding:18px}body[data-view="quiz"] .cs-summary-info b{color:#0066ff}
body[data-view="quiz"] :is(.cs-start,.pm-actions .btn-p){background:#0066ff!important;color:#fff!important;border-color:#0066ff!important;border-radius:8px!important;box-shadow:none!important}
body[data-view="quiz"] .pm-picker{padding:30px!important;margin:20px 0 0!important;border:1px solid #e3eaf6!important;border-radius:12px!important;background:#fff!important;box-shadow:none!important;color:#10203f!important}
body[data-view="quiz"] .pm-head>span{color:#0066ff!important;font-size:10px!important;letter-spacing:.1em}body[data-view="quiz"] .pm-head>b{color:#10203f!important;font-size:27px!important}body[data-view="quiz"] .pm-head>small{color:#697994!important}
body[data-view="quiz"] .pm-cards{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:14px!important;margin:28px 0 22px!important}
body[data-view="quiz"] .pm-card{display:flex;flex-direction:column;align-items:start;gap:10px;min-height:205px;padding:22px!important;background:#fff!important;border:1px solid #e3eaf6!important;border-radius:10px!important;color:#10203f!important;box-shadow:none!important;transform:none!important;text-align:left}
body[data-view="quiz"] .pm-card.on{border-color:#0066ff!important;box-shadow:inset 0 0 0 1px #0066ff!important;background:#f5f9ff!important}body[data-view="quiz"] .pm-card i{display:grid;place-items:center;width:38px;height:38px;background:#edf4ff!important;color:#0066ff!important;border-radius:8px;font-style:normal}body[data-view="quiz"] .pm-card b{font-size:17px;color:#10203f!important}body[data-view="quiz"] .pm-card span{font-size:13px;color:#536581!important}body[data-view="quiz"] .pm-card em{font-style:normal;font-size:12px;line-height:1.8;color:#697994!important}
body[data-view="quiz"] .pm-counts{border-color:#e3eaf6;background:#f8faff;color:#536581}body[data-view="quiz"] .pm-count{border:1px solid #d5e2f6!important;background:#fff!important;color:#536581!important;border-radius:7px}body[data-view="quiz"] .pm-count.on{background:#0066ff!important;color:#fff!important;border-color:#0066ff!important}
body[data-view="quiz"] :is(.quiz-context-bar,.topic-mode-switch){color:#536581!important;background:#fff!important;border-color:#e3eaf6!important;border-radius:9px!important;box-shadow:none!important}body[data-view="quiz"] .quiz-context-bar :is(button,b){color:#10203f!important}body[data-view="quiz"] .quiz-context-bar button{color:#0066ff!important}body[data-view="quiz"] .quiz-context-bar em{color:#697994!important}
body[data-view="quiz"] :is(.topic-hub-intro,.visual-lab-hero){background:#edf4ff!important;border:1px solid #d9e7ff!important;color:#10203f!important;border-radius:12px!important;box-shadow:none!important}body[data-view="quiz"] .topic-hub-intro :is(h2,b){color:#10203f!important}body[data-view="quiz"] .topic-hub-intro :is(p,span,small){color:#536581!important}
body[data-view="quiz"] :is(.ts-card,.visual-route-card,.visual-deck-card,.visual-object-card){background:#fff!important;border:1px solid #e3eaf6!important;border-radius:10px!important;box-shadow:none!important;color:#10203f!important}body[data-view="quiz"] :is(.ts-icon,.ts-track,.ts-section>header i){color:#0066ff!important;border-color:#d3e3ff!important}body[data-view="quiz"] .ts-card::after{background:#0066ff}body[data-view="quiz"] .ts-meta b{color:#10203f!important}body[data-view="quiz"] :is(.ts-meta small,.ts-examples,.ts-progress em){color:#697994!important}
body[data-view="quiz"] :is(.as-report,.quiz-complete,.quiz-load-error){background:#fff!important;border:1px solid #e3eaf6!important;border-radius:12px!important;color:#10203f!important;box-shadow:none!important}body[data-view="quiz"] .as-hero{background:#edf4ff!important;color:#10203f!important;border-radius:12px!important}body[data-view="quiz"] .as-score{color:#0066ff!important}body[data-view="quiz"] .as-item{background:#fff!important;border-color:#e3eaf6!important;color:#10203f!important}
.qf-library-head{position:relative;padding:0 0 24px}.qf-library-head>span{display:block;margin-top:16px;color:#0066ff;font-size:13px}.qf-saved-list{display:grid;gap:12px}.qf-saved-list article{display:flex;align-items:center;gap:14px;background:#fff;border:1px solid #e3eaf6;border-radius:10px;padding:18px}.qf-saved-list article>button:first-child{display:grid;gap:10px;text-align:left;flex:1;min-width:0;background:none;border:0;color:#10203f}.qf-saved-list small{font-size:12px;color:#697994}.qf-saved-list b{font-size:15px;line-height:1.8;overflow-wrap:anywhere}.qf-saved-list span{font-size:12px;color:#0066ff}.qf-saved-list article>button+button{background:none;border:0;color:#697994;font-size:12px;min-height:40px}.qf-empty{text-align:center;background:#fff;border:1px solid #e3eaf6;border-radius:12px;padding:52px 24px}.qf-empty>span{font-size:40px;color:#0066ff}.qf-empty h3{font-size:22px;margin:16px 0 10px}.qf-empty p{font-size:14px;line-height:1.8;color:#697994;margin-bottom:24px}.qf-favorite{margin-left:auto;color:#697994!important;background:transparent;border:0;white-space:nowrap}.qf-favorite[aria-pressed="true"]{color:#0066ff!important}
body[data-view="quiz"] :is(.qf-section,.qf-tabs,.qf-chapters,.qf-empty,.qf-saved-list) button:focus-visible{outline:2px solid #0066ff;outline-offset:3px}
body[data-view="quiz"] .qf-hero:has(~ #quizNav .qf-breadcrumb){display:none}
body[data-view="quiz"].quiz-answering .qf-hero{display:none!important}
@media(min-width:769px){
 html[data-theme] body.desktop-ui[data-view="quiz"]:not(.quiz-answering) main{margin-left:228px!important;width:calc(100% - 228px)!important}
 html[data-theme] body.desktop-ui[data-view="quiz"]:not(.quiz-answering):has(.sidebar:not(.expanded)) main{margin-left:72px!important;width:calc(100% - 72px)!important}
 html[data-theme] body.desktop-ui[data-view="quiz"]:not(.quiz-answering) #view{max-width:none!important;padding:90px 36px 64px!important}
 html[data-theme] body.desktop-ui[data-view="quiz"]:not(.quiz-answering) .quiz-page{max-width:1120px!important;width:100%!important;margin:0 auto!important;padding:0!important}
 html[data-theme] body.desktop-ui[data-view="quiz"].quiz-answering main{margin-left:0!important;width:100%!important}
}
@media(max-width:1100px){.qf-tools{grid-template-columns:repeat(2,minmax(0,1fr))}.qf-specialties{grid-template-columns:repeat(3,minmax(0,1fr))}.qf-hero{align-items:start}.qf-stats{gap:16px}.qf-stats b{font-size:23px}.qf-hero h1{font-size:30px!important}}
@media(max-width:768px){.qf-hero{display:block;padding:18px 0 24px}.qf-stats{margin-top:24px;gap:30px}.qf-section>header{display:block}.qf-section p{font-size:12px}.qf-subjects{grid-template-columns:1fr}.qf-specialties{grid-template-columns:repeat(2,minmax(0,1fr))}.qf-chapter-head{display:block}.qf-chapter-head>div:last-child{display:none}.qf-row-action{display:none}.qf-chapters .chapter-priority{display:none}.qf-library-head h2{font-size:24px}.qf-breadcrumb{padding-top:12px}.qf-saved-list article{display:block}.qf-empty{padding:35px 18px}.qf-empty h3{font-size:20px}body[data-view="quiz"] .pm-picker{padding:20px!important}body[data-view="quiz"] .pm-cards{grid-template-columns:1fr!important;margin:20px 0!important}body[data-view="quiz"] .pm-card{min-height:0!important;padding:18px!important}body[data-view="quiz"] .cs-page{padding:0 18px 20px!important}body[data-view="quiz"] .cs-modal-head{margin:0 -18px!important;padding:20px 18px!important}body[data-view="quiz"] .cs-subjects{grid-template-columns:1fr!important}.qf-hero h1{font-size:29px!important}}
@media(hover:hover){#quizNav .qf-subject:hover,.qf-tools>button:hover,.qf-specialties>button:hover{border-color:#8cb9ff!important;background:#f7faff!important}.qf-chapters .qc-item:hover{background:#f7faff!important}}

body[data-view="quiz"]>.geo-faq{display:none!important}
.qf-past-entry{display:flex;align-items:center;gap:14px;width:100%;margin:0 0 20px;padding:18px 22px;border:1px solid #cfe0fb;border-radius:12px;background:#edf4ff;color:#10203f;text-align:left}.qf-past-entry b{font-size:16px}.qf-past-entry span{flex:1;color:#536581;font-size:13px}.qf-past-head{padding:8px 0 20px}.qf-past-head h2{margin:0 0 8px;color:#10203f}.qf-past-head p{margin:0;color:#697994;line-height:1.7}.qf-past-filters{display:flex;align-items:end;gap:12px;margin:10px 0 22px;padding:16px;background:#fff;border:1px solid #e3eaf6;border-radius:12px}.qf-past-filters label{display:grid;gap:7px;color:#536581;font-size:12px}.qf-past-filters select{min-width:170px;padding:10px 12px;border:1px solid #d5e3fa;border-radius:8px;background:#fff;color:#10203f}.qf-past-summary{display:grid;gap:10px;padding:22px;background:#fff;border:1px solid #e3eaf6;border-radius:12px;color:#10203f}.qf-past-summary span{color:#0066ff;font-size:15px}.qf-past-summary small{color:#697994}.qf-past-summary .btn{justify-self:start;margin-top:6px}
@media(max-width:600px){.qf-past-filters{display:grid;grid-template-columns:1fr}.qf-past-filters select{width:100%;min-width:0}.qf-past-entry{margin:0 0 14px}.qf-past-entry span{font-size:12px}}
.qf-past-total{margin-top:12px;color:#0066ff;font-size:14px;font-weight:600}
.qf-past-filters label{flex:1;min-width:0}.qf-past-filters select{width:100%;min-height:44px;font:inherit;font-size:14px}
/* Year badges and stems share the content column beside the question number. */
body[data-view="quiz"] .quiz-stem>.real-exam-badge{grid-column:2;justify-self:start}
body[data-view="quiz"] .quiz-stem>.quiz-q{grid-column:2;min-width:0}
body[data-view="quiz"] .qf-hero:has(~ #quizNav .cs-page),body[data-view="quiz"] .qf-hero:has(~ #quizBody .pm-picker){display:none}
body[data-view="quiz"] .cs-item .qs-code{color:#0066ff!important;background:#edf4ff!important}body[data-view="quiz"] .pm-card.on::after{color:#0066ff!important}
/* Visual question bank follows the same palette; correctness keeps semantic colour. */
body[data-view="quiz"] :is(.visual-practice,.visual-session-head,.visual-next){color:#10203f!important}
body[data-view="quiz"] :is(.visual-question,.visual-session-head,.visual-next,.visual-result-card){background:#fff!important;border-color:#e3eaf6!important;border-radius:10px!important;box-shadow:none!important}
body[data-view="quiz"] :is(.visual-question-copy h3,.visual-session-head b,.visual-result-card h2){color:#10203f!important}
body[data-view="quiz"] :is(.visual-q-meta,.visual-session-metrics small,.visual-next>span){color:#697994!important}
body[data-view="quiz"] .visual-options>button{background:#fff!important;border:1px solid #dce6f5!important;border-radius:8px!important;color:#10203f!important;min-height:48px;box-shadow:none!important}
body[data-view="quiz"] .visual-options>button.selected{background:#edf4ff!important;border-color:#0066ff!important}
body[data-view="quiz"] .visual-options>button.correct{background:#f1faf6!important;border-color:#73b99b!important}
body[data-view="quiz"] .visual-options>button.wrong{background:#fff4f2!important;border-color:#dd9b91!important}
body[data-view="quiz"] .visual-options .k{background:#f3f7ff!important;color:#0066ff!important;border-color:#d5e3fa!important}
body[data-view="quiz"] :is(.visual-next .primary,.visual-result-actions .primary){background:#0066ff!important;color:#fff!important;border-color:#0066ff!important}
body[data-view="quiz"] :is(.visual-progress-line i,.visual-session-metrics b){color:#0066ff!important}
body[data-view="quiz"] .visual-progress-line i{background:#0066ff!important}
body[data-view="quiz"] .as-hero-score>b{color:#0066ff!important;font-family:inherit!important;font-variant-numeric:tabular-nums}
body[data-view="quiz"] .as-hero-score em{color:#536581!important}
body[data-view="quiz"] .as-tab.on{color:#0066ff!important;border-color:#0066ff!important;background:#edf4ff!important}
