/* ReguSpace C121 — one canonical nav and scoped dark-mode contrast tokens.
   SCREEN ONLY. Generated into five pages from a single checked template.
   Does not touch semantic Matrix/zone colors, core advice, report paper,
   SVG score charts, PREP or printer documents. */
@media screen {
  /* Canonical navigation. Keep shell and toolbar a SINGLE surface in both themes. */
  :root {--rs-c121-shell-light:#d8e2ed;--rs-c121-shell-dark:#26333f;}
  body > :is(.app,.reguspace-v287-app) > .regu-c44-sticky-frame,
  body > :is(.app,.reguspace-v287-app) > .regu-c44-sticky-frame > .toolbar,
  body > :is(.app,.reguspace-v287-app) .regu-c44-sticky-frame .app-brand,
  body > :is(.app,.reguspace-v287-app) .regu-c44-sticky-frame .app-brand::before {
    background:var(--rs-c121-shell-light)!important;
    box-shadow:none!important;
  }
  /* C121R1: the Complete and standalone trigger has the actual toolbar surface,
     not the former white sliding-menu trigger or its left-side shadow mask. */
  body > :is(.app,.reguspace-v287-app) .regu-c44-sticky-frame .regu-r1-menu-button {
    background:var(--rs-c121-shell-light)!important;color:#315b75!important;
    box-shadow:none!important;border-color:#b7cbd8!important;
  }
  html[data-reguspace-theme="dark"] body > :is(.app,.reguspace-v287-app) .regu-c44-sticky-frame .regu-r1-menu-button {
    background:var(--rs-c121-shell-dark)!important;color:#edf4f8!important;
    box-shadow:none!important;border-color:#718696!important;
  }
  body > .reguspace-v287-app > .regu-c44-sticky-frame {
    width:100%!important;max-width:none!important;margin-left:0!important;
    margin-right:0!important;box-sizing:border-box!important;
  }
  body > :is(.app,.reguspace-v287-app) > .regu-c44-sticky-frame > .toolbar {
    width:100%!important;max-width:none!important;box-sizing:border-box!important;
  }
  body > :is(.app,.reguspace-v287-app) .regu-c44-sticky-frame .app-brand {
    border:0!important;filter:none!important;text-shadow:none!important;
  }
  html[data-reguspace-theme="dark"] body > :is(.app,.reguspace-v287-app) > .regu-c44-sticky-frame,
  html[data-reguspace-theme="dark"] body > :is(.app,.reguspace-v287-app) > .regu-c44-sticky-frame > .toolbar,
  html[data-reguspace-theme="dark"] body > :is(.app,.reguspace-v287-app) .regu-c44-sticky-frame .app-brand,
  html[data-reguspace-theme="dark"] body > :is(.app,.reguspace-v287-app) .regu-c44-sticky-frame .app-brand::before {
    background:var(--rs-c121-shell-dark)!important;box-shadow:none!important;
    border-bottom-color:transparent!important;
  }
  html[data-reguspace-theme="dark"] body > :is(.app,.reguspace-v287-app) .regu-c44-sticky-frame .app-brand :is(strong,span){color:#edf4f8!important;}
}

/* Neutral dark components, NO blanket inversion and no print/export. */
@media screen {
  /* RIASEC entry (actual card is white even when dark title is blue). */
  html[data-reguspace-theme="dark"] body #personalityHubScreen #personalityHubOpenDrives {
    background:#344452!important;border-color:#718696!important;color:#edf4f8!important;
  }
  html[data-reguspace-theme="dark"] body #personalityHubScreen #personalityHubOpenDrives :is(.analysis-choice-action,.analysis-choice-title,.analysis-choice-description,strong,small,span,p) {
    color:#edf4f8!important;
  }
  /* Regulyse: context editor and filters — no white summary strip. */
  html[data-reguspace-theme="dark"] body #energyLogScreen :is(#energyLogContext,.regu-log-context),
  html[data-reguspace-theme="dark"] body #analysisGraphsScreen .analysis-filter-details,
  html[data-reguspace-theme="dark"] body #analysisReportScreen :is(.analysis-report-group,.analysis-report-option,.analysis-report-person-grid,.analysis-report-subgrid),
  html[data-reguspace-theme="dark"] body #analysisTreatmentScreen :is(.treatment-section,.treatment-data-panel) {
    background:#344452!important;border-color:#6f8495!important;color:#edf4f8!important;
  }
  html[data-reguspace-theme="dark"] body #energyLogScreen #energyLogContext > summary,
  html[data-reguspace-theme="dark"] body #analysisGraphsScreen .analysis-filter-details > summary,
  html[data-reguspace-theme="dark"] body #analysisReportScreen :is(.analysis-report-group,.analysis-report-option,details.more-info) > summary,
  html[data-reguspace-theme="dark"] body #analysisTreatmentScreen :is(.treatment-section,.treatment-data-panel,details.more-info) > summary {
    background:#405462!important;color:#edf4f8!important;border-color:#718696!important;
  }
  html[data-reguspace-theme="dark"] body #energyLogScreen :is(#energyLogContext,.regu-log-context) :is(label,h2,h3,p,small,.note,summary),
  html[data-reguspace-theme="dark"] body #analysisGraphsScreen .analysis-filter-details :is(label,h2,h3,p,small,.note,summary),
  html[data-reguspace-theme="dark"] body #analysisReportScreen :is(.analysis-report-group,.analysis-report-subgrid,.analysis-report-options) :is(label,h2,h3,h4,p,small,strong,summary,.analysis-filter-note),
  html[data-reguspace-theme="dark"] body #analysisTreatmentScreen :is(.treatment-section,.treatment-data-panel) :is(h2,h3,h4,label,p,small,strong,summary,span) {
    color:#edf4f8!important;
  }
  /* Report BUILDER only; actual white A4 preview and PDF stay white. */
  html[data-reguspace-theme="dark"] body #analysisReportScreen :is(.analysis-report-page,#analysisReportRegulatorPane) > .section,
  html[data-reguspace-theme="dark"] body #analysisReportScreen :is(.analysis-report-page,#analysisReportRegulatorPane) > .section > .section {
    background:#344452!important;border-color:#718696!important;color:#edf4f8!important;
  }
  html[data-reguspace-theme="dark"] body #analysisReportScreen :is(.analysis-report-page,#analysisReportRegulatorPane) > .section > :is(h2,h3,p,.lead),
  html[data-reguspace-theme="dark"] body #analysisReportScreen :is(.analysis-report-page,#analysisReportRegulatorPane) > .section > .section > :is(h2,h3,p,.lead),
  html[data-reguspace-theme="dark"] body #analysisReportScreen .regu-output-actions :is(span,small,label),
  html[data-reguspace-theme="dark"] body #analysisReportScreen .regu-output-action :is(span,small) {
    color:#edf4f8!important;
  }
  html[data-reguspace-theme="dark"] body #analysisReportScreen .analysis-report-preview,
  html[data-reguspace-theme="dark"] body #analysisReportScreen .analysis-report-preview * {
    /* Deliberately no color override; generated report paper owns its own palette. */
  }
  /* Matrix relationeel accordion: pastel is preserved but text stays dark. */
  html[data-reguspace-theme="dark"] body #regulationScreen #coregulationDepth {
    background:#344452!important;border-color:#758799!important;color:#edf4f8!important;
  }
  html[data-reguspace-theme="dark"] body #regulationScreen #coregulationDepth > summary,
  html[data-reguspace-theme="dark"] body #regulationScreen #coregulationDepth > :not(summary):not(.color-figure),
  html[data-reguspace-theme="dark"] body #regulationScreen #coregulationDepth > summary :is(strong,span){color:#edf4f8!important;background:#405462!important;}
  /* Attachment main explanatory panels: dark surfaces + light prose. */
  html[data-reguspace-theme="dark"] body #attachmentScreen :is(.attach-section,.attach-card,.attach-note,.attach-panel) {
    background:#344452!important;border-color:#718696!important;color:#edf4f8!important;
  }
  html[data-reguspace-theme="dark"] body #attachmentScreen .attach-section :is(h2,h3,h4,p,small,.lead,.intro,.note,li),
  html[data-reguspace-theme="dark"] body #attachmentScreen :is(.attach-card,.attach-note,.attach-panel) :is(h2,h3,h4,p,small,li) {
    color:#edf4f8!important;
  }
  /* Werkwijzer: neutral article scaffolding; never meaning-coded visuals. */
  html[data-reguspace-theme="dark"] body #manualScreen :is(.manual-article-link,.subcard,.more-info-body,.manual .section .card,.manual .section .group,.manual .section .kern) {
    background:#344452!important;border-color:#6c8293!important;color:#edf4f8!important;
  }
  html[data-reguspace-theme="dark"] body #manualScreen :is(.manual-article-link,.subcard,.more-info-body) :is(h2,h3,h4,p,li,span,strong,small,label,em),
  html[data-reguspace-theme="dark"] body #manualScreen .manual-article-link,
  html[data-reguspace-theme="dark"] body #manualScreen .section > :is(h2,h3,h4,p,.lead) {
    color:#edf4f8!important;
  }
  html[data-reguspace-theme="dark"] body #manualScreen :is(details.more-info,details.sources-disclosure,details.authorship-block) {
    background:#344452!important;border-color:#6c8293!important;color:#edf4f8!important;
  }
  html[data-reguspace-theme="dark"] body #manualScreen :is(details.more-info,details.sources-disclosure,details.authorship-block) > summary {
    background:#405462!important;color:#edf4f8!important;border-color:#6c8293!important;
  }
  html[data-reguspace-theme="dark"] body #manualScreen :is(details.more-info,details.sources-disclosure,details.authorship-block) > :not(summary) :is(h2,h3,h4,p,li,strong,small,label,span) {
    color:#edf4f8!important;
  }
  /* Small AI prompt helper text. Exclude the generated user text / code editor. */
  html[data-reguspace-theme="dark"] body :is(.rs-ai-prompt-help,.ai-prompt-help,.ai-prompt-note,.ai-hint,.ai-prompt-hint,.reguspace-ai-help,.ai-prompt-caption) {
    color:#d4e3ed!important;
  }
}

