/* The workspace owns its reading surface; legacy quiz flows keep their DOM. */
@media(min-width:769px){
 html[data-theme] body:not(.client-ui)[data-view="quiz"]{--qe-ink:#10203f;--qe-ink-2:#536581;--qe-teal:#0066ff;--qe-teal-hi:#3489ff;--qe-copper:#0066ff;--qe-line:#e3eaf6}
 html[data-theme] body:not(.client-ui)[data-view="quiz"] #view{background:#f7f9fe!important;background-image:none!important}
 html[data-theme] body:not(.client-ui)[data-view="quiz"].quiz-answering #view{padding:88px 24px 40px!important;margin-left:0!important}
 html[data-theme] body:not(.client-ui)[data-view="quiz"].quiz-answering #view .quiz-page.is-answering{width:100%!important;max-width:1480px!important;margin:0 auto!important;padding:0!important}
 body:not(.client-ui)[data-view="quiz"].quiz-answering #quizNav,body:not(.client-ui)[data-view="quiz"].quiz-answering .quiz-page>.view-head{display:none}
 body:not(.client-ui)[data-view="quiz"].quiz-answering #immersiveNav{top:0;left:0;right:0;min-height:64px;border:0;border-bottom:1px solid #e3eaf6;border-radius:0;background:#fffffff5;box-shadow:none;backdrop-filter:blur(12px)}
 html[data-theme] body:not(.client-ui)[data-view="quiz"] #immersiveNav .immersive-brand b{color:#10203f!important;font-family:var(--font-ui)!important}
 html[data-theme] body:not(.client-ui)[data-view="quiz"] #immersiveNav .immersive-brand small{color:#536581!important}
 html[data-theme] body:not(.client-ui)[data-view="quiz"] #immersiveNav>button:not(.immersive-brand){color:#0066ff!important;background:#edf4ff!important;border:1px solid #d5e4ff!important;border-radius:8px}
 html[data-theme] body:not(.client-ui)[data-view="quiz"] #immersiveNav>div button{color:#0066ff!important;background:#fff!important;border:1px solid #c4d9fb!important;border-radius:8px}
 html[data-theme] body:not(.client-ui)[data-view="quiz"] #immersiveNav>div button:first-child{color:#fff!important;background:#0066ff!important;border-color:#0066ff!important}
 #quizBody .quiz-workspace-shell{--qw-stem-size:24px;--qw-option-size:18px;display:grid;grid-template-columns:220px minmax(0,1fr) 236px;gap:20px;align-items:start;color:#10203f}
 #quizBody .quiz-workspace-shell>aside{position:sticky;top:84px;background:#fff;border:1px solid #e3eaf6;border-radius:10px;box-shadow:0 2px 9px #173b7103;min-width:0;max-height:calc(100dvh - 104px);display:flex;flex-direction:column}
 #quizBody .quiz-workspace-center{min-width:0}
 #quizBody .quiz-workspace-panel-head{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:15px 16px;font-size:17px;font-weight:650}
 #quizBody .quiz-workspace-panel-head button{font-size:12px;color:#0066ff;min-height:30px;white-space:nowrap}
 #quizBody .quiz-workspace-course{padding:10px 16px 18px;border-bottom:1px solid #e3eaf6;display:grid;gap:7px;flex:none}
 #quizBody .quiz-workspace-course small{font-size:13px;color:#536581}
 #quizBody .quiz-workspace-course b{font-size:16px;line-height:1.6;font-weight:600}
 #quizBody .quiz-workspace-chapters{padding:8px 0;overflow:auto;min-height:0}
 #quizBody .quiz-workspace-chapters button{display:flex;gap:10px;align-items:flex-start;width:100%;padding:13px 15px;text-align:left;border-left:3px solid transparent;font-size:13px;line-height:1.6}
 #quizBody .quiz-workspace-chapters button span{flex:0 0 18px;color:#697994}
 #quizBody .quiz-workspace-chapters button.active{background:#edf4ff;color:#0066ff;border-left-color:#0066ff}
 #quizBody .quiz-workspace-answer-grid{padding:10px 16px 18px;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px;overflow:auto;min-height:0}
 #quizBody .quiz-workspace-answer-grid button{position:relative;min-height:36px;aspect-ratio:1;border:1px solid #e0e7f3;border-radius:6px;font-size:13px;background:#fff;color:#293b58}
 #quizBody .quiz-workspace-answer-grid button.current{border:2px solid #0066ff;color:#0066ff}
 #quizBody .quiz-workspace-answer-grid button.answered{background:#edf4ff;border-color:#b9d2ff}
 #quizBody .quiz-workspace-answer-grid button:disabled{cursor:default;opacity:.75}
 #quizBody .quiz-workspace-answer-grid i{display:none}
 #quizBody .quiz-workspace-answer-grid .answered i{display:block;position:absolute;bottom:2px;right:2px;width:10px;height:10px;background:#0066ff;border-radius:50%}
 #quizBody .quiz-workspace-answer-grid .answered i::after{content:'✓';font-size:7px;line-height:10px;display:block;color:#fff}
 #quizBody .quiz-workspace-legend{display:flex;justify-content:space-between;gap:5px;padding:12px 15px;font-size:12px;color:#536581;border-top:1px solid #e3eaf6;flex:none}
 #quizBody .quiz-workspace-legend span{display:flex;gap:4px;align-items:center}
 #quizBody .quiz-workspace-legend i{width:12px;height:12px;border:1px solid #cbd7ea;border-radius:3px}
 #quizBody .quiz-workspace-legend .answered{background:#edf4ff;border-color:#b9d2ff}
 #quizBody .quiz-workspace-legend .current{border:2px solid #0066ff}
 #quizBody .quiz-workspace-count{padding:10px 15px 18px;font-size:12px;color:#536581;flex:none}
 #quizBody .quiz-workspace-count b{color:#0066ff}
 #quizBody .quiz-workspace-tools{display:flex;justify-content:flex-end;align-items:center;gap:8px;min-height:36px;margin-bottom:10px;color:#536581;font-size:12px}
 #quizBody .quiz-workspace-tools button{min-height:32px;padding:4px 9px;border:1px solid #d9e4f5;background:#fff;border-radius:6px;color:#536581}
 #quizBody .quiz-workspace-tools button[aria-pressed="true"]{color:#0066ff;border-color:#9bc0ff;background:#edf4ff}
 #quizBody .quiz-workspace-shell .practice-stage{width:100%!important;max-width:none!important;margin:0!important;background:#fff;border:1px solid #e3eaf6;border-radius:10px;box-shadow:0 2px 9px #173b7103;isolation:isolate}
 #quizBody .quiz-workspace-shell .practice-stage::before{display:none!important}
 #quizBody .quiz-workspace-shell .quiz-session-head{display:grid!important;grid-template-columns:1fr auto;gap:9px!important;padding:20px 24px!important;margin:0!important;min-height:0!important;border:0!important;background:#fff!important;border-radius:10px 10px 0 0}
 #quizBody .quiz-workspace-shell .quiz-session-head>button{grid-column:1/-1;justify-self:start;padding:0!important;min-height:26px;font-size:13px!important;font-weight:500!important;color:#0066ff!important}
 #quizBody .quiz-workspace-shell .quiz-session-head h2{color:#10203f!important;font:650 18px/1.5 var(--font-ui)!important;letter-spacing:0;margin:0}
 #quizBody .quiz-workspace-shell .quiz-session-head>div:nth-child(2)>span{color:#697994!important;font:500 12px/1.6 var(--font-ui)!important;letter-spacing:0}
 #quizBody .quiz-workspace-shell .practice-score{border:0!important;border-radius:0!important;box-shadow:none!important;background:none!important;padding:0!important;gap:10px;font-size:12px!important;align-self:center}
 #quizBody .quiz-workspace-shell .practice-score b{color:#0066ff!important;font-family:var(--font-ui)!important}
 #quizBody .quiz-workspace-shell .practice-progress{height:3px!important;margin:0!important;background:#e8eef9!important}
 #quizBody .quiz-workspace-shell .practice-progress i{background:#0066ff!important}
 #quizBody .quiz-workspace-shell .practice-card{padding:24px!important;margin:0!important;border:0!important;border-radius:0 0 10px 10px!important;background:#fff!important;box-shadow:none!important;backdrop-filter:none!important;overflow:visible!important}
 #quizBody .quiz-workspace-shell .practice-meta{padding:0!important;margin:0 0 22px!important;border:0!important;gap:8px;flex-wrap:wrap;font-size:12px;color:#697994}
 #quizBody .quiz-workspace-shell .practice-meta .tag{border:1px solid #c7dcff!important;border-radius:4px!important;padding:3px 7px!important;font-size:12px!important;background:#f4f8ff!important;color:#0066ff!important}
 #quizBody .quiz-workspace-shell .practice-meta button{color:#536581!important;font-size:12px;min-height:28px}
 #quizBody .quiz-workspace-shell .quiz-stem{display:block!important;margin:0 0 24px!important;padding:0!important}
 #quizBody .quiz-workspace-shell .quiz-stem>i{display:none!important}
 #quizBody .quiz-workspace-shell .quiz-q{font-family:var(--font-ui)!important;font-size:var(--qw-stem-size)!important;font-weight:650!important;line-height:1.65!important;letter-spacing:0!important;color:#10203f!important;overflow-wrap:anywhere}
 #quizBody .quiz-workspace-shell .quiz-options{display:grid!important;grid-template-columns:1fr!important;gap:12px!important;margin:0!important}
 #quizBody .quiz-workspace-shell .quiz-options .opt{display:flex!important;align-items:center!important;gap:14px!important;width:100%!important;min-height:60px!important;padding:12px 16px!important;border:1px solid #dde6f3!important;border-radius:9px!important;background:#fff!important;color:#10203f!important;text-align:left!important;box-shadow:none!important;transform:none!important;font:400 var(--qw-option-size)/1.6 var(--font-ui)!important;overflow-wrap:anywhere}
 #quizBody .quiz-workspace-shell .quiz-options .opt .k{display:grid!important;place-items:center;flex:0 0 30px!important;width:30px!important;height:30px!important;border:1px solid #d7e1ef!important;border-radius:50%!important;color:#293b58!important;background:#fff!important;font:500 16px/1 var(--font-ui)!important}
 #quizBody .quiz-workspace-shell .quiz-options .opt.selected{border-color:#0066ff!important;background:#edf4ff!important;box-shadow:0 0 0 1px #0066ff!important}
 #quizBody .quiz-workspace-shell .quiz-options .opt.selected .k{color:#fff!important;background:#0066ff!important;border-color:#0066ff!important}
 #quizBody .quiz-workspace-shell .quiz-options .opt.ok{background:#f2faf7!important;border-color:#6ebd9c!important}
 #quizBody .quiz-workspace-shell .quiz-options .opt.no{background:#fff5f4!important;border-color:#dd938a!important}
 #quizBody .quiz-workspace-shell .quiz-options .opt .opt-state{font:600 12px/1.4 var(--font-ui)!important;margin-left:auto;flex-shrink:0}
 #quizBody .quiz-workspace-shell .practice-nav{position:static!important;display:flex!important;align-items:center;gap:12px;justify-content:space-between;padding:22px 0 0!important;margin:22px 0 0!important;border:0!important;border-top:1px solid #e3eaf6!important;border-radius:0!important;background:transparent!important;box-shadow:none!important}
 #quizBody .quiz-workspace-shell .practice-nav button{min-height:44px!important;padding:10px 18px!important;font:600 15px/1.4 var(--font-ui)!important;border-radius:7px!important;box-shadow:none!important}
 #quizBody .quiz-workspace-shell .quiz-nav-prev{background:#fff!important;color:#0066ff!important;border:1px solid #b6d0ff!important}
 #quizBody .quiz-workspace-shell .quiz-nav-next{background:#fff!important;color:#0066ff!important;border:1px solid #b6d0ff!important}
 #quizBody .quiz-workspace-shell .practice-card.is-answered .quiz-nav-next{background:#0066ff!important;color:white!important;border-color:#0066ff!important}
 #quizBody .quiz-workspace-shell :is(.quiz-workspace-submit,.multi-submit){display:block;width:100%;min-height:46px;padding:12px 18px!important;margin:16px 0 0!important;border:0!important;border-radius:7px!important;background:#0066ff!important;color:white!important;font:600 16px/1.5 var(--font-ui)!important;box-shadow:none!important}
 #quizBody .quiz-workspace-shell :is(.quiz-workspace-submit,.multi-submit):disabled{background:#dce8fa!important;color:#637a9b!important;cursor:default}
 #quizBody .quiz-workspace-shell [hidden]{display:none!important}
 #quizBody .quiz-workspace-shell .quiz-result{padding:18px!important;margin:24px 0 0!important;border-radius:8px!important;background:#f5f8ff!important;border:1px solid #dfe9f8!important}
 #quizBody .quiz-workspace-shell .quiz-result.wrong{background:#fff8f6!important;border-color:#f0d9d4!important}
 #quizBody .quiz-workspace-shell .result-title{font:650 17px/1.5 var(--font-ui)!important}
 #quizBody .quiz-workspace-shell .quiz-exp-split{display:flex!important;flex-direction:column!important;gap:20px!important;margin-top:20px}
 #quizBody .quiz-workspace-shell :is(.quiz-exp-text,.quiz-exp-visual){width:100%!important;min-width:0!important}
 #quizBody .quiz-workspace-shell .quiz-exp{font:400 16px/1.9 var(--font-ui)!important;color:#344766!important;background:#fff!important}
 #quizBody .quiz-workspace-shell .quiz-exp-split img{max-width:100%;height:auto}
 #quizBody .quiz-workspace-shell .question-context{margin-top:18px!important;border-color:#e0e9f8!important;background:#f7faff!important;color:#536581!important}
 #quizBody .quiz-workspace-shell[data-font="0"]{--qw-stem-size:22px;--qw-option-size:16px}
 #quizBody .quiz-workspace-shell[data-font="2"]{--qw-stem-size:28px;--qw-option-size:20px}
 #quizBody .quiz-workspace-shell.is-compact .practice-card{padding:20px!important}
 #quizBody .quiz-workspace-shell.is-compact .practice-meta .review-repeat-toggle{display:none}
 #quizBody .quiz-workspace-shell.is-left-collapsed{grid-template-columns:46px minmax(0,1fr) 236px}
 #quizBody .quiz-workspace-shell.is-right-collapsed{grid-template-columns:220px minmax(0,1fr) 46px}
 #quizBody .quiz-workspace-shell.is-left-collapsed.is-right-collapsed{grid-template-columns:46px minmax(0,1fr) 46px}
 #quizBody .quiz-workspace-shell.is-left-collapsed .quiz-workspace-left>:not(.quiz-workspace-panel-head),#quizBody .quiz-workspace-shell.is-right-collapsed .quiz-workspace-right>:not(.quiz-workspace-panel-head){display:none}
 #quizBody .quiz-workspace-shell.is-left-collapsed .quiz-workspace-left .quiz-workspace-panel-head,#quizBody .quiz-workspace-shell.is-right-collapsed .quiz-workspace-right .quiz-workspace-panel-head{flex-direction:column;padding:14px 5px;font-size:14px}
 #quizBody .quiz-workspace-shell.is-left-collapsed .quiz-workspace-left .quiz-workspace-panel-head span,#quizBody .quiz-workspace-shell.is-right-collapsed .quiz-workspace-right .quiz-workspace-panel-head span{writing-mode:vertical-rl}
 #quizBody .quiz-workspace-shell.is-left-collapsed .quiz-workspace-left .quiz-workspace-panel-head button,#quizBody .quiz-workspace-shell.is-right-collapsed .quiz-workspace-right .quiz-workspace-panel-head button{writing-mode:vertical-rl}
 @media(max-width:1180px){
  #quizBody .quiz-workspace-shell{grid-template-columns:180px minmax(0,1fr) 190px;gap:14px}
  #quizBody .quiz-workspace-shell.is-left-collapsed{grid-template-columns:46px minmax(0,1fr) 190px}
  #quizBody .quiz-workspace-shell.is-right-collapsed{grid-template-columns:180px minmax(0,1fr) 46px}
  #quizBody .quiz-workspace-shell .practice-card{padding:20px!important}
  #quizBody .quiz-workspace-answer-grid{gap:5px;padding:8px 10px}
  #quizBody .quiz-workspace-legend{padding:10px;font-size:11px}
 }
 @media(max-width:1000px){
  #quizBody .quiz-workspace-shell,#quizBody .quiz-workspace-shell.is-left-collapsed{grid-template-columns:minmax(0,1fr) 190px}
  #quizBody .quiz-workspace-shell.is-right-collapsed,#quizBody .quiz-workspace-shell.is-left-collapsed.is-right-collapsed{grid-template-columns:minmax(0,1fr) 46px}
  #quizBody .quiz-workspace-left{display:none!important}
 }
 @media(hover:hover){#quizBody .quiz-workspace-shell .quiz-options .opt:not(.ok):not(.no):hover{background:#f6f9ff!important;border-color:#a9c9ff!important}#quizBody .quiz-workspace-chapters button:hover{background:#f6f9ff}}
}
@media(prefers-reduced-motion:reduce){#quizBody .quiz-workspace-shell *{scroll-behavior:auto!important;transition:none!important}}
