/* A free reading preference. Does not change the selected/entitled colour theme. */
.vulpus-display-control{padding:16px;border:1px solid var(--border,#dbe5f0);border-radius:14px;background:var(--panel,#fff);color:var(--text,#172b49);margin-bottom:16px;min-width:0}
.vulpus-display-control h3,.vulpus-display-control h4{margin:0 0 12px;font-size:16px}
.vulpus-display-row{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap}
.vulpus-display-switch{display:inline-flex;align-items:center;justify-content:center;gap:9px;min-height:44px;padding:7px 10px;border:1px solid var(--border,#dbe5f0);border-radius:10px;background:var(--panel-soft,#f4f7fb);color:inherit;font:inherit;font-size:13px;cursor:pointer;white-space:nowrap}
.vulpus-display-track{display:block;width:34px;height:20px;border-radius:20px;background:#63738b;padding:3px;flex:0 0 34px}.vulpus-display-track::after{content:'';display:block;width:14px;height:14px;border-radius:50%;background:#fff;transform:translateX(0)}
.vulpus-display-switch[aria-checked=true] .vulpus-display-track{background:#356cc1}.vulpus-display-switch[aria-checked=true] .vulpus-display-track::after{transform:translateX(14px)}
.vulpus-display-switch:focus-visible{outline:3px solid var(--theme-focus,#76adff);outline-offset:3px}.vulpus-display-note{font-size:12px;line-height:1.55;color:var(--muted,#52637a);margin:12px 0 0}
html[data-vulpus-display=dark]{color-scheme:dark;--bg:#101722!important;--panel:#182230!important;--panel-soft:#1e2b3c!important;--card:#182230!important;--text:#e7edf7!important;--muted:#adbad0!important;--border:#3d4e65!important;--blue:#335fa8!important;--blue-2:#4079c4!important;--blue-soft:#243d60!important;--primary:#335fa8!important;--purple:#b39bfa!important;--purple-soft:#322b49!important;--green:#247b4c!important;--green-soft:#173e2d!important;--red:#b52b3a!important;--red-soft:#48252d!important;--orange:#e9a46f!important;--orange-soft:#493626!important;--yellow:#e9c871!important;--yellow-soft:#3e3520!important;--theme-primary-on:#fff!important;--theme-focus:#a4cbff!important;--theme-card-tint:#1b293b!important;--theme-hover-soft:#273950!important;--theme-weight-bg:#24354b!important;--theme-progress-track:#36475d!important;--shadow:0 8px 24px #0003!important;background:#101722!important;color:#e7edf7!important}
html[data-vulpus-display=dark] body{background:var(--bg)!important;color:var(--text)!important}
html[data-vulpus-display=dark] body :is(.main,.content,.page,.layout,.setup-screen,.result-page,.marketing-main,.marketing-shell){background-color:var(--bg)!important;background-image:none!important;color:var(--text)!important}
html[data-vulpus-display=dark] body :is(.topbar,.card,.panel,.auth-card,.auth-panel,.commercial-card,.commercial-compare-card,.marketing-plan,.marketing-card,.marketing-callout,.main-card,.tools-panel,.setup-card,.result-card,.tool-box,.question-text,.answer-option,.modal,.modal-content,.session-panel,.series-progress-panel,.series-history-item,.info-box,.course-card,.course-content,.course-section,.course-hero,.domain-card,.dashboard-card,.domain-progress-metric,.domain-progress-overview,.domain-progress-recommendation,.qe-course-card,.qe-domain-card,.vulpus-account-dialog,.vulpus-account-dropdown,.vulpus-account-dialog-head,.reader-session-panel,.q-nav,.bottom-actions,.notes,.calc-display){background-color:var(--panel)!important;background-image:none!important;color:var(--text)!important;border-color:var(--border)!important;box-shadow:var(--shadow)}
html[data-vulpus-display=dark] body :is(h1,h2,h3,h4,h5,h6,.exam-title,.question-text,.answer-text,.course-title,.marketing-title,.offer-total,.commercial-price,.marketing-price,.offer-volume dd){color:var(--text)!important}
html[data-vulpus-display=dark] body :is(.muted,.small-muted,.exam-subtitle,.commercial-tagline,.marketing-plan-scope,.compact-offer-monthly-note,.commercial-meta,.vulpus-account-code,.offer-volume dt,.course-subtitle,.lesson-meta){color:var(--muted)!important}
html[data-vulpus-display=dark] body :is(a,.text-link,.compact-offer-details>summary,.compact-offer-monthly,.commercial-highlight,.marketing-kicker,.domain-progress-gauge-value){color:#a9ceff!important}
html[data-vulpus-display=dark] body :is(input,textarea,select){background:#111c2b!important;color:var(--text)!important;border-color:#546984!important}html[data-vulpus-display=dark] body ::placeholder{color:#a7b5cb!important;opacity:1}
html[data-vulpus-display=dark] body :is(.btn-outline,.btn-light,.user-chip,.reader-session-toggle,.filter-btn,.vulpus-display-switch,.strike-btn,.mcq-tag,.pill,.badge,.mode-pill,.timer,.commercial-badge){background:var(--panel-soft)!important;color:var(--text)!important;border-color:var(--border)!important}
html[data-vulpus-display=dark] body :is(.btn-primary,.btn-success,.btn-danger,.btn-save,.commercial-btn,.marketing-button,.language-switcher__button.is-active,.filter-btn.active,.q-nav.current){color:#fff!important}
html[data-vulpus-display=dark] body :is(.commercial-btn,.marketing-button){background:#335fa8!important;border-color:#6c9de5!important}
html[data-vulpus-display=dark] body :is(.language-switcher,.mcq-language-switcher){background:var(--panel)!important;border-color:var(--border)!important}html[data-vulpus-display=dark] body .language-switcher__button{color:#bcd6ff!important}
html[data-vulpus-display=dark] body .language-switcher__button.is-active,html[data-vulpus-display=dark] body .q-nav.current{background:#335fa8!important}
html[data-vulpus-display=dark] body .answer-option.selected{background:#233e61!important;border-color:#a5caff!important}html[data-vulpus-display=dark] body :is(.answer-letter,.answer-badge,.letter){background:#344359!important;color:var(--text)!important}
html[data-vulpus-display=dark] body :is(.answer-option.correct,.q-nav.answered,.explanation-correct){background:#173e2d!important;border-color:#72c994!important;color:#ddfbe8!important}
html[data-vulpus-display=dark] body :is(.answer-option.incorrect,.answer-option.wrong,.q-nav.seen,.explanation-wrong){background:#48252d!important;border-color:#e4939d!important;color:#ffe3e7!important}
html[data-vulpus-display=dark] body .q-nav.flagged{background:#463b23!important;color:#ffdda0!important;border-color:#d9b862!important}
html[data-vulpus-display=dark] body :is(.explanation,.explanation-body,.explanation-box,.rationale,.clinical-case,.case-context,.key-points,.learning-highlight,.course-note,.course-callout){background:#1e2b3c!important;color:var(--text)!important;border-color:var(--border)!important}
html[data-vulpus-display=dark] body :is(table,th,td){background:var(--panel)!important;color:var(--text)!important;border-color:var(--border)!important}
html[data-vulpus-display=dark] body :is(.site-footer,.marketing-footer){background:var(--panel)!important;color:var(--text)!important;border-color:var(--border)!important}
html[data-vulpus-display=dark] body .vulpus-account-menu-item.is-danger{color:#ffb0bb!important}html[data-vulpus-display=dark] body .vulpus-account-menu-item.is-google{background:#fff!important;color:#1f1f1f!important}
html[data-vulpus-display=dark] body :focus-visible{outline-color:#acd0ff!important}
@media print{html[data-vulpus-display=dark]{color-scheme:light}html[data-vulpus-display=dark] body{background:#fff!important;color:#000!important}}
/* The app header uses its original buttons; only their phone grid positions change. */
html[data-vulpus-display=dark] body .theme-option-card,html[data-vulpus-display=dark] body.vulpus-mcq-reader #examScreen .sidebar{background:var(--panel)!important;color:var(--text)!important;border-color:var(--border)!important}
html[data-vulpus-display=dark] body .q-nav.current.flagged{background:#335fa8!important;color:#fff!important;border:2px solid #f6cf76!important}
html[data-vulpus-display=dark] #subscriptions .commercial-pack-saving{background:#26364b!important;color:#dbeafe!important;border-color:#6981a1!important}
html[data-vulpus-display=dark] body .compact-extension-details{background:var(--panel)!important;color:var(--text)!important;border-color:var(--border)!important}
html[data-vulpus-display=dark] body .compact-extension-prices :is(dt,strong){color:var(--text)!important}
@media print{html[data-vulpus-display=dark]{--bg:#fff!important;--panel:#fff!important;--panel-soft:#fff!important;--text:#000!important;--muted:#333!important;--border:#777!important}html[data-vulpus-display=dark] body a{color:#000!important}}
@media(max-width:760px){
  html body .main>header.topbar{display:grid!important;grid-template-columns:minmax(44px,1fr) auto auto;gap:8px 6px;align-items:center;padding:10px 12px!important;height:auto!important}
  html body .main>header.topbar>.mobile-toggle{display:inline-flex!important;align-items:center;grid-column:1;grid-row:1;justify-self:start;min-height:44px;margin:0}
  html body .main>header.topbar>.topbar-left-area{grid-column:1/-1;grid-row:2;min-width:0;max-width:100%;margin:0}
  html body .main>header.topbar>.vulpus-account-menu{display:contents!important}
  html body .main>header.topbar .vulpus-account-menu>.user-chip{display:inline-flex!important;grid-column:2;grid-row:1;min-height:44px;max-width:100%;font-size:12px;gap:5px;padding:8px}
  html body .main>header.topbar .vulpus-account-menu>.language-switcher{grid-column:3;grid-row:1;justify-self:end;align-self:start;margin:0!important;gap:2px;padding:3px}
  html body .main>header.topbar .language-switcher__button{min-width:36px;min-height:36px;padding:6px}
}
html[data-vulpus-display=dark] body :is(.reader-account-chip,.user-chip__icon) svg{color:var(--text)!important}html[data-vulpus-display=dark] body :is(.reader-account-chip,.user-chip__icon) svg :is(path,circle){stroke:currentColor!important}
/* Night is a site theme; the reader has its own saved light/dark preference. */
html[data-vulpus-display=dark]{--bg:#101923!important;--panel:#192635!important;--panel-soft:#223246!important;--card:#192635!important;--text:#eaf0f8!important;--muted:#b8c6d9!important;--border:#486079!important;--blue:#a9ceff!important;--primary:#a9ceff!important;--green:#8ad6aa!important;--red:#ffb6c0!important;--theme-card-tint:#1c2c40!important;--theme-hover-soft:#2b415d!important;background:#101923!important;color:#eaf0f8!important}
html[data-vulpus-display=dark] body :is(.account-session-panel,.account-session-plan,.account-summary-card,.account-action,.account-session-note,.hero,.path-card,.exam-card,.price-card,.pricing-highlight,.screenshot-card,.screenshot-header,.sub-card,.roadmap-card,.structure-showcase,.structure-item,.free-demo-cta,.exam-demo-callout,.trust-item,.timeline-item,.compare-table-v2,.compare-head-v2,.faq-item,.legal-nav,.legal-nav button,.legal-doc,.learning-card,.error-row,.dashboard-hero,.qcm-dashboard-panel,.qcm-domain-progress,.qcm-domain-row,.offer-hero,.offer-plan-card,.offer-footnote,.domain-banner,.course-status-chip,.course-status-chip.is-saved,.activity,.resource-mark-btn,.action-btn,.action-btn.is-saved,.support-notice,.sidebar-floating-hide,.sidebar-restore){background:var(--panel)!important;background-image:none!important;color:var(--text)!important;border-color:var(--border)!important}
html[data-vulpus-display=dark] body :is(.account-session-plan,.account-session-note,.hero-compact-stats span,.timeline-number,.structure-total,.offer-plan-duration,.offer-promo-badge,.course-status-chip,.resource-mark-btn.is-marked){background:var(--panel-soft)!important;color:var(--text)!important;border-color:var(--border)!important}
html[data-vulpus-display=dark] body :is(.account-action small,.account-kv span:first-child,.hero p,.activity small,.qcm-domain-row span,.theme-option-copy,.offer-footnote p,.offer-promo-description,.structure-item p,.roadmap-card p){color:var(--muted)!important}
html[data-vulpus-display=dark] body :is(.account-kv span:last-child,.account-action strong,.account-session-plan strong,.offer-plan-price,.theme-option-copy strong,.structure-item strong){color:var(--text)!important}
html[data-vulpus-display=dark] body .account-action.danger strong{color:#ffb6c0!important}
html[data-vulpus-display=dark] body :is(.btn-primary,.btn-save,.btn-soft,.action-btn.primary,.filter-btn.active){background:#305fa7!important;color:#fff!important;border-color:#719cdb!important}
html[data-vulpus-display=dark] body :is(.btn-success,.btn-green){background:#196b40!important;color:#fff!important;border-color:#71c596!important}
html[data-vulpus-display=dark] body :is(.btn-danger,.btn-finish){background:#a92436!important;color:#fff!important;border-color:#e78b9b!important}
html[data-vulpus-display=dark] body .btn-purple{background:#6445a4!important;color:#fff!important;border-color:#b79de7!important}
html[data-vulpus-display=dark] body :is(.theme-active-mark,.theme-option-card[data-theme-locked=true] .theme-active-mark){color:#b8c6d9!important}
html[data-vulpus-display=dark] body .theme-option-card.is-active{border:2px solid #a9ceff!important;background:#233d5d!important;box-shadow:0 0 0 2px #a9ceff1f}
html[data-vulpus-display=dark] body .theme-option-card.is-active .theme-active-mark{color:#eaf0f8!important}
.theme-option-card[data-theme-choice=mode-nuit] .theme-icon{filter:none!important;opacity:1!important}
html[data-vulpus-display=dark] body .account-kv{border-color:var(--border)!important}
html[data-vulpus-display=dark] body .account-session-note a{color:#c5dfff!important;text-decoration:underline}
html[data-vulpus-display=dark] body .vulpus-account-menu-item.is-google{background:#fff!important;color:#1f1f1f!important}
html[data-vulpus-display=dark] body :is(.marketing-hero,.marketing-nav,.marketing-nav a){background:var(--panel)!important;background-image:none!important;color:var(--text)!important;border-color:var(--border)!important}
html[data-vulpus-display=dark] body .marketing-nav a[aria-current]{background:#2a466d!important;color:#fff!important}
html[data-vulpus-display=dark] body .marketing-eyebrow{color:#a9ceff!important}
html[data-vulpus-display=dark] body :is(.marketing-content p,.marketing-independence,.marketing-static-fallback>p){color:var(--muted)!important}
html[data-vulpus-display=dark] body .commercial-pack-check{color:#8ad6aa!important}
html[data-vulpus-display=dark]{--card-bg:#192635!important}
html[data-vulpus-display=dark] body :is(.vulpus-checkout,.vulpus-contracts,.contract-heading,.contract-card,.contract-document,.contract-quote-schedule li,.contract-test,.contract-notice){background:var(--panel)!important;background-image:none!important;color:var(--text)!important;border-color:var(--border)!important}
html[data-vulpus-display=dark] body :is(.contract-heading p,.contract-reference,.contract-instalments span,.contract-quote-schedule span){color:var(--muted)!important}
html[data-vulpus-display=dark] body :is(.checkout-alert,.contract-error){background:#48252d!important;color:#ffe3e7!important;border-color:#e4939d!important}
/* Course CSS is mounted after page load. Keep night contrast across that cascade. */
html[data-vulpus-display=dark] body #course-content :is(.v3-course-hero,.v3-course-outline,.v3-course-chapter,.v3-course-example,.v3-course-callout,.v3-course-table-frame,.v3-course-chapter-action){background:var(--panel)!important;background-image:none!important;color:var(--text)!important;border-color:var(--border)!important}
html[data-vulpus-display=dark] body #course-content :is(p,li,dd,dt,th,td,.v3-course-block,.v3-course-outline-title,.v3-course-outline-section,.v3-course-outline-stats,.v3-course-outline-stats span,.v3-course-outline-stats strong,.v3-course-outline summary,.v3-course-outline summary span){color:var(--text)!important}
html[data-vulpus-display=dark] body #course-content :is(figcaption,.v3-course-hero p,.v3-course-navigation label){color:var(--muted)!important}
html[data-vulpus-display=dark] body #course-content :is(.v3-course-badge,.v3-course-outline-number,.v3-course-chapter-number){background:var(--panel-soft)!important;color:var(--text)!important;border-color:var(--border)!important}
html[data-vulpus-display=dark] body #course-content .v3-course-chapter-action span{color:inherit!important}
html[data-vulpus-display=dark] body #course-content .v3-course-chapter-action.is-active{background:#305fa7!important;color:#fff!important;border-color:#91b9f1!important}
html[data-vulpus-display=dark] body #course-content .btn-qcm-training{background:#194c36!important;color:#ddfbe8!important;border-color:#72c994!important}
html[data-vulpus-display=dark] body #course-content .btn-qcm-application{background:#243e61!important;color:#e3f2ff!important;border-color:#8ebcf7!important}
html[data-vulpus-display=dark] body #course-content .btn-qcm-advanced{background:#533822!important;color:#fff0df!important;border-color:#e4b27b!important}
html[data-vulpus-display=dark][data-vulpus-theme-loading=true]{background:#101923!important}
html[data-vulpus-display=dark][data-vulpus-theme-loading=true]::after{color:#b8c6d9!important}
html[data-vulpus-display=dark][data-vulpus-theme-loading=true]::before{border-color:#486079!important;border-top-color:#c4dcff!important}
html[data-vulpus-display=dark] body #course-content :is(.v3-course-callout strong,.v3-course-example strong){color:#bfd8ff!important}

/* Night palette: matched foreground/surface pairs, including late-mounted readers. */
html[data-vulpus-display=dark]{
  --bg:#111923!important;--panel:#1b2735!important;--panel-soft:#243346!important;
  --card:#1b2735!important;--card-bg:#1b2735!important;--text:#e7edf5!important;
  --muted:#b2bfd0!important;--border:#43566d!important;--blue:#a4c9fb!important;
  --primary:#a4c9fb!important;--blue-soft:#263f5f!important;--purple:#c4aff6!important;
  --green:#9bdab7!important;--red:#ffbdc6!important;--orange:#eec096!important;
  --theme-focus:#bad7ff!important;--theme-progress-track:#35465c!important;
  --theme-progress-fill:linear-gradient(90deg,#6a9bd2,#83b2e6)!important;
  --theme-primary-shadow:none!important;--shadow:0 4px 16px #00000020!important;
  background:#111923!important;color:#e7edf5!important;
}
html[data-vulpus-display=dark] body{accent-color:#84afe7}
html[data-vulpus-display=dark] body :is(.topbar,.vulpus-account-dropdown,.vulpus-account-dialog){box-shadow:0 4px 16px #0003}
html[data-vulpus-display=dark] body :is(.card,.panel,.setup-card,.main-card,.tools-panel,.account-session-panel,.theme-option-card){box-shadow:var(--shadow)}
html[data-vulpus-display=dark] body .language-switcher__button.is-active{box-shadow:none!important}
html[data-vulpus-display=dark] body :is(.btn-primary,.btn-save,.btn-soft,.action-btn.primary,.commercial-btn,.marketing-button,.filter-btn.active,.q-nav.current){background:#315f9e!important;color:#fff!important;border-color:#6f97cd!important;box-shadow:none!important}
html[data-vulpus-display=dark] body :is(.btn-primary,.btn-save,.btn-soft,.commercial-btn,.marketing-button):hover{background:#3c6dad!important;filter:none}
html[data-vulpus-display=dark] body :is(.btn-light,.btn-outline,.reader-session-toggle,.strike-btn,.reader-panel-close,.calc-grid .btn,.action-btn,.resource-mark-btn){background:#243346!important;color:#e7edf5!important;border-color:#4e637c!important;box-shadow:none!important}
html[data-vulpus-display=dark] body :is(.btn-light,.btn-outline,.reader-session-toggle,.calc-grid .btn):hover{background:#2d4158!important;color:#fff!important;border-color:#81a7d5!important}
html[data-vulpus-display=dark] body :is(.btn:disabled,.btn-save.is-disabled){background:#26313e!important;color:#a9b5c6!important;border-color:#4a5c70!important;box-shadow:none!important}
html[data-vulpus-display=dark] body .btn-danger-soft{background:#432c36!important;color:#ffccd3!important;border-color:#bd7483!important}
html[data-vulpus-display=dark] body :is(.btn-success,.btn-green){background:#24633f!important;color:#f1fff6!important;border-color:#6cac88!important;box-shadow:none!important}
html[data-vulpus-display=dark] body :is(.btn-danger,.btn-finish){background:#922e3e!important;color:#fff2f4!important;border-color:#d98796!important;box-shadow:none!important}

/* MCQ landing, metadata and progress. State never changes answer layout or stored values. */
html[data-vulpus-display=dark] body.vulpus-mcq-reader :is(.mode-card,.series-progress-inline,.session-card,.saved-session-card,.history-card,.review-question-block,.result-summary,.result-domain){background:#202f40!important;background-image:none!important;color:var(--text)!important;border-color:#4b6079!important;box-shadow:none!important}
html[data-vulpus-display=dark] body.vulpus-mcq-reader .mode-card:hover{background:#293c52!important;border-color:#89acd8!important}
html[data-vulpus-display=dark] body.vulpus-mcq-reader .mode-card.active{background:#284465!important;border-color:#9cbfe9!important;box-shadow:inset 0 0 0 1px #9cbfe933!important}
html[data-vulpus-display=dark] body.vulpus-mcq-reader :is(.mode-card p,.series-progress-inline-head,.session-progress-detail,.series-progress-detail,.series-history-empty,.mcq-powered-footer){color:#bdcadb!important}
html[data-vulpus-display=dark] body.vulpus-mcq-reader :is(.mode-card h3,.series-progress-inline-head strong,.series-progress-percent){color:#e7edf5!important}
html[data-vulpus-display=dark] body.vulpus-mcq-reader :is(.tag,.mcq-tag,.case-label,.case-step,.mode-pill,.timer){background:#293a50!important;background-image:none!important;color:#d2dff0!important;border-color:#526b89!important;box-shadow:none!important}
html[data-vulpus-display=dark] body.vulpus-mcq-reader :is(.progress-line,.series-progress-bar){background:#35465c!important;box-shadow:none!important}
html[data-vulpus-display=dark] body.vulpus-mcq-reader :is(.progress-fill,.series-progress-fill){background:var(--theme-progress-fill)!important}
html[data-vulpus-display=dark] body.vulpus-mcq-reader .answer-option:hover{background:#24364b!important;border-color:#8bb1df!important}
html[data-vulpus-display=dark] body.vulpus-mcq-reader .answer-option.selected{background:#2a4567!important;border-color:#a4c9fb!important}
html[data-vulpus-display=dark] body.vulpus-mcq-reader .answer-option.correct{background:#203f33!important;color:#e0f7e9!important;border-color:#83bb9e!important}
html[data-vulpus-display=dark] body.vulpus-mcq-reader .answer-option.incorrect{background:#472e39!important;color:#ffe1e6!important;border-color:#d994a2!important}
html[data-vulpus-display=dark] body.vulpus-mcq-reader .answer-option :is(.answer-text,p,li,strong){color:inherit!important}
html[data-vulpus-display=dark] body.vulpus-mcq-reader :is(.q-nav.answered,.q-nav.unanswered){color:#dce7f3!important}
html[data-vulpus-display=dark] body.vulpus-mcq-reader .q-nav.unanswered{background:#472e39!important;border-color:#d994a2!important}
html[data-vulpus-display=dark] body.vulpus-mcq-reader .q-nav.current{background:#315f9e!important;color:#fff!important}
html[data-vulpus-display=dark] body.vulpus-mcq-reader :is(.explanation,.explanation-body,.key-points,.case-context,.review-question-block) :is(p,li,strong,span){color:inherit!important}
html[data-vulpus-display=dark] body.vulpus-mcq-reader .key-points{background:#3b3528!important;border-color:#bca36e!important;color:#f2e5c8!important}
html[data-vulpus-display=dark] body.vulpus-mcq-reader .explanation :is(h2,h3,h4){color:#e6eef9!important}
/* The large banner duplicates the adjacent name/icon. Use the compact original mark at night. */
html[data-vulpus-display=dark] body.vulpus-mcq-reader .setup-banner{display:none!important}
html[data-vulpus-display=dark] body.vulpus-mcq-reader :is(.setup-logo-wrap,.mcq-logo-wrap){background:#e5ebf2!important;border-color:#c2cfdf!important;box-shadow:none!important}
html[data-vulpus-display=dark] body.vulpus-mcq-reader :is(.setup-logo-wrap,.mcq-logo-wrap,.mcq-powered-footer) img{filter:brightness(.94);box-shadow:none!important}

/* Flashcards: distinct quiet fronts and mint-backed answers; no white hover or hidden pale text. */
html[data-vulpus-display=dark] body #flashcards :is(.v3-flash-hero,.v3-flash-side,.v3-flash-main,.v3-flash-main-head,.v3-flash-section-top,.v3-flash-empty,.thematic-toolbar,.thematic-list-footer){background:#1b2735!important;background-image:none!important;color:#e7edf5!important;border-color:#43566d!important;box-shadow:none!important}
html[data-vulpus-display=dark] body #flashcards :is(.v3-flash-face,.v3-flash-question){background:#203044!important;background-image:none!important;color:#e7edf5!important;border-color:#57718f!important;box-shadow:none!important}
html[data-vulpus-display=dark] body #flashcards .v3-flash-question:hover{background:#293e57!important;background-image:none!important;color:#f1f6ff!important}
html[data-vulpus-display=dark] body #flashcards .v3-flash-question strong{color:#e7edf5!important}
html[data-vulpus-display=dark] body #flashcards .v3-flash-answer{background:#1e3634!important;background-image:none!important;color:#e3f3eb!important;border-color:#648c7f!important}
html[data-vulpus-display=dark] body #flashcards .v3-flash-answer-inner :is(p,li,strong,span){color:#e3f3eb!important}
html[data-vulpus-display=dark] body #flashcards .v3-flash-question-label{background:#2d496b!important;color:#d5e7ff!important;border-color:#688db8!important}
html[data-vulpus-display=dark] body #flashcards .v3-flash-answer-title{background:#2d5446!important;color:#d0f0df!important}
html[data-vulpus-display=dark] body #flashcards .v3-flash-chevron{background:#2b405a!important;color:#cbe1ff!important;border-color:#7c9bc1!important}
html[data-vulpus-display=dark] body #flashcards :is(.v3-flash-hero p,.v3-flash-side-head p,.v3-flash-main-head p,.v3-flash-section-top p,.thematic-result-count,.thematic-mobile-theme,.thematic-course-select,.thematic-course-number){color:#b8c7da!important}
html[data-vulpus-display=dark] body #flashcards :is(.v3-flash-pill,.v3-flash-filters button,.v3-flash-nav button,.thematic-themes button){background:#24374c!important;color:#d8e5f5!important;border-color:#58708e!important;box-shadow:none!important}
html[data-vulpus-display=dark] body #flashcards :is(.thematic-themes button[aria-pressed=true],.v3-flash-filters button.active,.v3-flash-nav button.active){background:#315f9e!important;color:#fff!important;border-color:#94b8e6!important}
html[data-vulpus-display=dark] body #flashcards :is(.btn-course,.btn-qcm-application){background:#263f5d!important;color:#d8eaff!important;border-color:#6e93bd!important;box-shadow:none!important}
html[data-vulpus-display=dark] body #flashcards .btn-qcm-training{background:#234738!important;color:#d3f3e1!important;border-color:#74ad90!important;box-shadow:none!important}
html[data-vulpus-display=dark] body #flashcards .btn-qcm-advanced{background:#4a382c!important;color:#fae1c9!important;border-color:#b99572!important;box-shadow:none!important}
html[data-vulpus-display=dark] body #flashcards :is(.v3-flash-nav-toggle,.v3-flash-show-nav){background:#24374c!important;color:#d8e5f5!important;border-color:#58708e!important;box-shadow:none!important}
html[data-vulpus-display=dark] body #flashcards :is(.v3-flash-nav-toggle,.v3-flash-show-nav):hover{background:#2d4158!important;border-color:#81a7d5!important}
html[data-vulpus-display=dark] body #flashcards .v3-flash-skeleton-card{background:#203044!important;background-image:none!important;border-color:#43566d!important;box-shadow:none!important}
html[data-vulpus-display=dark] body #flashcards .v3-flash-skeleton-line{background:linear-gradient(90deg,#26374b,#354c65,#26374b)!important;background-size:220% 100%!important}
html[data-vulpus-display=dark] body #flashcards :is(.v3-flash-question,.v3-flash-answer):focus-visible{outline:3px solid #bad7ff!important;outline-offset:-4px}

/* Match secondary surfaces and interactive states on site pages. */
html[data-vulpus-display=dark] body :is(.theme-settings-panel,.settings-section,.settings-card,.settings-panel,.course-header,.course-heading,.domain-progress-gauge,.domain-progress-track,.progress-track){background-color:var(--panel)!important;background-image:none!important;color:var(--text)!important;border-color:var(--border)!important}
html[data-vulpus-display=dark] body .theme-option-card.is-active{background:#284465!important;border-color:#9cbfe9!important;box-shadow:none!important}
html[data-vulpus-display=dark] body :is(.theme-option-card:not(.is-active):hover,.account-action:hover,.vulpus-account-menu-item:hover){background:#2a3d54!important;color:#e7edf5!important;border-color:#83a5d0!important}
html[data-vulpus-display=dark] body .theme-option-card :is(.theme-option-copy,.theme-active-mark){color:#bbcadd!important}
html[data-vulpus-display=dark] body .theme-option-card .theme-option-copy strong{color:#e7edf5!important}
html[data-vulpus-display=dark] body .theme-option-card.is-active .theme-active-mark{color:#e7edf5!important}
html[data-vulpus-display=dark] body #course-content .v3-course-chapter-action:hover{background:#2a3d54!important;color:#fff!important}
html[data-vulpus-display=dark] body #course-content .v3-course-table-frame tr:nth-child(even) :is(td,th){background:#202f40!important}
html[data-vulpus-display=dark] body :is(.vulpus-account-menu-item.is-google,.vulpus-account-menu-item.is-google:hover){background:#e9eef4!important;color:#202938!important;border-color:#b6c6d9!important}
@media print{html[data-vulpus-display=dark]{--bg:#fff!important;--panel:#fff!important;--panel-soft:#fff!important;--text:#000!important;--muted:#333!important;--border:#777!important}}

/* Keep catalogue titles inside the surface introduced by night mode. */
html[data-vulpus-display=dark] body .vulpus-course-catalog .catalogue-heading{
  box-sizing:border-box;padding:24px!important;
  border:1px solid var(--border)!important;border-radius:20px!important;box-shadow:none!important;
}
html body .vulpus-course-catalog .catalogue-heading .hero-badge+h2{margin-block-start:10px!important}
html[data-vulpus-display=dark] body .vulpus-course-catalog .catalogue-heading:has(>div:only-child){grid-template-columns:minmax(0,1fr)!important}
/* These are layout wrappers, not additional cards around their padded children. */
html[data-vulpus-display=dark] body .vulpus-course-catalog .qcm-domain-progress,
html[data-vulpus-display=dark] body .content .qcm-dashboard-panel,
html[data-vulpus-display=dark] body .vulpus-program-overview .exam-demo-callout{
  background:transparent!important;background-image:none!important;
}
@media(max-width:700px){
  html[data-vulpus-display=dark] body .vulpus-course-catalog .catalogue-heading{padding:18px 16px!important;border-radius:16px!important}
}

/* Night surfaces that use explicit light backgrounds in the learning shell.
   Screen-only: keep the existing print treatment and all light themes intact. */
@media screen{
  html[data-vulpus-display=dark] body .home-overview .home-exam-card{
    background:var(--panel)!important;background-image:none!important;
    color:var(--text)!important;border-color:var(--border)!important;box-shadow:none!important;
  }
  html[data-vulpus-display=dark] body .home-overview .home-exam-card h3{color:var(--text)!important}
  html[data-vulpus-display=dark] body .home-overview .home-exam-card p{color:var(--muted)!important}
  html[data-vulpus-display=dark] body .home-overview .home-exam-card.foundation .pill-green{background:#203f33!important;color:#e0f7e9!important}
  html[data-vulpus-display=dark] body .home-overview .home-exam-card .pill-blue{background:#263d5a!important;color:#d6e7ff!important}
  html[data-vulpus-display=dark] body .home-overview .home-exam-card.osce .pill-orange{background:#463426!important;color:#f9e0c7!important}
  html[data-vulpus-display=dark] body .learning-architecture-page .topic-list span{
    background:var(--panel-soft)!important;color:var(--text)!important;border-color:var(--border)!important;
  }
  html[data-vulpus-display=dark] body .osce-exam-native .oen-option.oen-option-correct{
    background:#203f33!important;color:#e0f7e9!important;border-color:#76c996!important;box-shadow:inset 3px 0 0 #76c996!important;
  }
  html[data-vulpus-display=dark] body .osce-exam-native .oen-option.oen-option-wrong{
    background:#472e39!important;color:#ffe1e6!important;border-color:#e493a3!important;box-shadow:inset 3px 0 0 #e493a3!important;
  }
  html[data-vulpus-display=dark] body .osce-exam-native .oen-feedback-correct{color:#9ee5b6!important}
  html[data-vulpus-display=dark] body .osce-exam-native .oen-feedback-wrong{color:#ffb6c0!important}
  html[data-vulpus-display=dark] body .osce-exam-native .oen-line.oen-interlocutor{
    background:#1e3634!important;color:#e3f3eb!important;border-color:#72ae9f!important;
  }
  html[data-vulpus-display=dark] body :is(#qe-part-ii-osce,#osce-method,#osce-stations,#osce-exams,#osce-progress) .action-btn.btn-primary{
    background:#315f9e!important;color:#fff!important;border-color:#6f97cd!important;
  }
  html[data-vulpus-display=dark] body :is(#qe-part-ii-osce,#osce-method,#osce-stations,#osce-exams,#osce-progress) .action-btn.btn-primary:hover{
    background:#3c6dad!important;color:#fff!important;
  }
  html[data-vulpus-display=dark] body .vulpus-auth-purpose{
    background:var(--panel-soft)!important;color:var(--text)!important;border-color:var(--border)!important;
  }
  html[data-vulpus-display=dark] body :is(.vulpus-auth-purpose legend,.vulpus-auth-purpose-label,.vulpus-auth-purpose-details,.vulpus-auth-purpose-full-notice){color:var(--text)!important}
  html[data-vulpus-display=dark] body .vulpus-auth-purpose-error{color:#ffbdc6!important}
  html[data-vulpus-display=dark] body :is(#login,.vulpus-account-dialog) :is(.auth-field label,.auth-check){color:var(--text)!important}
}

/* Dark screen: the learning-mark DIV is only a layout wrapper, not a second button surface. */
@media screen{html[data-vulpus-display=dark] body #mainContent .page .vulpus-page-mark{background:transparent!important;background-image:none!important;box-shadow:none!important;border-radius:8px!important}}