/* Standalone instruments — dark mode only, separate from red safety cards. */
@media screen {
  /* Darker questionnaire, same selection semantics and stored values. */
  html[data-reguspace-theme="dark"][data-rs-standalone="relations"] body .rv-module :is(.rv-check-collapse,.rv-qgroup,.rv-qrow,.rv-question) {
    background:#344452!important;border-color:#718696!important;color:#edf4f8!important;
  }
  html[data-reguspace-theme="dark"][data-rs-standalone="relations"] body .rv-module .rv-check-collapse > summary,
  html[data-reguspace-theme="dark"][data-rs-standalone="relations"] body .rv-module .rv-qgroup-head {
    background:#405462!important;color:#edf4f8!important;
  }
  html[data-reguspace-theme="dark"][data-rs-standalone="relations"] body .rv-module :is(.rv-qgroup,.rv-qrow,.rv-check-collapse) :is(.rv-qtext,.rv-qcontext,.rv-qgroup-head,.rv-small,p,strong,small,span) {
    color:#edf4f8!important;
  }
  html[data-reguspace-theme="dark"][data-rs-standalone="relations"] body .rv-module .rv-scale label {
    background:#405462!important;border-color:#8197a6!important;color:#edf4f8!important;
  }
  html[data-reguspace-theme="dark"][data-rs-standalone="relations"] body .rv-module .rv-scale label:has(input:checked) {
    background:#254f66!important;border-color:#a4ddf2!important;color:#fff!important;
    box-shadow:inset 0 0 0 1px #a4ddf2!important;
  }
  html[data-reguspace-theme="dark"][data-rs-standalone="relations"] body .rv-module .rv-scale label:has(input:focus-visible){outline:3px solid #a4ddf2!important;outline-offset:2px;}
  /* Neurodiversity neutral expandable profiles — not profile visual meaning colors. */
  html[data-reguspace-theme="dark"][data-rs-standalone="neuro"] body .nd-module :is(details.profile,article.profile,details.open-card,details.route-card) {
    background:#344452!important;border-color:#718696!important;color:#edf4f8!important;
  }
  html[data-reguspace-theme="dark"][data-rs-standalone="neuro"] body .nd-module :is(details.profile,article.profile,details.open-card,details.route-card) :is(summary,h2,h3,h4,p,small,strong,.copy,.profile-body,.profile-tag) {
    color:#edf4f8!important;
  }
  /* Quiet the three category panels in Kwaliteiten (do not change score sliders). */
  html[data-reguspace-theme="dark"][data-rs-standalone="qualities"] body .qualities-module :is(.q-category-card,.q-strength-card,.q-cluster-card,.q-category,.q-theme-card) {
    background:#405462!important;border-color:#718696!important;color:#edf4f8!important;
  }
}

/* C121 acceptance correction: the relation checklist summary has legacy
   selector specificity from the original standalone document. */
@media screen {
  html[data-reguspace-theme="dark"][data-rs-standalone="relations"] body .reguspace-v287-app .rv-module .rv-check-collapse > summary,
  html[data-reguspace-theme="dark"][data-rs-standalone="relations"] body .reguspace-v287-app .rv-module .rv-check-collapse > summary :is(strong,span,small) {
    color:#edf4f8!important;background:#405462!important;
  }
  html[data-reguspace-theme="dark"] body #analysisReportScreen #analysisExternalReportSelection,
  html[data-reguspace-theme="dark"] body #analysisReportScreen #analysisExternalReportSelection > .more-info-body {
    background:#344452!important;color:#edf4f8!important;border-color:#718696!important;
  }
}

