/* Reading exam and teacher preview — restrained computer-delivered test styling. */
body.exam-mode { background: #e5e8ef !important; }
body.exam-mode > header, body.exam-mode > .app > .topbar { display: none !important; }
body.exam-mode .app { width: 100%; max-width: none; margin: 0; }
body.exam-mode #testView { padding: 0; }
body.exam-mode #testView .exam-shell { min-height: 100dvh; }

.exam-intro, .exam-shell, .exam-preview-shell { font-family: Arial, "Segoe UI", "Microsoft YaHei", sans-serif; color: #20242c; }
.exam-intro { width: min(1190px, calc(100vw - 28px)); min-height: min(680px, calc(100dvh - 28px)); margin: 14px auto; background: #fafbfe; border: 1px solid #c8ceda; box-shadow: 0 2px 11px #1e293b19; display: flex; flex-direction: column; }
.intro-title { padding: 26px 34px 15px; display: flex; align-items: baseline; gap: 16px; }
.intro-title span { font-size: 24px; font-weight: 700; }
.intro-title small { color: #687487; font-size: 13px; }
.intro-body { flex: 1; padding: 0 34px; }
.intro-body h2 { margin: 30px 0 14px; font-size: 16px; font-weight: 700; }
.intro-body ul { padding-left: 45px; margin: 0; line-height: 1.95; font-size: 15px; }
.intro-time { color: #434b58; margin: 10px 0 0; font-size: 14px; }
.intro-candidate { color: #5b6879; margin-top: 24px; }
.intro-action { text-align: center; padding: 18px 20px 30px; }
.intro-action p { color: #4d6176; font-size: 14px; margin: 0 0 17px; }
.exam-intro button.exam-button { border: 1px solid #899aaa; border-radius: 3px; background: linear-gradient(#fafbfc,#dce2e9); color: #14212f; padding: 10px 27px; font-weight: 700; min-height: 43px; }

.exam-shell { --exam-ink: #20242c; --exam-paper: #fff; --exam-tint: #eef0f8; --exam-border: #bcc5d3; --exam-accent: #c9e7f4; --exam-blue: #17577c; display: flex; flex-direction: column; background: #e8eaf3; color: var(--exam-ink); }
.exam-shell[data-palette="yellow-black"] { --exam-ink: #ffea70; --exam-paper: #151515; --exam-tint: #202020; --exam-border: #f5d950; --exam-accent: #4f471d; --exam-blue: #ffea70; }
.exam-shell[data-palette="blue-white"] { --exam-ink: #123f73; --exam-paper: #fff; --exam-tint: #edf5fc; --exam-border: #83aacd; --exam-accent: #cbe4f7; --exam-blue: #123f73; }
.exam-shell[data-palette="blue-cream"] { --exam-ink: #123f73; --exam-paper: #fffbe9; --exam-tint: #f3eedb; --exam-border: #aab9bb; --exam-accent: #dbe8d5; --exam-blue: #123f73; }
.exam-shell[data-text-size="large"] .exam-panes { font-size: 18px; }
.exam-shell[data-text-size="extra"] .exam-panes { font-size: 21px; }
.exam-shell .exam-toolbar { min-height: 39px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; padding: 4px 15px; background: linear-gradient(#404754,#111821); color: #fff; border-bottom: 3px solid #9ca7b8; }
.exam-identity { display: flex; align-items: center; gap: 11px; min-width: 0; font-size: 12px; }
.exam-identity strong { white-space: nowrap; }
.exam-identity span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #dce2eb; }
.exam-timer { font-size: 14px; font-weight: 700; text-align: center; min-width: 130px; }
.exam-timer::before { content: '◷'; font-size: 18px; vertical-align: -1px; padding-right: 8px; }
.exam-timer.danger-text { color: #ff536b; animation: exam-warning 1s steps(2,start) infinite; }
@keyframes exam-warning { 50% { opacity: .33; } }
.exam-tools { display: flex; justify-content: end; gap: 7px; }
.exam-shell .exam-tools button, .exam-shell .exam-save-actions button, .exam-shell .exam-progress button, .exam-shell .dialog-actions button, .exam-shell .exam-hide-screen button { border-radius: 3px; border: 1px solid #8995a5; background: linear-gradient(#fff,#d5dae3); color: #172432; padding: 4px 13px; min-height: 29px; font-size: 12px; font-weight: 600; box-shadow: none; transform: none; }
.exam-shell button:hover { filter: brightness(.94); }
.exam-shell button:focus-visible, .exam-shell input:focus-visible { outline: 3px solid #1676a6; outline-offset: 2px; }
.exam-part { background: var(--exam-paper); color: var(--exam-ink); border: 1px solid var(--exam-border); margin: 10px 12px 8px; padding: 10px 13px 12px; display: flex; flex-direction: column; gap: 10px; min-height: 77px; }
.exam-part strong { font-size: 17px; }
.exam-part span { font-size: 13px; }
.exam-panes { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; margin: 0 12px; min-height: 0; flex: 1; font-size: 15px; line-height: 1.53; }
.exam-pane { background: var(--exam-paper); color: var(--exam-ink); border: 1px solid var(--exam-border); min-width: 0; height: calc(100dvh - 214px); min-height: 440px; overflow: auto; scrollbar-color: #aeb9c9 transparent; }
.exam-passage-pane { padding: 17px 24px; }
.pane-title { font-size: 20px; line-height: 1.3; margin-bottom: 24px; }
.exam-shell .passage-box.highlightable { max-height: none; overflow: visible; padding: 0; border: 0; border-radius: 0; background: transparent; color: inherit; white-space: pre-wrap; line-height: 1.55; font-size: 1em; }
.exam-shell .passage-box p { margin: 0 0 1.25em; }
.exam-questions-pane { padding: 13px 16px 30px; }
.exam-group-heading { font-size: 16px; margin: 0 0 7px; }
.exam-instruction { margin: 0 0 21px; font-size: .93em; line-height: 1.48; white-space: pre-wrap; }
.exam-shell .group-content-display { background: var(--exam-tint); border: 1px solid var(--exam-border); color: var(--exam-ink); border-radius: 0; }
.exam-question-row { border: 1px solid #d0d5df; margin: 3px 0; background: var(--exam-paper); }
.exam-question-row.expanded { border-color: #8bc2dd; background: var(--exam-tint); }
.exam-question-row .question-expander { display: flex; align-items: baseline; gap: 12px; text-align: left; width: 100%; min-height: 38px; padding: 8px 11px; border: 0; border-radius: 0; background: linear-gradient(#fcfcfd,#e9ebf0); color: var(--exam-ink); font: inherit; font-size: .93em; transform: none; }
.exam-question-row.expanded .question-expander { background: var(--exam-accent); }
.question-number { font-weight: 700; flex: 0 0 auto; }
.question-prompt { flex: 1; }
.question-answer-summary { font-size: .8em; color: var(--exam-blue); white-space: nowrap; margin-left: auto; }
.question-options { padding: 8px 16px 12px 32px; }
.question-options label, .choice-list label { color: var(--exam-ink); display: flex; align-items: center; gap: 10px; min-height: 33px; margin: 0; font-weight: 400; font-size: .9em; cursor: pointer; }
.question-options input, .choice-list input { width: auto; accent-color: #1874a1; margin: 0; box-shadow: none; }
.exam-question-block { border-bottom: 1px solid var(--exam-border); padding: 12px 6px; }
.question-block-title { display: flex; gap: 12px; align-items: baseline; margin: 0 0 9px; color: var(--exam-ink); font-weight: 400; font-size: .94em; }
.exam-question-block > input { width: min(280px, 100%); border: 1px solid #9aaabb; border-radius: 2px; font-size: .95em; color: var(--exam-ink); background: var(--exam-paper); }
.matching-scroll { overflow-x: auto; }
.exam-shell .matching-grid { margin: 4px 0 0; width: 100%; border-collapse: collapse; font-size: .9em; background: var(--exam-paper); }
.exam-shell .matching-grid th, .exam-shell .matching-grid td { border: 1px solid #9ea9bc; color: var(--exam-ink); padding: 0; background: var(--exam-paper); vertical-align: middle; }
.exam-shell .matching-grid thead th { background: #d8dff5; text-align: center; font-size: .9em; min-width: 34px; padding: 6px 4px; }
.exam-shell .matching-grid thead th:first-child { text-align: left; padding-left: 10px; width: 62%; }
.exam-shell .matching-grid tbody th { font-weight: 400; padding: 9px 10px; text-align: left; line-height: 1.4; }
.matching-number { font-weight: 700; padding-right: 5px; }
.exam-shell .matching-grid td label { display: grid; place-items: center; margin: 0; width: 100%; min-height: 50px; cursor: pointer; }
.exam-shell .matching-grid td input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.exam-shell .matching-grid td span { width: 15px; height: 15px; border: 1px solid #a8b1bd; border-radius: 2px; }
.exam-shell .matching-grid td input:checked + span { background: #31849f; border-color: #26718a; }
.exam-shell .matching-grid td input:checked + span::after { content: '✓'; color: white; display: block; font-size: 13px; line-height: 13px; text-align: center; }
.exam-shell .matching-grid td:has(input:checked) { background: #d8f0fa; }
.exam-shell .matching-grid td:has(input:focus-visible) { outline: 3px solid #1676a6; outline-offset: -3px; }
.headings-bank-title { font-size: 16px; margin: 22px 0 15px; }
.headings-bank { display: flex; flex-direction: column; align-items: flex-start; gap: 9px; min-height: 60px; }
.exam-shell .heading-option { display: inline-flex; gap: 10px; align-items: flex-start; border-radius: 1px; border: 1px solid #d4d9e2; padding: 5px 9px; background: linear-gradient(#fff,#eff0f4); text-align: left; color: var(--exam-ink); font-weight: 600; font-size: .88em; cursor: grab; transform: none; }
.exam-shell .heading-option.selected { outline: 2px solid #1b78a0; }
.heading-hint { color: #536277; font-size: 12px; line-height: 1.45; }
.exam-shell .heading-slot { display: flex; align-items: center; gap: 8px; width: min(340px, 92%); min-height: 29px; margin: 11px 0 5px; padding: 3px 8px; border: 1px solid #9db6bf; border-radius: 1px; background: #f8fbfc; color: #2c4a58; text-align: left; font-size: .78em; transform: none; }
.exam-shell .heading-slot span { flex: 0 0 25px; font-weight: 700; }
.exam-shell .heading-slot strong { font-weight: 600; }
.exam-shell .heading-slot.filled { background: #d9edf5; border-color: #64a3bd; }
.exam-save-actions { display: flex; align-items: center; justify-content: flex-end; gap: 7px; padding: 4px 15px; background: #eff1f7; font-size: 12px; color: #526071; }
.exam-save-actions span { margin-right: auto; }
.exam-shell .exam-save-actions #topSubmitBtn { background: #cbd5e1; font-weight: 700; }
.exam-progress { position: sticky; bottom: 0; z-index: 5; background: linear-gradient(#f5f6fa,#c3cbd8); border-top: 2px solid #a8b3c3; min-height: 46px; padding: 6px 12px; }
.exam-progress-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; }
.exam-progress-part { display: flex; align-items: center; flex-wrap: wrap; gap: 2px; }
.exam-progress-part > span { font-size: 12px; font-weight: 700; padding: 0 5px; }
.exam-shell .exam-progress button[data-qid] { min-width: 28px; min-height: 27px; padding: 3px 5px; background: #22272d; border: 1px solid #59616d; color: #fff; font-weight: 700; }
.exam-shell .exam-progress button[data-qid].answered { background: #477d92; }
.exam-shell .exam-progress button[data-qid].current { background: #28a3d1; border-color: #217fa5; color: #071923; }
.exam-shell .exam-progress button[data-qid].reviewed { box-shadow: inset 0 -4px #eec833; }
.exam-shell .exam-progress .review-toggle { margin-left: auto; }
.exam-shell .exam-progress .exam-page-arrow { font-size: 19px; line-height: 18px; min-width: 29px; }
.exam-hide-screen { position: absolute; inset: 39px 0 0; z-index: 10; display: grid; place-items: center; background: #f4f6f8; text-align: center; }
.exam-hide-screen h2 { font-size: 24px; margin-bottom: 8px; }
.exam-hide-screen p { color: #526071; }
.exam-hide-screen button { margin-top: 14px; padding: 9px 20px !important; font-size: 14px !important; }
.exam-shell { position: relative; }
.exam-dialog-layer:not([hidden]) { position: fixed; inset: 0; z-index: 12000; display: grid; place-items: center; background: #0d1629a1; padding: 20px; }
.exam-dialog { width: min(690px, 96vw); max-height: 90dvh; overflow: auto; background: #e3f0f6; border: 1px solid #7c91a3; box-shadow: 0 15px 38px #0005; padding: 24px; color: #182330; }
.exam-dialog h2 { font-size: 20px; margin: 0 0 11px; }
.exam-dialog p { line-height: 1.5; }
.exam-dialog fieldset { border: 0; display: inline-flex; vertical-align: top; flex-direction: column; min-width: 45%; margin: 9px 0 20px; padding: 0; }
.exam-dialog legend { font-weight: 700; margin-bottom: 8px; }
.exam-dialog label { margin: 2px 0; font-size: 14px; color: #1d2c3a; font-weight: 400; }
.exam-dialog input { width: auto; margin-right: 8px; accent-color: #217999; }
.dialog-actions { text-align: center; }

/* The teacher preview sits inside the admin page and follows the same exam surface. */
#paperPreview.exam-preview { padding: 0 !important; background: #e8eaf3 !important; border: 1px solid #aab4c2; border-radius: 0; overflow: hidden; }
#paperPreview.exam-preview .exam-pane { height: min(67vh, 760px); }
#paperPreview.exam-preview .exam-progress { position: static; }

/* V1.87 gives every button a purple !important treatment. Keep it out of the exam. */
.exam-intro button.exam-button { background: linear-gradient(#fafbfc,#dce2e9) !important; color: #14212f !important; }
.exam-shell .exam-tools button,
.exam-shell .exam-save-actions button,
.exam-shell .exam-progress button,
.exam-shell .dialog-actions button,
.exam-shell .exam-hide-screen button { background: linear-gradient(#fff,#d5dae3) !important; color: #172432 !important; }
.exam-shell .question-expander { background: linear-gradient(#fcfcfd,#e9ebf0) !important; color: var(--exam-ink) !important; }
.exam-shell .exam-question-row.expanded .question-expander { background: var(--exam-accent) !important; }
.exam-shell .heading-option { background: linear-gradient(#fff,#eff0f4) !important; color: var(--exam-ink) !important; }
.exam-shell .heading-slot { background: #f8fbfc !important; color: #2c4a58 !important; }
.exam-shell .heading-slot.filled { background: #d9edf5 !important; }
.exam-shell .exam-progress button[data-qid] { background: #22272d !important; color: #fff !important; }
.exam-shell .exam-progress button[data-qid].answered { background: #477d92 !important; }
.exam-shell .exam-progress button[data-qid].current { background: #28a3d1 !important; color: #071923 !important; }
.exam-shell .exam-save-actions #topSubmitBtn { background: #cbd5e1 !important; }
.exam-shell[data-palette="yellow-black"] .matching-grid thead th { background: #272414; }
.exam-shell[data-palette="yellow-black"] .heading-hint { color: #ffea70; }
.exam-shell[data-palette="yellow-black"] .question-expander { background: #222 !important; }
.exam-shell[data-palette="yellow-black"] .heading-option { background: #222 !important; }
.exam-shell[data-palette="yellow-black"] .heading-slot { background: #222 !important; color: #ffea70 !important; }
.exam-shell[data-palette="yellow-black"] .heading-slot.filled { background: #3b3418 !important; }

@media (max-width: 900px) {
  .exam-shell .exam-toolbar { grid-template-columns: 1fr auto; }
  .exam-identity { display: none; }
  .exam-timer { text-align: left; }
  .exam-panes { grid-template-columns: 1fr; }
  .exam-pane, #paperPreview.exam-preview .exam-pane { height: auto; min-height: 260px; max-height: 47vh; }
  .exam-passage-pane { padding: 15px; }
  .exam-save-actions { flex-wrap: wrap; }
  .exam-save-actions span { display: none; }
}
@media (prefers-reduced-motion: reduce) { .exam-timer.danger-text { animation: none; } }

/* Current computer-delivered reading reference. */
body.exam-mode { background: #fff !important; }
body.exam-mode #highlightMenu, body.exam-preview-mode #highlightMenu { display:none !important; }
.exam-shell { --exam-ink:#232323; --exam-paper:#fff; --exam-tint:#f7f7f7; --exam-border:#d4d4d4; --exam-accent:#ddf3fb; --exam-blue:#006e99; background:#fff; font-family:Arial,"Segoe UI",sans-serif; }
.exam-shell .exam-toolbar { position:relative; display:flex; justify-content:space-between; min-height:70px; padding:0 24px; gap:20px; background:#ded3ed; border:0; color:#171717; }
.exam-status { display:flex; align-items:center; gap:24px; min-width:0; }
.exam-identity { display:block; font-size:14px; font-weight:600; color:#242424; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.exam-timer { min-width:0; font-size:16px; font-weight:600; text-align:left; white-space:nowrap; }
.exam-timer::before { content:'◷'; font-size:20px; padding-right:8px; vertical-align:-1px; }
.exam-timer.danger-text { color:#b00020; }
.exam-tools { align-items:center; gap:12px; flex-shrink:0; }
.exam-shell .exam-tools button { min-height:40px; border:0; box-shadow:none; border-radius:0; background:transparent !important; color:#202020 !important; font-size:14px; font-weight:600; padding:6px 8px; }
.exam-shell .exam-tools .finish-test { padding:8px 16px; border:1px solid #303030; background:#f2ebf9 !important; }
.exam-shell .exam-tools .exam-icon { font-size:24px; width:37px; padding:0; line-height:1; }
.exam-online { font-size:20px; line-height:1; }
.exam-online svg,.exam-icon svg { display:block; width:22px; height:22px; fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; }
.exam-menu { position:absolute; top:60px; right:55px; z-index:30; min-width:185px; padding:7px; background:#fff; border:1px solid #cfcfcf; box-shadow:0 10px 30px #0002; }
.exam-menu:not([hidden]) { display:grid; }
.exam-shell .exam-menu button { border:0; background:#fff !important; color:#222 !important; text-align:left; padding:10px 12px; border-radius:0; font-size:14px; }
.exam-shell .exam-menu button:hover { background:#f3f3f3 !important; }
.exam-part { margin:0; padding:17px 28px; min-height:86px; gap:6px; background:#f7f7f7; border:0; border-bottom:1px solid #d9d9d9; }
.exam-part strong { font-size:22px; line-height:1.2; }
.exam-part span { font-size:15px; }
.exam-panes { display:grid; grid-template-columns:minmax(0,var(--passage-ratio,50%)) 25px minmax(0,1fr); gap:0; margin:0; font-size:17px; line-height:1.6; }
.exam-pane { height:calc(100dvh - 285px); min-height:380px; border:0; border-bottom:1px solid #d4d4d4; scrollbar-color:#bababa transparent; }
.exam-passage-pane { padding:32px 42px 42px; border-right:0; }
.exam-splitter { position:relative; z-index:2; align-self:stretch; display:flex; align-items:center; justify-content:center; cursor:col-resize; touch-action:none; background:#dedede; border-left:1px solid #aaa; border-right:1px solid #aaa; color:#333; user-select:none; }
.exam-splitter span { display:flex; align-items:center; justify-content:center; width:30px; height:42px; flex:0 0 30px; border:1px solid #666; background:#fff; font-size:20px; line-height:1; }
.exam-splitter:hover,.exam-splitter.dragging,.exam-splitter:focus-visible { background:#c6b3dc; outline:2px solid #7252a0; outline-offset:-2px; }
.exam-questions-pane { padding:31px 43px 45px; }
.pane-title { font-size:25px; line-height:1.25; margin-bottom:28px; }
.exam-shell .passage-box.highlightable { font-size:1em; line-height:1.67; white-space:normal; }
.exam-shell .passage-box p { margin:0 0 1.25em; }
.exam-group { margin-bottom:35px; }
.exam-group-heading { font-size:20px; margin:0 0 8px; line-height:1.3; }
.exam-instruction { margin:0 0 21px; font-size:1em; white-space:normal; line-height:1.48; }
.exam-shell .group-content-display { padding:0; margin:0 0 20px; border:0; background:transparent; }
.exam-question-block { position:relative; border:0; padding:14px 38px 26px 0; scroll-margin-top:30px; }
.exam-question-block.active-question { background:transparent; }
.question-block-title { display:flex; align-items:baseline; gap:11px; margin:0 0 11px; font-size:1em; font-weight:600; line-height:1.5; }
.question-number { flex:0 0 auto; font-weight:700; }
.question-prompt { flex:1; }
.choice-list { display:grid; gap:5px; padding-left:31px; }
.choice-list label { display:flex; align-items:flex-start; gap:13px; min-height:31px; padding:3px 0; font-size:1em; line-height:1.45; font-weight:400; }
.choice-list label:has(input:checked) { color:#005f85; background:#c4dff1; }
.choice-list input { width:18px; height:18px; flex:0 0 18px; accent-color:#1383a7; margin:3px 0 0; }
.exam-shell .inline-answer { display:inline-block; width:125px; min-height:33px; padding:2px 7px; margin:0 4px; border:1px solid #a5a5a5; border-radius:2px; background:#fff; color:#202020; font:inherit; vertical-align:baseline; }
.exam-shell .exam-question-block > .inline-answer { display:block; width:190px; margin-left:31px; }
.inline-prompt .question-prompt { font-weight:400; }
.exam-shell .text-highlight { background:#ffe379; border-radius:0; padding:0; }
.exam-progress { position:sticky; bottom:0; min-height:126px; padding:0 20px 12px; background:#fff; border-top:1px solid #dadada; }
.exam-progress-inner { display:flex; flex-wrap:nowrap; align-items:stretch; gap:0; width:100%; }
.exam-progress-part { display:block; flex:1 1 0; min-width:0; padding:11px 18px 0; border-top:3px solid #d9d9d9; margin-top:12px; }
.exam-progress-part:has(.current) { border-top-color:#222; }
.progress-part-heading { display:flex; align-items:baseline; justify-content:space-between; gap:8px; margin:0 0 9px; font-size:14px; }
.progress-part-heading strong { font-size:17px; }
.part-count { color:#595959; white-space:nowrap; }
.progress-numbers { display:flex; align-items:center; flex-wrap:wrap; gap:3px; padding-top:16px; }
.exam-shell .exam-progress button[data-qid] { min-width:26px; min-height:30px; padding:2px 5px; border:1px solid transparent; border-radius:0; background:#fff !important; color:#242424 !important; font-size:15px; font-weight:500; }
.exam-shell .exam-progress button[data-qid].answered { text-decoration:underline; text-decoration-thickness:2px; text-underline-offset:5px; }
.exam-shell .exam-progress button[data-qid].current { border:1px solid #3a3a3a; background:#fff !important; color:#242424 !important; font-weight:700; }
.exam-shell .exam-progress button[data-qid] { position:relative; }
.exam-flag-icon { width:21px; height:21px; fill:none; stroke:currentColor; stroke-width:1.8; stroke-linejoin:round; }
.exam-progress .exam-nav-flag { display:none; }
.exam-shell .exam-progress button[data-qid] .exam-flag-icon { position:absolute; left:50%; top:-20px; transform:translateX(-50%); width:16px; height:16px; visibility:hidden; }
.exam-shell .exam-progress button[data-qid].reviewed .exam-flag-icon { visibility:visible; fill:currentColor; }
.exam-shell .exam-review-control { position:absolute; top:13px; right:0; display:flex; align-items:center; justify-content:center; width:30px; height:30px; margin:0; padding:2px; border:0; border-radius:2px; background:transparent !important; color:#3d3d3d !important; }
.exam-shell .exam-review-control[aria-pressed="true"] { color:#69428f !important; }
.exam-shell .exam-review-control[aria-pressed="true"] .exam-flag-icon { fill:currentColor; }
.exam-shell .exam-review-control:focus-visible { outline:2px solid #69428f; }
.exam-word-limit, .exam-judgment-term { font-family:inherit; font-size:inherit; font-style:inherit; letter-spacing:inherit; font-weight:700; }
.exam-multiple-choice-emphasis, .exam-multiple-choice-question { font-family:inherit; font-size:inherit; font-style:inherit; letter-spacing:inherit; font-weight:700; }
.exam-shell .choice-label { display:inline-flex; align-items:baseline; gap:5px; }
.exam-shell .choice-code { flex:none; font:inherit; font-weight:700; }
.exam-shell .pane-title strong, .exam-shell .passage-box h1, .exam-shell .passage-box h2, .exam-shell .passage-box h3 { font-weight:750; }
.exam-shell .exam-article-title { margin:0 0 1.1em; font-size:1.35em; line-height:1.3; font-weight:750; }
.exam-completion-framework .group-content-text-display { font:inherit; line-height:1.75; }
.exam-shell .exam-inline-question { display:inline-flex; align-items:center; gap:3px; margin:0 3px; padding:0; border:0; vertical-align:middle; }
.exam-shell .exam-inline-question .inline-answer { width:clamp(155px, 20vw, 245px); min-height:38px; margin:0; text-align:center; }
.exam-shell .exam-inline-question .inline-answer::placeholder { color:#6b7280; opacity:1; font-weight:700; }
.exam-shell .exam-inline-question .exam-review-control { position:static; width:26px; height:26px; flex:0 0 26px; }
.exam-group[data-group-type="headings"] .question-block-title { align-items:baseline; gap:11px; }
.exam-group[data-group-type="headings"] .question-prompt { font-weight:700; }
.exam-group[data-group-type="headings"] .choice-list { padding-left:31px; gap:4px; }
.exam-nav-arrows { display:flex; align-items:center; gap:4px; padding:0 0 0 15px; }
.exam-shell .exam-progress .exam-page-arrow { width:43px; height:43px; min-width:43px; min-height:43px; border:0; border-radius:0; background:#202020 !important; color:#fff !important; font-size:25px; line-height:1; padding:0; }
.exam-shell { --notes-width:clamp(235px,16vw,295px); box-sizing:border-box; }
.exam-shell.notes-open { padding-right:var(--notes-width); }
.exam-notes { position:absolute; top:0; right:0; bottom:0; z-index:15; box-sizing:border-box; width:var(--notes-width); overflow:auto; padding:0 18px 24px; background:#f0f0f0; border-left:1px solid #c8c8c8; box-shadow:none; }
.exam-notes-head { display:flex; justify-content:space-between; align-items:center; position:sticky; top:0; padding:25px 0 20px; background:#f0f0f0; border-bottom:1px solid #bbb; font-size:23px; }
.exam-shell .exam-notes-head button { border:0; background:transparent !important; color:#333 !important; font-size:26px; padding:0 5px; }
.exam-note { border-bottom:1px solid #d5d5d5; padding:13px 0; font-size:16px; }
.exam-note blockquote { margin:0 0 7px; padding:8px; background:#fff1a8; border-left:3px solid #d4ad22; }
.exam-note p { white-space:pre-wrap; margin:0 0 8px; }
.exam-shell .exam-note button { background:#fff !important; border:0; color:#7c3333 !important; padding:2px 0; }
.notes-empty { color:#666; font-size:15px; line-height:1.5; }
.exam-note-editor { padding-top:15px; }
.exam-note-quote { padding:9px; background:#fff1a8; font-size:14px; }
.exam-note-editor textarea { width:100%; min-height:100px; padding:9px; border:1px solid #aaa; resize:vertical; }
.exam-shell .exam-note-editor button { margin-top:8px; padding:8px 15px; border:0; background:#222 !important; color:#fff !important; }
.exam-selection-menu { position:fixed; z-index:40; display:flex; padding:5px; background:#fff; border:1px solid #bbb; box-shadow:0 8px 25px #0003; }
.exam-shell .exam-selection-menu[hidden], .exam-shell .exam-notes[hidden], .exam-shell .exam-note-editor[hidden], .exam-shell .exam-menu[hidden] { display:none !important; }
.exam-shell .exam-selection-menu button { padding:7px 10px; border:0; border-radius:0; background:#fff !important; color:#222 !important; font-size:13px; }
.exam-shell .exam-selection-menu button:hover { background:#f0f0f0 !important; }
.exam-hide-screen { inset:70px 0 0; }
.exam-dialog { background:#fff; border:1px solid #aaa; }
.exam-shell .dialog-actions button { background:#222 !important; color:#fff !important; padding:8px 18px; border:0; }
#paperPreview.exam-preview { background:#fff !important; border:1px solid #c9c9c9; }
#paperPreview.exam-preview .exam-pane { height:min(68vh,780px); }
#paperPreview.exam-preview .exam-progress { position:static; }
@media (max-width:900px) { .exam-shell .exam-toolbar { padding:8px 12px; min-height:60px; flex-wrap:wrap; } .exam-status { gap:10px; } .exam-identity { display:none; } .exam-panes { grid-template-columns:1fr; } .exam-splitter { display:none; } .exam-pane,#paperPreview.exam-preview .exam-pane { height:auto; min-height:220px; max-height:46vh; } .exam-passage-pane { border-right:0; border-bottom:2px solid #aaa; padding:22px; } .exam-questions-pane { padding:22px; } .exam-progress-inner { overflow-x:auto; } .exam-progress-part { min-width:195px; } .exam-shell.notes-open { padding-right:0; } .exam-notes { width:min(76vw,295px); box-shadow:-9px 0 25px #0002; } }

.exam-shell[data-palette="black-white"],.exam-shell[data-palette="yellow-black"] { --exam-paper:#080808; --exam-tint:#121212; --exam-border:#686868; background:#080808; }
.exam-shell[data-palette="black-white"] { --exam-ink:#fff; --exam-blue:#fff; --exam-accent:#303030; }
.exam-shell[data-palette="yellow-black"] { --exam-ink:#ffeb61; --exam-blue:#ffeb61; --exam-accent:#303018; }
.exam-shell[data-palette="black-white"],.exam-shell[data-palette="yellow-black"],.exam-shell[data-palette="black-white"] .exam-part,.exam-shell[data-palette="yellow-black"] .exam-part,.exam-shell[data-palette="black-white"] .exam-pane,.exam-shell[data-palette="yellow-black"] .exam-pane,.exam-shell[data-palette="black-white"] .exam-progress,.exam-shell[data-palette="yellow-black"] .exam-progress,.exam-shell[data-palette="black-white"] .exam-notes,.exam-shell[data-palette="yellow-black"] .exam-notes { background:#080808; color:var(--exam-ink); }
.exam-shell[data-palette="black-white"] .exam-part,.exam-shell[data-palette="yellow-black"] .exam-part,.exam-shell[data-palette="black-white"] .exam-pane,.exam-shell[data-palette="yellow-black"] .exam-pane,.exam-shell[data-palette="black-white"] .exam-progress,.exam-shell[data-palette="yellow-black"] .exam-progress { border-color:#686868; }
.exam-shell[data-palette="black-white"] .part-count,.exam-shell[data-palette="yellow-black"] .part-count { color:var(--exam-ink); }
.exam-shell[data-palette="black-white"] .exam-progress button[data-qid],.exam-shell[data-palette="yellow-black"] .exam-progress button[data-qid] { background:#080808 !important; color:var(--exam-ink) !important; }
.exam-shell[data-palette="black-white"] .exam-progress button[data-qid].current,.exam-shell[data-palette="yellow-black"] .exam-progress button[data-qid].current { background:#181818 !important; color:var(--exam-ink) !important; border-color:var(--exam-ink); }
.exam-shell[data-palette="black-white"] .exam-progress-part:has(.current),.exam-shell[data-palette="yellow-black"] .exam-progress-part:has(.current) { border-top-color:var(--exam-ink); }
.exam-shell[data-palette="black-white"] .exam-review-control,.exam-shell[data-palette="yellow-black"] .exam-review-control,.exam-shell[data-palette="black-white"] .exam-review-control[aria-pressed="true"],.exam-shell[data-palette="yellow-black"] .exam-review-control[aria-pressed="true"] { color:var(--exam-ink) !important; }
.exam-shell[data-palette="black-white"] .choice-list label:has(input:checked),.exam-shell[data-palette="yellow-black"] .choice-list label:has(input:checked) { background:#292929; color:var(--exam-ink); }
.exam-shell[data-palette="black-white"] .choice-list input,.exam-shell[data-palette="yellow-black"] .choice-list input { accent-color:var(--exam-ink); }
.exam-shell[data-palette="black-white"] .inline-answer,.exam-shell[data-palette="yellow-black"] .inline-answer,.exam-shell[data-palette="black-white"] .exam-note-editor textarea,.exam-shell[data-palette="yellow-black"] .exam-note-editor textarea { background:#080808; color:var(--exam-ink); border-color:var(--exam-ink); }
.exam-shell[data-palette="black-white"] .exam-notes-head,.exam-shell[data-palette="yellow-black"] .exam-notes-head { background:#080808; border-color:#686868; }
.exam-shell[data-palette="black-white"] .exam-notes-head button,.exam-shell[data-palette="yellow-black"] .exam-notes-head button { color:var(--exam-ink) !important; }
.exam-shell[data-palette="black-white"] .notes-empty,.exam-shell[data-palette="yellow-black"] .notes-empty { color:var(--exam-ink); }
.exam-shell[data-palette="black-white"] .exam-splitter,.exam-shell[data-palette="yellow-black"] .exam-splitter { background:#353535; color:#fff; }
.exam-shell[data-palette="black-white"] .exam-splitter span,.exam-shell[data-palette="yellow-black"] .exam-splitter span { background:#080808; color:var(--exam-ink); }
.exam-shell[data-palette="black-white"] .exam-dialog,.exam-shell[data-palette="yellow-black"] .exam-dialog { background:#080808; color:var(--exam-ink); }
.exam-shell[data-palette="black-white"] .exam-menu,.exam-shell[data-palette="yellow-black"] .exam-menu,.exam-shell[data-palette="black-white"] .exam-selection-menu,.exam-shell[data-palette="yellow-black"] .exam-selection-menu { background:#101010; color:var(--exam-ink); border-color:#686868; }
.exam-shell[data-palette="black-white"] .exam-menu button,.exam-shell[data-palette="yellow-black"] .exam-menu button,.exam-shell[data-palette="black-white"] .exam-selection-menu button,.exam-shell[data-palette="yellow-black"] .exam-selection-menu button { background:#101010 !important; color:var(--exam-ink) !important; }
.exam-shell[data-palette="black-white"] .exam-menu button:hover,.exam-shell[data-palette="yellow-black"] .exam-menu button:hover,.exam-shell[data-palette="black-white"] .exam-selection-menu button:hover,.exam-shell[data-palette="yellow-black"] .exam-selection-menu button:hover { background:#303030 !important; }
.exam-shell[data-palette="black-white"] .exam-note blockquote,.exam-shell[data-palette="yellow-black"] .exam-note blockquote,.exam-shell[data-palette="black-white"] .exam-note-quote,.exam-shell[data-palette="yellow-black"] .exam-note-quote { background:#292929; color:var(--exam-ink); }

.exam-bank { margin:0 0 20px; padding:13px 15px; border:1px solid var(--exam-border); background:var(--exam-paper); color:var(--exam-ink); }
.exam-bank > strong { display:block; margin-bottom:9px; font-size:16px; }
.exam-bank-options { display:grid; grid-template-columns:repeat(auto-fit,minmax(180px,1fr)); gap:7px 18px; }
.exam-bank-options > div { display:flex; gap:10px; font-size:15px; line-height:1.4; }
.exam-bank-options b { min-width:19px; }
.exam-bank-prompt .question-prompt { font-weight:400; }
.exam-bank-select { display:inline-block; max-width:100%; min-width:130px; min-height:33px; margin:2px 4px; padding:3px 6px; border:1px solid var(--exam-border); border-radius:2px; background:var(--exam-paper); color:var(--exam-ink); font:inherit; }
.exam-table-scroll { overflow-x:auto; margin:4px 0 22px; }
.exam-answer-table { width:100%; border-collapse:collapse; color:var(--exam-ink); font-size:15px; line-height:1.45; }
.exam-answer-table th,.exam-answer-table td { border:1px solid var(--exam-border); padding:9px 12px; text-align:left; vertical-align:middle; }
.exam-answer-table thead th { background:var(--exam-tint); font-weight:700; }
.exam-answer-table .exam-table-question { min-width:180px; padding:0 36px 0 0; }
.exam-table-question .exam-review-control { top:50%; transform:translateY(-50%); }
.exam-table-answer { display:flex; align-items:center; gap:7px; }
.exam-shell .exam-table-answer .inline-answer { width:125px; min-width:85px; margin:0; }
