/* UX12CY-R5: strictly local, dark-mode-only contrast fixes. Shared theme/AI CSS untouched. */
@media screen {
  /* Activatieprofiel: both horizontal axis captions cross a pale data map.
     Keep the existing pale-blue caption color, add one quiet dark backing
     so its contrast is reliable on BOTH the dark outer card and pale map. */
  html[data-reguspace-theme="dark"] body main#activation-main #results
  .visual-card .mini-map-wrap :is(.axis-left,.axis-right) {
    color:#bce9ff!important;
    -webkit-text-fill-color:#bce9ff!important;
    background:#253e50;
    border-radius:6px;
    padding:3px 6px;
    text-shadow:none;
    z-index:3;
    box-shadow:0 0 0 1px rgba(188,233,255,.12);
  }
  /* Only the THREE confirmed theme pages. This inline theme helper creates
     the textarea; no changes to JS, copied content or common AI dialog. */
  html[data-reguspace-theme="dark"] body
  :is(#themeMoveScreen,#themeSexualProblemsScreen,#themeReorganisationScreen)
  details.reguspace-ai-theme .reguspace-ai-theme-ui textarea.reguspace-ai-usertext {
    color:#253d50!important;
    -webkit-text-fill-color:#253d50!important;
    background:#fbfdff!important;
    caret-color:#253d50;
    opacity:1;
  }
  html[data-reguspace-theme="dark"] body
  :is(#themeMoveScreen,#themeSexualProblemsScreen,#themeReorganisationScreen)
  details.reguspace-ai-theme .reguspace-ai-theme-ui textarea.reguspace-ai-usertext::placeholder {
    color:#526b7e!important;
    -webkit-text-fill-color:#526b7e!important;
    opacity:1;
  }
  html[data-reguspace-theme="dark"] body
  :is(#themeMoveScreen,#themeSexualProblemsScreen,#themeReorganisationScreen)
  details.reguspace-ai-theme .reguspace-ai-theme-ui textarea.reguspace-ai-usertext:focus-visible {
    outline:2px solid #448aaf;
    outline-offset:2px;
    border-color:#448aaf!important;
  }
}

/* R5 root cause: the visually pale "Voorbeeld" example paragraph, NOT textarea.
   Restrict correction to the three affected theme screens in dark mode. */
@media screen {
html[data-reguspace-theme="dark"] body :is(#themeMoveScreen,#themeSexualProblemsScreen,#themeReorganisationScreen)
 .reguspace-ai-theme-ui p.reguspace-ai-theme-example {
  background:#edf5fa!important;color:#254056!important;
  -webkit-text-fill-color:#254056!important;border-color:#c6d8e6!important;opacity:1!important;
 }
html[data-reguspace-theme="dark"] body :is(#themeMoveScreen,#themeSexualProblemsScreen,#themeReorganisationScreen)
 .reguspace-ai-theme-ui p.reguspace-ai-theme-example strong {
  color:#254056!important;-webkit-text-fill-color:#254056!important;
 }
}