/* RIASEC: test and explanation page, not just the launch button.  All six
   Holland type accents on icons/graph remain; only neutral surfaces change. */
@media screen {
  html[data-reguspace-theme="dark"] body #drivesScreen,
  html[data-reguspace-theme="dark"] body #drivesScreen :is(.manual,.section,.mini-card,.type-card,.question,.radar-card,.reflection-card,.result-note,.result-card) {
    background:#344452!important;border-color:#718696!important;color:#edf4f8!important;
  }
  html[data-reguspace-theme="dark"] body #drivesScreen :is(h1,h2,h3,h4,.lead,.intro,.note,.kicker,.type-title strong,.type-title small,.type-body p,.type-body strong,.question legend,.check-time,.progress-line,.result-note,.radar-title,.reflection-card p),
  html[data-reguspace-theme="dark"] body #drivesScreen .section :is(p,li,small,strong) {
    color:#edf4f8!important;
  }
  html[data-reguspace-theme="dark"] body #drivesScreen .answer span {
    background:#405462!important;color:#edf4f8!important;border-color:#8aa2b1!important;
  }
  html[data-reguspace-theme="dark"] body #drivesScreen .answer input:checked+span {
    background:#24526a!important;color:#fff!important;border-color:#a4ddf2!important;
  }
  html[data-reguspace-theme="dark"] body #drivesScreen :is(input,textarea,select) {
    background:#465d6d!important;color:#fff!important;border-color:#879fad!important;
  }
  html[data-reguspace-theme="dark"] body #big5MirrorSection :is(.mirror-row,.mirror-questions,.mirror-reflection,.mirror-factor) {
    background:#344452!important;color:#edf4f8!important;border-color:#718696!important;
  }
  html[data-reguspace-theme="dark"] body #big5MirrorSection :is(.mirror-row,.mirror-questions,.mirror-reflection,.mirror-factor) :is(h3,h4,p,strong,small,label,span) {
    color:#edf4f8!important;
  }
  /* Cards inside the relation regulating disclosure had still inherited white backgrounds. */
  html[data-reguspace-theme="dark"] body #regulationScreen #coregulationDepth :is(.coreg-depth-body,.micro-card,.coreg-deep-section,.coreg-workrule,.coreg-plain) {
    background:#344452!important;color:#edf4f8!important;border-color:#718696!important;
  }
  html[data-reguspace-theme="dark"] body #regulationScreen #coregulationDepth :is(.coreg-depth-body,.micro-card,.coreg-deep-section,.coreg-workrule,.coreg-plain) :is(h3,h4,h5,p,small,strong,span,li) {
    color:#edf4f8!important;
  }
  /* Red warning cards preserve meaning; put dark text on their light-red design. */
  html[data-reguspace-theme="dark"][data-rs-standalone="relations"] body .rv-module :is(.rv-red-card,.rv-safety-card) :is(h2,h3,h4,p,small,strong,span) {
    color:#482e34!important;
  }
}

/* Informeren en (ver)werken article: explicit user-reported large bright
   neutral cards, including Onder de motorkap.  Article visuals remain as is. */
@media screen {
  html[data-reguspace-theme="dark"] body.regu-imported-article main#main-content .article-body :is(.two-lanes,.lane,.science-zone,.science-card,.science-grid,.process-note,.related,.route-actions,.article-callout,.article-note,.article-card,.process-step,.route-card) {
    background:#344452!important;color:#edf4f8!important;border-color:#718696!important;
  }
  html[data-reguspace-theme="dark"] body.regu-imported-article main#main-content .article-body :is(.lane,.science-zone,.process-note,.related,.route-actions,.article-callout,.article-note,.article-card) :is(h2,h3,h4,h5,p,small,strong,span,li,.eyebrow,.lane-kicker,.process-note) {
    color:#edf4f8!important;
  }
  html[data-reguspace-theme="dark"] body.regu-imported-article main#main-content .article-body :is(.related-links a,.route-actions a,.cta-row a) {
    background:#405462!important;color:#edf4f8!important;border-color:#8197a6!important;
  }
  html[data-reguspace-theme="dark"] body.regu-imported-article main#main-content .article-body .science-zone :is(h1,h2,h3,h4,p,span,strong,small,li) {
    color:#edf4f8!important;
  }
}

/* Final checked component fixes from the 47-page contrast sweep. */
@media screen {
  html[data-reguspace-theme="dark"] body #drivesScreen .type-card .type-title :is(strong,small),
  html[data-reguspace-theme="dark"] body #big5MirrorSection .mirror-questions :is(p,strong,small,span,label,legend) {
    color:#edf4f8!important;
  }
  html[data-reguspace-theme="dark"] body #drivesScreen .check-time {
    background:#405462!important;color:#edf4f8!important;border-color:#718696!important;
  }
  html[data-reguspace-theme="dark"] body #regulationScreen #coregulationDepth :is(.coreg-rule,.coreg-bottom-rule,.coreg-plain) {
    background:#405462!important;color:#edf4f8!important;border-color:#718696!important;
  }
  html[data-reguspace-theme="dark"] body #regulationScreen #coregulationDepth :is(.coreg-rule,.coreg-bottom-rule,.coreg-plain) :is(p,small,strong,span,em) {
    color:#edf4f8!important;
  }
  html[data-reguspace-theme="dark"][data-rs-standalone="relations"] body .rv-module :is(.rv-inline-route,.rv-depth-body a) {
    color:#c1e6ff!important;
  }
  /* Safety meaning stays reddish: light cards must have dark text. */
}

