/* UX12AH TEST — only locally scoped visual corrections. Shared CSS remains unchanged. */
@media screen {
  /* ReguSpace > Menselijke variëteit: same action color as other tiles. */
  #humanVariabilityScreen a.human-variability-topic--active .analysis-choice-action {
    color:#176fbe !important;
    text-decoration:none;
  }
  html[data-reguspace-theme="dark"] body #humanVariabilityScreen a.human-variability-topic--active .analysis-choice-action {
    color:#eff8ff !important;
  }
  /* P-02: Regulyse PREP library retains a light reading surface in dark mode. */
  html[data-reguspace-theme="dark"] body #analysisReportScreen #analysisReportPrepPane .reguprep-plan-card,
  html[data-reguspace-theme="dark"] body #analysisReportScreen #analysisReportPrepPane .reguprep-plan-empty {
    background:#f6f9fc !important;
    border-color:#9aaebe !important;
    color:#203749 !important;
  }
  html[data-reguspace-theme="dark"] body #analysisReportScreen #analysisReportPrepPane .reguprep-plan-card :is(h3,p,strong,span),
  html[data-reguspace-theme="dark"] body #analysisReportScreen #analysisReportPrepPane .reguprep-plan-empty :is(p,strong,span) {
    color:#203749 !important;
    opacity:1 !important;
  }
  html[data-reguspace-theme="dark"] body #analysisReportScreen #analysisReportPrepPane .reguprep-plan-meta {
    color:#40576b !important;
    opacity:1 !important;
  }
  html[data-reguspace-theme="dark"] body #analysisReportScreen #analysisReportPrepPane .reguprep-plan-actions button {
    background:#e9f1f7 !important;
    color:#254962 !important;
    border-color:#8ca8bd !important;
  }
  html[data-reguspace-theme="dark"] body #analysisReportScreen #analysisReportPrepPane .reguprep-plan-actions button.danger {
    background:#fff3f3 !important;
    color:#8b2525 !important;
    border-color:#c78c8c !important;
  }
  html[data-reguspace-theme="dark"] body #analysisReportScreen .reguprep-report-switch {
    background:#eaf1f5 !important;
    border-color:#8ca8bd !important;
  }
  html[data-reguspace-theme="dark"] body #analysisReportScreen .reguprep-report-switch button:not(.is-active) {
    color:#254962 !important;
  }
  html[data-reguspace-theme="dark"] body #analysisReportScreen .reguprep-library-intro,
  html[data-reguspace-theme="dark"] body #analysisReportScreen .reguprep-report-status:not(.is-error) {
    color:#e8eff5 !important;
  }
  /* PREP preview is a reading dialog, not the printed report. */
  #reguPrepPreviewDialog {
    overscroll-behavior:contain;
  }
  #reguPrepPreviewDialog .reguprep-preview-frame {
    height:min(78dvh,820px);
    overflow-y:auto;
    -webkit-overflow-scrolling:touch;
  }
}