/* Focused visual consolidation of the entire user-reported article.
   We use named scaffolding classes, never reverse SVG/diagram colors. */
@media screen {
  html[data-reguspace-theme="dark"] body.regu-imported-article #main-content .article-body {
    color:#edf4f8!important;
  }
  html[data-reguspace-theme="dark"] body.regu-imported-article #main-content .article-body :is(.page-lead,.purpose-band,.info-bubbles,.lane-tag,.lane-head,.bridge,.route-grid,.route-card,.route-flow,.figure-slot,.figure-head,.figure-explainer,.figure-caption,.figure-path,.science-card,.science-teaser,.science-more,.science-terms,.action-card,.curiosity,.related-links,.related,.route-actions,.section-intro,.drvc-figure,.verbalize-box) {
    background:#344452!important;color:#edf4f8!important;border-color:#718696!important;
  }
  html[data-reguspace-theme="dark"] body.regu-imported-article #main-content .article-body :is(.page-lead,.purpose-band,.info-bubbles,.lane-tag,.lane-head,.bridge,.route-grid,.route-card,.route-flow,.figure-slot,.figure-head,.figure-explainer,.figure-caption,.figure-path,.science-card,.science-teaser,.science-more,.science-terms,.action-card,.curiosity,.related-links,.related,.route-actions,.section-intro,.drvc-figure,.verbalize-box) :is(h2,h3,h4,h5,p,span,strong,small,em,li) {
    color:#edf4f8!important;
  }
  html[data-reguspace-theme="dark"] body.regu-imported-article #main-content .article-body :is(.page-lead,.purpose-band,.bridge,.science-zone,.route-grid,.two-lanes) > :is(h1,h2,h3,h4,h5,p,strong,small,em,span) {
    color:#edf4f8!important;
  }
  html[data-reguspace-theme="dark"] body.regu-imported-article #main-content .article-body :is(.related-links a,.cta-row a,.route-actions a,.button) {
    color:#edf4f8!important;background:#405462!important;border-color:#91a5b5!important;
  }
}

/* The dark questionnaire owns only its question elements; do not bleed into
   separate pastel/risk explanation cards elsewhere in Relationele veiligheid. */
@media screen {
  html[data-reguspace-theme="dark"][data-rs-standalone="relations"] body .rv-module .rv-dashboard-intro :is(p,span,strong,small),
  html[data-reguspace-theme="dark"][data-rs-standalone="relations"] body .rv-module .rv-check-collapse :is(p,span,strong,small,li) {
    color:#edf4f8!important;
  }
  /* Article bubbles, science glossary pills and links: no light-on-light. */
  html[data-reguspace-theme="dark"] body.regu-imported-article #main-content .article-body :is(.info-bubbles span,.science-terms span,.science-terms mark,.lane-tag),
  html[data-reguspace-theme="dark"] body.regu-imported-article #main-content .article-body .science-card :is(.science-teaser,.science-more) {
    background:#405462!important;color:#edf4f8!important;border-color:#869eae!important;
  }
  html[data-reguspace-theme="dark"] body.regu-imported-article #main-content .article-body :is(.science-card a,.route-card a,.bridge a,.article-body a:not(.button)) {
    color:#c1e5ff!important;
  }
}

/* Additional core findings from exhaustive static contrast crawl: restore
   neutral text color without modifying charts, icons or user data. */
@media screen {
  html[data-reguspace-theme="dark"] body #depthRecoveryScreen :is(.more-info-body,.growth-insights-section,.growth-insights-section .section,.depth-chapter .subcard) {
    background:#344452!important;border-color:#718696!important;color:#edf4f8!important;
  }
  html[data-reguspace-theme="dark"] body #depthRecoveryScreen :is(.more-info-body,.growth-insights-section,.depth-chapter .subcard) :is(h2,h3,h4,p,li,small,strong,span,label,em) {
    color:#edf4f8!important;
  }
  html[data-reguspace-theme="dark"] body #energyLogScreen .energy-pattern {
    background:#344452!important;color:#edf4f8!important;border-color:#718696!important;
  }
  html[data-reguspace-theme="dark"] body #energyLogScreen .energy-pattern :is(h3,h4,p,small,strong) {color:#edf4f8!important;}
  html[data-reguspace-theme="dark"] body #analysisTreatmentScreen :is(.treatment-model-panel,.treatment-model-body,.treatment-data-group) {
    background:#344452!important;color:#edf4f8!important;border-color:#718696!important;
  }
  html[data-reguspace-theme="dark"] body #analysisTreatmentScreen :is(.treatment-model-panel,.treatment-model-body,.treatment-data-group) :is(h3,h4,p,small,span,strong,label) {color:#edf4f8!important;}
  html[data-reguspace-theme="dark"] body #analysisReportScreen .analysis-filter-grid :is(label,select,input),
  html[data-reguspace-theme="dark"] body #energyLogScreen #energyLogContext :is(select,input) {
    color:#edf4f8!important;background:#435a6a!important;border-color:#8ba1af!important;
  }
  html[data-reguspace-theme="dark"] body #drivesScreen .type-card .type-title {color:#edf4f8!important;}
  html[data-reguspace-theme="dark"] body #big5MirrorSection :is(.mirror-self,.mirror-factor,.mirror-questions,.mirror-row) {
    color:#edf4f8!important;
  }
  /* FAQ and forms in neutral theme contributions. Leave season-specific imagery untouched. */
  html[data-reguspace-theme="dark"] body #themeSeasonalAutumn2026Screen :is(.autumn-section,.autumn-leaf-card,.autumn-note,.autumn-answer,.autumn-reflection) {
    background:#344452!important;color:#edf4f8!important;border-color:#718696!important;
  }
  html[data-reguspace-theme="dark"] body #themeSeasonalAutumn2026Screen :is(.autumn-section,.autumn-leaf-card,.autumn-note,.autumn-answer,.autumn-reflection) :is(h2,h3,h4,p,li,small,strong,label,span,em) {
    color:#edf4f8!important;
  }
  html[data-reguspace-theme="dark"] body #themeSeasonalWinter2026Screen :is(.winter-section,.winter-card,.winter-body,.winter-note) {
    background:#344452!important;color:#edf4f8!important;border-color:#718696!important;
  }
  html[data-reguspace-theme="dark"] body #themeSeasonalWinter2026Screen :is(.winter-section,.winter-card,.winter-body,.winter-note) :is(h2,h3,h4,p,li,small,strong,label,span) {
    color:#edf4f8!important;
  }
  /* Quality cluster launch cards: softer than before, but never white. */
  html[data-reguspace-theme="dark"][data-rs-standalone="qualities"] body .qualities-module :is(.q-launch-card,.q-focus-row,.q-cluster-tab) {
    background:#405462!important;color:#edf4f8!important;border-color:#8198a8!important;
  }
  html[data-reguspace-theme="dark"][data-rs-standalone="qualities"] body .qualities-module :is(.q-launch-card,.q-focus-row,.q-cluster-tab) :is(strong,span,p,small,label) {color:#edf4f8!important;}
}

/* Canonical toolbar final cascade: old per-page C120 overrides had stronger
   selectors than the initial shared component. The rule below supersedes them
   for the SHARED toolbar only (not the slideout navigation or app buttons). */
@media screen {
  html[data-rs-standalone] body > .reguspace-v287-app > .regu-c44-sticky-frame {
    max-width:100%!important;width:100%!important;min-width:0!important;
    margin:0!important;left:auto!important;right:auto!important;
  }
  html[data-reguspace-theme="dark"][data-rs-standalone] body > .reguspace-v287-app > .regu-c44-sticky-frame,
  html[data-reguspace-theme="dark"][data-rs-standalone] body > .reguspace-v287-app > .regu-c44-sticky-frame > .toolbar,
  html[data-reguspace-theme="dark"] body > .app > .regu-c44-sticky-frame,
  html[data-reguspace-theme="dark"] body > .app > .regu-c44-sticky-frame > .toolbar {
    background:#26333f!important;background-color:#26333f!important;
    border-color:transparent!important;box-shadow:none!important;
  }
  html[data-reguspace-theme="dark"][data-rs-standalone] body > .reguspace-v287-app > .regu-c44-sticky-frame > .toolbar > a.app-brand,
  html[data-reguspace-theme="dark"] body > .app > .regu-c44-sticky-frame > .toolbar > a.app-brand,
  html[data-reguspace-theme="dark"] body > .app .regu-c44-sticky-frame .app-brand::before,
  html[data-reguspace-theme="dark"][data-rs-standalone] body .reguspace-v287-app .regu-c44-sticky-frame .app-brand::before {
    background:transparent!important;background-color:transparent!important;
    box-shadow:none!important;border:0!important;filter:none!important;
  }
  html:not([data-reguspace-theme="dark"]) body > .app > .regu-c44-sticky-frame > .toolbar > a.app-brand,
  html:not([data-reguspace-theme="dark"])[data-rs-standalone] body > .reguspace-v287-app > .regu-c44-sticky-frame > .toolbar > a.app-brand {
    background:transparent!important;box-shadow:none!important;
  }
}

/* Responsive shell width matching the original main-app top bar. */
@media screen and (max-width:800px) {
  html[data-rs-standalone] body > .reguspace-v287-app > .regu-c44-sticky-frame {
    width:100vw!important;max-width:100vw!important;
    margin-left:calc((100% - 100vw)/2)!important;
    margin-right:0!important;
  }
}
@media screen and (min-width:801px) {
  html[data-rs-standalone] body > .reguspace-v287-app > .regu-c44-sticky-frame {
    width:calc(100% + 24px)!important;max-width:none!important;
    margin-left:-12px!important;margin-right:0!important;
  }
}
@media screen {
  html[data-reguspace-theme="dark"][data-rs-standalone] body > div.reguspace-v287-app > div.regu-c44-sticky-frame,
  html[data-reguspace-theme="dark"][data-rs-standalone] body > div.reguspace-v287-app > div.regu-c44-sticky-frame > div.toolbar.reguspace-v287-toolbar,
  html[data-reguspace-theme="dark"] body > div.app > div.regu-c44-sticky-frame > div.toolbar.reguspace-v287-toolbar {
    background:#26333f!important;background-color:#26333f!important;
    border-bottom-color:transparent!important;box-shadow:none!important;
  }
}

/* Match shared topbar's actual viewport position, including standalone body gutter. */
@media screen and (max-width:700px) {
  html[data-rs-standalone] body > .reguspace-v287-app > div.regu-c44-sticky-frame {margin-left:-7px!important;}
}
@media screen and (min-width:701px) and (max-width:980px) {
  html[data-rs-standalone] body > .reguspace-v287-app > div.regu-c44-sticky-frame {margin-left:-18px!important;}
}
@media screen and (min-width:981px) {
  html[data-rs-standalone] body > .reguspace-v287-app > div.regu-c44-sticky-frame {margin-left:-12px!important;}
}
@media screen {
  html[data-reguspace-theme="dark"][data-rs-standalone] body .reguspace-v287-app #reguspaceToolbar.toolbar.reguspace-v287-toolbar,
  html[data-reguspace-theme="dark"] body > .app #reguspaceToolbar.toolbar.reguspace-v287-toolbar {
    background:#26333f!important;background-color:#26333f!important;
    border:0!important;box-shadow:none!important;
  }
}

@media screen and (min-width:701px) and (max-width:980px) {
  html[data-rs-standalone] body > .reguspace-v287-app > div.regu-c44-sticky-frame {margin-left:-12px!important;}
}
@media screen and (min-width:801px) {
  html[data-rs-standalone] body .reguspace-v287-app #reguspaceToolbar > .app-brand {margin-right:41.6px!important;}
}

@media screen {
  /* Actual class of the small screenshot-help line under Grafieken / AI. */
  html[data-reguspace-theme="dark"] body #analysisGraphsScreen .c31-ai-tip {
    color:#d7e7f0!important;
  }
}

/* Final component-family contrast checks from 47-page dark-mode scan.
   Each selector is limited to an identified neutral card or text surface. */
@media screen {
  html[data-reguspace-theme="dark"] body #growthInsightsChoices .growth-action-grid > .growth-action-card {
    background:#344452!important;border-color:#718696!important;color:#edf4f8!important;
  }
  html[data-reguspace-theme="dark"] body #growthInsightsChoices .growth-action-grid > .growth-action-card :is(h3,h4,p,small,strong,span,label) {color:#edf4f8!important;}
  html[data-reguspace-theme="dark"] body #depthRecoveryScreen .depth-human-note,
  html[data-reguspace-theme="dark"] body #depthRecoveryScreen .depth-skill-cards > div,
  html[data-reguspace-theme="dark"] body #depthRecoveryScreen .depth-source-links a {
    background:#344452!important;color:#edf4f8!important;border-color:#718696!important;
  }
  html[data-reguspace-theme="dark"] body #depthRecoveryScreen :is(.depth-human-note,.depth-skill-cards,.depth-source-links) :is(h3,h4,p,li,span,strong,small,a) {color:#edf4f8!important;}
  html[data-reguspace-theme="dark"] body #analysisTreatmentScreen #treatmentModelPanel :is(.treatment-model-bar-row,.treatment-bar-head,.treatment-model-note,.treatment-model-bars) {
    background:#344452!important;color:#edf4f8!important;border-color:#718696!important;
  }
  html[data-reguspace-theme="dark"] body #analysisTreatmentScreen #treatmentModelPanel :is(.treatment-model-bar-row,.treatment-bar-head,.treatment-model-note,.treatment-model-bars) :is(h4,p,small,strong,span,label) {color:#edf4f8!important;}
  html[data-reguspace-theme="dark"] body #energyLogScreen #energyLogContext :is(.energy-score-label,select,option) {
    background:#405462!important;color:#edf4f8!important;border-color:#8ba1af!important;
  }
  html[data-reguspace-theme="dark"] body #big5MirrorSection .mirror-questions :is(li,strong),
  html[data-reguspace-theme="dark"] body #big5MirrorSection .big5-mirror-details :is(li,strong){color:#edf4f8!important;}
  /* Background for descriptive lists in theme contributions (no accent figure changes). */
  html[data-reguspace-theme="dark"] body :is(#themeMoveScreen,#themeSexualProblemsScreen,#themeReorganisationScreen) .more-info-body {
    background:#344452!important;border-color:#718696!important;color:#edf4f8!important;
  }
  html[data-reguspace-theme="dark"] body :is(#themeMoveScreen,#themeSexualProblemsScreen,#themeReorganisationScreen) .more-info-body :is(li,p,strong,small,label) {color:#edf4f8!important;}
  html[data-reguspace-theme="dark"] body #themeSeasonalAutumn2026Screen .autumn-stepcard,
  html[data-reguspace-theme="dark"] body #seasonAutumn2026Root .autumn-stepcard {
    background:#344452!important;border-color:#718696!important;color:#edf4f8!important;
  }
  html[data-reguspace-theme="dark"] body :is(#themeSeasonalAutumn2026Screen,#seasonAutumn2026Root) .autumn-stepcard :is(strong,p,span,small,label,li) {color:#edf4f8!important;}
  /* In Winter contribution, keep illustrations and festive accents unchanged. */
  html[data-reguspace-theme="dark"] body #themeSeasonalWinter2026Screen :is(.question-card,.winter-question-card) {
    background:#344452!important;border-color:#718696!important;color:#edf4f8!important;
  }
  html[data-reguspace-theme="dark"] body #themeSeasonalWinter2026Screen :is(.question-card,.winter-question-card) :is(label,p,strong,small,span) {color:#edf4f8!important;}
  html[data-reguspace-theme="dark"] body #analysisReportScreen .analysis-filter-details .analysis-filter-note {
    color:#edf4f8!important;background:#344452!important;
  }
  html[data-reguspace-theme="dark"] body #showEmergencyRegulation :is(span,strong) {
    color:#fff0ed!important;
  }
  /* Standalone: non-semantic help prose and links; keep safety warning chips red. */
  html[data-reguspace-theme="dark"][data-rs-standalone="relations"] body .rv-module .rv-hero .rv-copy strong,
  html[data-reguspace-theme="dark"][data-rs-standalone="relations"] body .rv-module #rode-kaarten :is(.rv-h2,.rv-small) {
    color:#edf4f8!important;
  }
  html[data-reguspace-theme="dark"][data-rs-standalone="relations"] body .rv-module #dashboard-result .rv-dashboard-intro :is(.rv-tag,span) {
    background:#405462!important;color:#edf4f8!important;
  }
  html[data-reguspace-theme="dark"][data-rs-standalone="neuro"] body .nd-module #verdieping a,
  html[data-reguspace-theme="dark"][data-rs-standalone="neuro"] body .nd-module .sources a {
    color:#b9e3f6!important;
  }
  html[data-reguspace-theme="dark"] body.regu-imported-article #main-content .article-body :is(.science-more a,a.science-more) {
    color:#b9e3f6!important;
  }
}

/* Follow-up screen scan: neutrals used by treatment bars and recovery registers. */
@media screen {
  html[data-reguspace-theme="dark"] body #analysisTreatmentScreen #treatmentModelPanel :is(.treatment-factor-grid,.treatment-factor-bar-row,.treatment-factor-grid > div) {
    background:#344452!important;border-color:#718696!important;color:#edf4f8!important;
  }
  html[data-reguspace-theme="dark"] body #analysisTreatmentScreen #treatmentModelPanel :is(.treatment-factor-grid,.treatment-factor-bar-row) :is(span,strong,p,small,label,em) {color:#edf4f8!important;}
  html[data-reguspace-theme="dark"] body #depthRecoveryScreen :is(.depth-qualification-grid,.depth-qualification-grid > div,.depth-source-links,.growth-source-details) {
    background:#344452!important;color:#edf4f8!important;border-color:#718696!important;
  }
  html[data-reguspace-theme="dark"] body #depthRecoveryScreen :is(.depth-qualification-grid,.depth-source-links,.growth-source-details) :is(h2,h3,h4,p,small,span,strong,a,li,summary) {color:#edf4f8!important;}
  html[data-reguspace-theme="dark"] body #themeSeasonalWinter2026Screen :is(.winter-hero,.winter-hero-copy,.winter-intro,.winter-closing) {
    background:#344452!important;color:#edf4f8!important;border-color:#718696!important;
  }
  html[data-reguspace-theme="dark"] body #themeSeasonalWinter2026Screen :is(.winter-hero,.winter-hero-copy,.winter-intro,.winter-closing) :is(h1,h2,h3,p,small,strong,span) {color:#edf4f8!important;}
  html[data-reguspace-theme="dark"] body #seasonAutumn2026Root :is(.autumn-poem,.autumn-poem-pair,.autumn-outdoor-choice) {
    background:#344452!important;border-color:#718696!important;color:#edf4f8!important;
  }
  html[data-reguspace-theme="dark"] body #seasonAutumn2026Root :is(.autumn-poem,.autumn-poem-pair,.autumn-outdoor-choice) :is(h2,h3,p,small,label,strong,span) {color:#edf4f8!important;}
  html[data-reguspace-theme="dark"] body #themeSeasonal2026Screen .season-card :is(h2,h3,p,span,strong,small) {color:#edf4f8!important;}
  html[data-reguspace-theme="dark"] body #themeSeasonal2026Screen .season-card {
    background:#344452!important;color:#edf4f8!important;border-color:#718696!important;
  }
  /* Expanded science snippets own an older blue-on-dark summary selector. */
  html[data-reguspace-theme="dark"] body.regu-imported-article #main-content .article-body .science-card details > summary {
    background:#405462!important;border-color:#718696!important;color:#edf4f8!important;
  }
  /* Neutral explanatory profiles, not the color-coded neuro illustration. */
  html[data-reguspace-theme="dark"][data-rs-standalone="neuro"] body .nd-module article.profile details > summary {
    background:#405462!important;color:#edf4f8!important;border-color:#718696!important;
  }
  html[data-reguspace-theme="dark"][data-rs-standalone="neuro"] body .nd-module #laag3 em {
    color:#d8e6ef!important;
  }
}

/* Screen-level exceptions verified by final static scan, no changes in light/print. */
@media screen {
  html[data-reguspace-theme="dark"] body #depthRecoveryScreen .c25-additional-treatment,
  html[data-reguspace-theme="dark"] body #depthRecoveryScreen .c25-additional-treatment :is(h2,h3,p,small,span,strong,li) {
    background:#344452!important;color:#edf4f8!important;border-color:#718696!important;
  }
  html[data-reguspace-theme="dark"] body #analysisTreatmentScreen #treatmentModelPanel .treatment-microcopy {background:#344452!important;color:#edf4f8!important;}
  html[data-reguspace-theme="dark"] body #themeSeasonalWinter2026Screen :is(.winter-2026,.winter-card,.winter-card-body,.winter-song,.winter-footer,.winter-question) :is(h1,h2,h3,h4,p,small,span,strong,label) {color:#edf4f8!important;}
  html[data-reguspace-theme="dark"] body #seasonAutumn2026Root :is(.autumn-outdoor-choice,.autumn-poem,.autumn-poem-pair) :is(h2,h3,p,span,small,strong,label) {color:#edf4f8!important;}
  /* Keep the emergency CTA distinctly red, but make its words readable. */
  html[data-reguspace-theme="dark"] body #showEmergencyRegulation.reg-route-btn.emergency {
    background:#723339!important;border-color:#d78d91!important;color:#fff7f6!important;
  }
  html[data-reguspace-theme="dark"] body #showEmergencyRegulation.reg-route-btn.emergency :is(strong,span){color:#fff7f6!important;}
  html[data-reguspace-theme="dark"][data-rs-standalone="qualities"] body .qualities-module .q-how details,
  html[data-reguspace-theme="dark"][data-rs-standalone="qualities"] body .qualities-module .q-how details > summary {
    background:#405462!important;color:#edf4f8!important;border-color:#718696!important;
  }
  html[data-reguspace-theme="dark"][data-rs-standalone="otherreports"] body #pickerCard .picker-search :is(label,span,input){color:#edf4f8!important;}
  html[data-reguspace-theme="dark"][data-rs-standalone="otherreports"] body #pickerCard .picker-search input {
    background:#405462!important;border-color:#8da1b0!important;
  }
  html[data-reguspace-theme="dark"][data-rs-standalone="neuro"] body .nd-module #laag3 .mnemo-grid em {color:#e5f0f5!important;}
}


/* C121R2: verified static dark text/background contrast corrections.
   Source: measured real computed styles on 390px Chromium, not blanket inversion.
   All selectors screen+dark only; semantics, SVG, matrix and report paper preserved. */
@media screen {
  html[data-reguspace-theme="dark"] body #regulationScreen #relationRegulationSection :is(.lead,.relation-impulse-line) {
    color:#edf4f8!important;
  }
  html[data-reguspace-theme="dark"] body #regulationScreen #recommendationNote {color:#edf4f8!important;}
  html[data-reguspace-theme="dark"] body #regulationScreen :is(#recommendation1,#recommendation2,#recommendation3) > p {
    color:#243a4d!important;
  }
  html[data-reguspace-theme="dark"] body #analysisTreatmentScreen #treatmentModelPanel .treatment-boundary {
    color:#253a4d!important;
  }
  html[data-reguspace-theme="dark"] body #compassScreen .visual-compass .vc-po {color:#edf4f8!important;}
  html[data-reguspace-theme="dark"] body #depthRecoveryScreen .depth-chapter-a .twocol .sub :is(p,.mini,.text,.intro),
  html[data-reguspace-theme="dark"] body #depthRecoveryScreen .depth-chapter-a .twocol .sub > :not(h3):not(h4),
  html[data-reguspace-theme="dark"] body #depthRecoveryScreen .c25-additional-treatment-header,
  html[data-reguspace-theme="dark"] body #depthRecoveryScreen .growth-four-actions-info > summary {
    color:#edf4f8!important;
  }
  html[data-reguspace-theme="dark"] body #personalityHubScreen .analysis-choice-disabled {color:#d0e1eb!important;}
  html[data-reguspace-theme="dark"][data-rs-standalone="relations"] body .rv-module .rv-check-result-note {
    color:#edf4f8!important;
  }
  html[data-reguspace-theme="dark"][data-rs-standalone="relations"] body .rv-module .rv-red-intro {color:#ffe5e4!important;}
  html[data-reguspace-theme="dark"][data-rs-standalone="relations"] body .rv-module .rv-red-head .rv-kicker {color:#ffd4d0!important;}
  html[data-reguspace-theme="dark"][data-rs-standalone="relations"] body .rv-module :is(.rv-hero,.rv-dashboard-intro) .rv-kicker {color:#e0edf5!important;}
  html[data-reguspace-theme="dark"][data-rs-standalone="neuro"] body .nd-module :is(.mnemo-grid b,.definition-title,.route-title,.layer-head .kicker,.mirror-top .kicker,.depth-body .sources) {
    color:#e6f0f6!important;
  }
  html[data-reguspace-theme="dark"][data-rs-standalone="qualities"] body .qualities-module .q-module-id strong {color:#eaf3f8!important;}
  html[data-reguspace-theme="dark"][data-rs-standalone="qualities"] body .qualities-module .q-hero .q-how details > p {color:#eaf3f8!important;}
  html[data-reguspace-theme="dark"][data-rs-standalone="qualities"] body .qualities-module .q-local-nav button {color:#1c3447!important;}
  html[data-reguspace-theme="dark"][data-rs-standalone="otherreports"] body #pickerCard .steptitle,
  html[data-reguspace-theme="dark"][data-rs-standalone="otherreports"] body #reportDetails .preview-title .kicker {color:#edf4f8!important;}
  html[data-reguspace-theme="dark"] body #depthRecoveryScreen .growth-insights-choices .more-info > summary {color:#edf4f8!important;}
}


/* C121R2 automatic pass B — specific audited descendants (not diagram inversion). */
@media screen {
 html[data-reguspace-theme="dark"] body #compassScreen .visual-compass .vc-point > b {color:#edf4f8!important;}
 html[data-reguspace-theme="dark"] body #depthRecoveryScreen .depth-chapter .subcard > .lead,
 html[data-reguspace-theme="dark"] body #depthRecoveryScreen .depth-chapter .subcard .lead,
 html[data-reguspace-theme="dark"] body #depthRecoveryScreen .c25-additional-treatment .c25-additional-treatment-title {color:#edf4f8!important;}
 /* Preserve zone colors: deepen blue/pink text on the existing pale section tags. */
 html[data-reguspace-theme="dark"] body #depthRecoveryScreen .subcard.kern > .tag {color:#245175!important;}
 html[data-reguspace-theme="dark"] body #depthRecoveryScreen .subcard.oplaadzone > .tag {color:#75426d!important;}
 html[data-reguspace-theme="dark"] body #depthRecoveryScreen .growth-four-actions-info .more-info-body figure figcaption {color:#e6f0f6!important;}
 html[data-reguspace-theme="dark"][data-rs-standalone="relations"] body .rv-module .rv-card.rv-red-card {
   background:#fff3f1!important;background-image:none!important;border-color:#a94239!important;
 }
 html[data-reguspace-theme="dark"][data-rs-standalone="relations"] body .rv-module .rv-card.rv-red-card .rv-red-intro {color:#612c2a!important;}
 html[data-reguspace-theme="dark"][data-rs-standalone="relations"] body .rv-module .rv-card.rv-red-card .rv-red-head .rv-kicker {color:#8d3029!important;}
 html[data-reguspace-theme="dark"][data-rs-standalone="relations"] body .rv-module #check details.rv-check-collapse .rv-check-result-note {color:#edf4f8!important;}
 html[data-reguspace-theme="dark"][data-rs-standalone="neuro"] body .nd-module .profile-grid article.profile .profile-body .profile-row,
 html[data-reguspace-theme="dark"][data-rs-standalone="neuro"] body .nd-module .profile-grid article.profile .profile-body .profile-row > b {color:#233b4e!important;}
 html[data-reguspace-theme="dark"][data-rs-standalone="neuro"] body .nd-module :is(.align-card ul li,.route-card span span,.meter-row .meter-label) {color:#304a5c!important;}
 html[data-reguspace-theme="dark"][data-rs-standalone="otherreports"] body #previewEmpty {color:#4b6070!important;}
}


/* C121R2 pass C — red safety card is purposefully pale: match text accordingly. */
@media screen {
 html[data-reguspace-theme="dark"][data-rs-standalone="relations"] body .rv-module .rv-card.rv-red-card :is(.rv-h2,.rv-small,.rv-copy,p,strong) {color:#622f2a!important;}
 html[data-reguspace-theme="dark"] body #depthRecoveryScreen .c25-additional-treatment .c25-additional-head {color:#edf4f8!important;}
}


/* C121R2 pass D: safety card override with its stable ID, preserving red semantics. */
@media screen {
 html[data-reguspace-theme="dark"][data-rs-standalone="relations"] body .rv-module #rode-kaarten.rv-red-card :is(.rv-h2,.rv-small,.rv-copy) {color:#622f2a!important;}
 html[data-reguspace-theme="dark"] body #depthRecoveryScreen .c25-additional-treatment .c25-additional-treatment-label {color:#edf4f8!important;}
 html[data-reguspace-theme="dark"] body #personalityHubScreen .hub-development-note {color:#edf4f8!important;}
 html[data-reguspace-theme="dark"] body #big5MirrorSection .mirror-radar-legend span {filter:brightness(.75);}
}


/* C121R2 final pass: computed ::placeholder values and semantic legend contrast. */
@media screen {
 html[data-reguspace-theme="dark"][data-rs-standalone="otherreports"] body #presetSearch::placeholder {color:#edf4f8!important;opacity:1!important;}
 html[data-reguspace-theme="dark"] body #analysisTreatmentScreen input::placeholder,
 html[data-reguspace-theme="dark"] body #analysisTreatmentScreen textarea::placeholder {color:#eaf2f7!important;opacity:1!important;}
 html[data-reguspace-theme="dark"] body #personalityHubScreen .hub-development-heading {color:#edf4f8!important;}
 /* Yellow, green and blue remain distinct chart series, but labels are deepened on paper. */
 html[data-reguspace-theme="dark"] body #big5MirrorSection .mirror-radar-legend span:nth-child(2) {color:#2e6340!important;}
 html[data-reguspace-theme="dark"] body #big5MirrorSection .mirror-radar-legend span:nth-child(4) {color:#6d5411!important;}
 html[data-reguspace-theme="dark"] body #qmCheck #qmPlotStatus {color:#465969!important;}
 html[data-reguspace-theme="dark"] body #qmCheck .qm-choice.qm-choice-figure > small {color:#566a7a!important;}
 html[data-reguspace-theme="dark"] body #regulationScreen :is(#recommendation1,#recommendation2,#recommendation3) > p {color:#193247!important;}
}
