/* C77 — additive, opt-in only. No existing CSS changes. */
/* The only light-mode rules: styling for the new menu button itself. */
.rs-theme-entry{margin:10px 0 0;padding:7px 0 0;border-top:1px solid #dce6ed}
.rs-theme-control{display:flex;align-items:center;justify-content:space-between;gap:10px;width:100%;min-height:43px;padding:9px 11px;border:1px solid #cfdee7;border-radius:10px;background:#f5f9fb;color:#284b60;font:700 14px/1.3 system-ui,-apple-system,Segoe UI,sans-serif;cursor:pointer;text-align:left}
.rs-theme-control .rs-theme-value{font-size:13px;font-weight:800;color:#185b7b}
.rs-theme-control:focus-visible{outline:3px solid #1f80aa;outline-offset:3px}
.regu-r1-panel .rs-theme-entry{margin:12px 16px;padding:10px 0 0}
.regu-r1-panel .rs-theme-control{font-family:Inter,system-ui,-apple-system,Segoe UI,Arial,sans-serif}
/* The actual theme rules cannot run in Light: data attribute exists only in Dark. */
@media screen {
html[data-reguspace-theme="dark"]{--rs-public-surface:#292f38}
html[data-reguspace-theme="dark"] body{background:var(--rs-public-surface)}
/* Ordinary body-background prose on standard public reading pages, never cards. */
html[data-reguspace-theme="dark"] body main#main-content > h1,
html[data-reguspace-theme="dark"] body main#main-content > h2,
html[data-reguspace-theme="dark"] body main#main-content > h3,
html[data-reguspace-theme="dark"] body main#main-content > p,
html[data-reguspace-theme="dark"] body main#main-content > .breadcrumbs,
html[data-reguspace-theme="dark"] body main#main-content > .byline,
html[data-reguspace-theme="dark"] body main#main-content > article > p,
html[data-reguspace-theme="dark"] body main#main-content > article > h1,
html[data-reguspace-theme="dark"] body main#main-content > article > h2,
html[data-reguspace-theme="dark"] body main#main-content > article > h3,
html[data-reguspace-theme="dark"] body main#main-content > article > ul,
html[data-reguspace-theme="dark"] body main#main-content > article > ol,
html[data-reguspace-theme="dark"] body main#main-content > article > blockquote{color:#d5dee6}
html[data-reguspace-theme="dark"] body main#main-content > article > p > strong,
html[data-reguspace-theme="dark"] body main#main-content > article > p > em,
html[data-reguspace-theme="dark"] body main#main-content > article > p:first-of-type strong,
html[data-reguspace-theme="dark"] body main#main-content > article > p > strong:only-child{color:#e0e9ef}
html[data-reguspace-theme="dark"] body main#main-content > article > p > a,
html[data-reguspace-theme="dark"] body main#main-content > .breadcrumbs > a,
html[data-reguspace-theme="dark"] body main#main-content > p > a{color:#b1d8ee}
/* Intentionally untouched: entire Regulator app/sheet, matrix, advice cards,
   PREP panels, graphs, home hero, menus, imagery, modals and print exports. */
}

/* C100 TEST — v295 MASTER | uitsluitend grote leesvlakken in Regulator.
   Donker alleen indien expliciet gekozen. Niet voor Matrix, advieskaarten,
   gekleurde elementen, invoer, rapportage of print-/exportstand. */
@media screen {
  html[data-reguspace-theme="dark"] body:not(.autumn2026-print-mode):not(.winter2026-print-mode)
  :is(.theme-detail-screen, #manualScreen) > .manual {
    background:#26333f;
    color:#e0e9f0;
  }
  html[data-reguspace-theme="dark"] body:not(.autumn2026-print-mode):not(.winter2026-print-mode)
  :is(.theme-detail-screen, #manualScreen) .manual-top > :is(h1,h2) {
    color:#edf4f9;
  }
  html[data-reguspace-theme="dark"] body:not(.autumn2026-print-mode):not(.winter2026-print-mode)
  :is(.theme-detail-screen, #manualScreen) .manual-top > :is(.intro,p) {
    color:#c7d8e5;
  }
  /* Alleen de grote neutrale artikelvlakken, niet de gekleurde binnenkaarten. */
  html[data-reguspace-theme="dark"] body:not(.autumn2026-print-mode):not(.winter2026-print-mode)
  :is(.theme-detail-screen, #manualScreen) .manual > .section,
  html[data-reguspace-theme="dark"] body:not(.autumn2026-print-mode):not(.winter2026-print-mode)
  .theme-detail-screen .stimuli-article > .section {
    background:#344452;
    color:#e0eaf1;
  }
  html[data-reguspace-theme="dark"] body:not(.autumn2026-print-mode):not(.winter2026-print-mode)
  :is(.theme-detail-screen, #manualScreen) .section > :is(h2,h3,h4),
  html[data-reguspace-theme="dark"] body:not(.autumn2026-print-mode):not(.winter2026-print-mode)
  .theme-detail-screen .stimuli-article > .section > :is(h2,h3,h4) {
    color:#edf5fa;
  }
  html[data-reguspace-theme="dark"] body:not(.autumn2026-print-mode):not(.winter2026-print-mode)
  :is(.theme-detail-screen, #manualScreen) .section > :is(p,ul,ol,.lead,.manual-sublead),
  html[data-reguspace-theme="dark"] body:not(.autumn2026-print-mode):not(.winter2026-print-mode)
  .theme-detail-screen .stimuli-article > .section > :is(p,ul,ol) {
    color:#dce6ed;
  }
  html[data-reguspace-theme="dark"] body:not(.autumn2026-print-mode):not(.winter2026-print-mode)
  .theme-detail-screen .section > p.theme-lead {color:#d9e7f0;}
  html[data-reguspace-theme="dark"] body:not(.autumn2026-print-mode):not(.winter2026-print-mode)
  :is(.theme-detail-screen, #manualScreen) .section > p a {color:#b3e0fa;}

  /* Grote uitklapbare leesteksten; knoppen, tabellen en kleine kaarten blijven hetzelfde. */
  html[data-reguspace-theme="dark"] body:not(.autumn2026-print-mode):not(.winter2026-print-mode)
  :is(.theme-detail-screen, #manualScreen) details.more-info,
  html[data-reguspace-theme="dark"] body:not(.autumn2026-print-mode):not(.winter2026-print-mode)
  #themesScreen details.theme-topic {
    background:#344452;
    border-color:#637787;
  }
  html[data-reguspace-theme="dark"] body:not(.autumn2026-print-mode):not(.winter2026-print-mode)
  :is(.theme-detail-screen, #manualScreen) details.more-info > summary,
  html[data-reguspace-theme="dark"] body:not(.autumn2026-print-mode):not(.winter2026-print-mode)
  #themesScreen details.theme-topic > summary {
    background:#3b5060;
    color:#c7e7f8;
  }
  html[data-reguspace-theme="dark"] body:not(.autumn2026-print-mode):not(.winter2026-print-mode)
  :is(.theme-detail-screen, #manualScreen) details.more-info > .more-info-body,
  html[data-reguspace-theme="dark"] body:not(.autumn2026-print-mode):not(.winter2026-print-mode)
  #themesScreen details.theme-topic > .theme-body {
    color:#dae6ee;
  }
  html[data-reguspace-theme="dark"] body:not(.autumn2026-print-mode):not(.winter2026-print-mode)
  #themesScreen details.theme-topic > .theme-body > h3 {
    color:#e5f2f9;
  }

  /* Seizoensartikelen: uitsluitend de grote leesvlakken, nooit de kleurrijke
     illustraties, gedichten, keuze-/actiekaarten of de omslag/hero. */
  html[data-reguspace-theme="dark"] body:not(.winter2026-print-mode)
  #themeSeasonalWinter2026Screen .winter-section {
    background:#344452;
    border-color:#5c7383;
    color:#dfe8ef;
  }
  html[data-reguspace-theme="dark"] body:not(.winter2026-print-mode)
  #themeSeasonalWinter2026Screen .winter-section > h2 {color:#edf5fa;}
  html[data-reguspace-theme="dark"] body:not(.winter2026-print-mode)
  #themeSeasonalWinter2026Screen .winter-section > p {color:#dce7ee;}

  html[data-reguspace-theme="dark"] body:not(.autumn2026-print-mode)
  #themeSeasonalAutumn2026Screen .season-autumn-2026 .autumn-section {
    background:#344452;
    border-color:#657888;
    color:#dce8f0;
  }
  html[data-reguspace-theme="dark"] body:not(.autumn2026-print-mode)
  #themeSeasonalAutumn2026Screen .season-autumn-2026 .autumn-section > h2 {color:#edf5fa;}
  html[data-reguspace-theme="dark"] body:not(.autumn2026-print-mode)
  #themeSeasonalAutumn2026Screen .season-autumn-2026 .autumn-article > :is(p,ul,ol) {color:#dde7ee;}
  html[data-reguspace-theme="dark"] body:not(.autumn2026-print-mode)
  #themeSeasonalAutumn2026Screen .season-autumn-2026 .autumn-article > h3 {color:#e7e0cb;}
  html[data-reguspace-theme="dark"] body:not(.autumn2026-print-mode)
  #themeSeasonalAutumn2026Screen .season-autumn-2026 .autumn-article > :is(p,h3) strong {color:#e8f3fa;}
  html[data-reguspace-theme="dark"] body:not(.autumn2026-print-mode)
  #themeSeasonalAutumn2026Screen .season-autumn-2026 .autumn-disclosure {
    background:#344452;
    border-color:#627888;
    color:#dce8ef;
  }
  html[data-reguspace-theme="dark"] body:not(.autumn2026-print-mode)
  #themeSeasonalAutumn2026Screen .season-autumn-2026 .autumn-disclosure > summary {color:#c3e5f7;}
  /* Decoratieve lichte gedichtkaders houden hun oorspronkelijke donkere tekst. */
  html[data-reguspace-theme="dark"] body:not(.winter2026-print-mode)
  #themeSeasonalWinter2026Screen .winter-section .winter-poem {color:#273546;}
  html[data-reguspace-theme="dark"] body:not(.autumn2026-print-mode)
  #themeSeasonalAutumn2026Screen .autumn-section :is(.autumn-poem,.autumn-poem-modern) {color:#303b46;}

}

/* C103 EXPERIMENT — Persoonlijkheid, darkmode only, based on C102.
   Neutrale leesvlakken in drie tinten. Geen selectors voor matrix, diagrammen,
   grafieken, gekleurde informatievakken, formulieren, andere modules of print. */
@media screen {
  /* Binnen Persoonlijkheid: donker hoofdcanvas en lichtere hoofdsecties. */
  html[data-reguspace-theme="dark"] body #personalityScreen > .manual {
    background:#26333f;
    color:#e0e9f0;
  }
  html[data-reguspace-theme="dark"] body #personalityScreen .manual-top h1 {color:#f1f6fa;}
  html[data-reguspace-theme="dark"] body #personalityScreen .manual-top .intro {color:#d1e0eb;}
  html[data-reguspace-theme="dark"] body #personalityScreen > .manual > .section {
    background:#344452;
    border-color:#5b7080;
    color:#e1eaf1;
  }
  html[data-reguspace-theme="dark"] body #personalityScreen > .manual > .section > h2,
  html[data-reguspace-theme="dark"] body #personalityScreen .big5-section-head h2 {color:#f0f6fa;}
  html[data-reguspace-theme="dark"] body #personalityScreen > .manual > .section > :is(p,.lead),
  html[data-reguspace-theme="dark"] body #personalityScreen .personality-mixer-copy,
  html[data-reguspace-theme="dark"] body #personalityScreen .big5-compact-intro {color:#e0e9f0;}
  html[data-reguspace-theme="dark"] body #personalityScreen .big5-kicker {color:#b9dced;}
  html[data-reguspace-theme="dark"] body #personalityScreen .big5-time {
    background:#465967;border-color:#6d8292;color:#e3edf3;
  }
  html[data-reguspace-theme="dark"] body #personalityScreen .big5-tool-instruction,
  html[data-reguspace-theme="dark"] body #personalityScreen .big5-progress-row,
  html[data-reguspace-theme="dark"] body #personalityScreen .big5-validated {color:#dce8f1;}

  /* Twee grote secties hebben in de bestaande pagina extra specifieke #id-regels.
     Deze override is uitsluitend donker en houdt het principe consistent. */
  html[data-reguspace-theme="dark"] body #personalityScreen #big5EstimateSection,
  html[data-reguspace-theme="dark"] body #personalityScreen #personalityDevelopmentSection {
    background:#344452;border-color:#5b7080;color:#e1eaf1;
  }

  /* Neutrale OCEAN-verdieping: zichtbaar lichter dan hoofdvlak. */
  html[data-reguspace-theme="dark"] body #personalityScreen .personality-ocean-list {
    border-color:#617687;
  }
  html[data-reguspace-theme="dark"] body #personalityScreen .personality-ocean-list .trait-practice {
    background:#405462;border-color:#667e8e;color:#e5edf2;
  }
  html[data-reguspace-theme="dark"] body #personalityScreen .personality-ocean-list .trait-practice > summary {
    color:#cfeaf9;
  }
  html[data-reguspace-theme="dark"] body #personalityScreen .trait-practice-item {
    background:#4b6170;color:#e2ebf2;
  }
  html[data-reguspace-theme="dark"] body #personalityScreen .trait-practice-item > strong,
  html[data-reguspace-theme="dark"] body #personalityScreen .trait-practice-item .trait-score-note strong {
    color:#f4f8fb;
  }
  html[data-reguspace-theme="dark"] body #personalityScreen .trait-score-note {
    color:#d7e4ed;border-color:#79909e;
  }

  /* Neutrale analyse- en resultaatkaders; interactieve antwoordknoppen en
     diagram-/grafiekgebieden blijven bewust in hun oorspronkelijke kleuren. */
  html[data-reguspace-theme="dark"] body #personalityScreen :is(.big5-disclaimer,.big5-result-principle,.big5-n-note) {
    background:#405462;border-color:#647b8b;color:#e1eaf1;
  }
  html[data-reguspace-theme="dark"] body #personalityScreen .big5-factor-result {
    background:#405462;border-color:#687e8d;
  }
  html[data-reguspace-theme="dark"] body #personalityScreen .big5-factor-result > summary,
  html[data-reguspace-theme="dark"] body #personalityScreen .big5-factor-body,
  html[data-reguspace-theme="dark"] body #personalityScreen .big5-factor-body h4 {color:#e6eff5;}
  html[data-reguspace-theme="dark"] body #personalityScreen .big5-summary-band {color:#c7e7f8;}
  html[data-reguspace-theme="dark"] body #personalityScreen .big5-validated > div {
    background:#405462;color:#e1eaf1;
  }

  /* Bescherm het oorspronkelijke donkere tekstcontrast op lichte werkvlakken.
     Opmaak/kleuren van canvas, grafiek en invulvragen blijven verder intact. */
  html[data-reguspace-theme="dark"] body #personalityScreen :is(.big5-chart,.big5-question,.mirror-table,.mirror-radar-wrap,#big5Radar) {
    color:#172534;
  }

  /* Mengpaneel: neutrale schuifkaartjes donker, echte sliders blijven gelijk. */
  html[data-reguspace-theme="dark"] body #personalityScreen .personality-grid {
    background:#405462;border-color:#647d8e;
  }
  html[data-reguspace-theme="dark"] body #personalityScreen .personality-card {
    background:#405462;border-color:#647d8e;color:#e0eaf1;
  }
  html[data-reguspace-theme="dark"] body #personalityScreen .personality-card h3,
  html[data-reguspace-theme="dark"] body #personalityScreen .personality-card p,
  html[data-reguspace-theme="dark"] body #personalityScreen .personality-scale-labels {color:#e6f0f5;}
  html[data-reguspace-theme="dark"] body #personalityScreen .personality-readout {
    background:#4d6473;border-color:#78909f;color:#f0f6fa;
  }

  /* 360°-uitklapkader en ontwikkelreflectie: grafiek, tabel en canvas intact. */
  html[data-reguspace-theme="dark"] body #personalityScreen .big5-mirror-details {
    background:#405462;border-color:#6a8090;color:#e0eaf1;
  }
  html[data-reguspace-theme="dark"] body #personalityScreen .big5-mirror-details > summary {color:#cfeafa;}
  html[data-reguspace-theme="dark"] body #personalityScreen .big5-mirror-details .mirror-questions {color:#e0eaf1;}
  html[data-reguspace-theme="dark"] body #personalityScreen .personality-research-note {
    color:#dce8f0;border-left-color:#8eafc3;
  }

  /* Resultaattitel en label bij de 360°-reflectie liggen direct op donker. */
  html[data-reguspace-theme="dark"] body #personalityScreen #big5Results > h2,
  html[data-reguspace-theme="dark"] body #personalityScreen .mirror-reflection {
    color:#e7f0f6;
  }
  /* Deze optionele informatiekaders hebben juist een eigen lichtgekleurde
     achtergrond: voorkomen dat overgeërfde lichte tekst onleesbaar wordt. */
  html[data-reguspace-theme="dark"] body #personalityScreen :is(.big5-how,.big5-recognize,.big5-core-quote) {
    color:#344054;
  }
  html[data-reguspace-theme="dark"] body #personalityScreen :is(.big5-how,.big5-recognize) h3 {
    color:#24364b;
  }

  /* Reflectievelden behouden hun lichte schrijfruimte en donkere invoertekst.
     Alleen het omliggende, neutrale kader wordt een verdiepingslaag. */
  html[data-reguspace-theme="dark"] body #personalityScreen .personality-next-field {
    background:#405462;border-color:#6c8291;color:#e7f0f6;
  }
}

/* C108 TEST — Persoonlijkheid: leesbaarheid in darkmode (voortbouwend op C103).
   Herbruikbare kleurtokens, voorlopig uitsluitend binnen Persoonlijkheid.
   Geen aanpassingen in light/print, aan grafieken, spinnenweb, knoppen voor export,
   gekleurde informatiekaarten of andere Regulator-schermen. */
@media screen {
  html[data-reguspace-theme="dark"] body #personalityScreen {
    --regu-dm-read:#344452;
    --regu-dm-depth:#405462;
    --regu-dm-control:#526878;
    --regu-dm-edge:#8295a3;
    --regu-dm-text:#edf4f8;
    --regu-dm-muted:#d4e2ec;
    --regu-dm-focus:#a9d9f5;
  }
  /* 25 vragen: het vraagzinnetje en de antwoordmogelijkheden horen bij hetzelfde
     donkere leesvlak. Zowel de vraag als de numerieke markering blijft leesbaar. */
  html[data-reguspace-theme="dark"] body #personalityScreen .big5-question {
    background:var(--regu-dm-depth);
    color:var(--regu-dm-text);
    border-color:var(--regu-dm-edge);
  }
  html[data-reguspace-theme="dark"] body #personalityScreen .big5-question legend {
    color:var(--regu-dm-text);
  }
  html[data-reguspace-theme="dark"] body #personalityScreen .big5-question .big5-qnum {
    background:#5a7486;
    color:#fff;
  }
  html[data-reguspace-theme="dark"] body #personalityScreen .big5-answer span {
    background:var(--regu-dm-control);
    border-color:var(--regu-dm-edge);
    color:var(--regu-dm-text);
  }
  html[data-reguspace-theme="dark"] body #personalityScreen .big5-answer input:checked + span {
    background:#285e80;
    color:#fff;
    border-color:var(--regu-dm-focus);
    box-shadow:inset 0 0 0 1px var(--regu-dm-focus);
  }
  html[data-reguspace-theme="dark"] body #personalityScreen .big5-answer input:focus-visible + span {
    outline:3px solid var(--regu-dm-focus);
    outline-offset:2px;
  }
  html[data-reguspace-theme="dark"] body #personalityScreen .big5-tool-status {
    color:#ffe0a3;
  }
  /* 360°: alleen de neutrale score-invoer (niet de radar / grafiek). */
  html[data-reguspace-theme="dark"] body #personalityScreen .mirror-table {
    border-color:var(--regu-dm-edge);
    background:var(--regu-dm-depth);
    color:var(--regu-dm-text);
  }
  html[data-reguspace-theme="dark"] body #personalityScreen .mirror-head {
    background:#4c6070;
    color:var(--regu-dm-text);
  }
  html[data-reguspace-theme="dark"] body #personalityScreen .mirror-row {
    background:var(--regu-dm-depth);
    color:var(--regu-dm-text);
    border-top-color:#6a8192;
  }
  html[data-reguspace-theme="dark"] body #personalityScreen .mirror-head span,
  html[data-reguspace-theme="dark"] body #personalityScreen .mirror-row > * {
    border-right-color:#6a8192;
  }
  html[data-reguspace-theme="dark"] body #personalityScreen .mirror-factor,
  html[data-reguspace-theme="dark"] body #personalityScreen .mirror-self,
  html[data-reguspace-theme="dark"] body #personalityScreen .mirror-select > span,
  html[data-reguspace-theme="dark"] body #personalityScreen .mirror-notes-grid label {
    color:var(--regu-dm-text);
  }
  html[data-reguspace-theme="dark"] body #personalityScreen .mirror-factor strong {
    background:#5a7486;
    color:#fff;
  }
  html[data-reguspace-theme="dark"] body #personalityScreen .mirror-row select,
  html[data-reguspace-theme="dark"] body #personalityScreen .mirror-select select {
    background:var(--regu-dm-control);
    border-color:var(--regu-dm-edge);
    color:var(--regu-dm-text);
    color-scheme:dark;
  }
  /* Eigen reflecties: licht antraciet als schrijfruimte, met zichtbaar focuskader. */
  html[data-reguspace-theme="dark"] body #personalityScreen .personality-next-field textarea,
  html[data-reguspace-theme="dark"] body #personalityScreen #big5MirrorSection .mirror-reflection textarea,
  html[data-reguspace-theme="dark"] body #personalityScreen #big5MirrorSection .mirror-notes-grid textarea {
    background:var(--regu-dm-control);
    border-color:var(--regu-dm-edge);
    color:var(--regu-dm-text);
    caret-color:#fff;
    color-scheme:dark;
  }
  html[data-reguspace-theme="dark"] body #personalityScreen :is(.personality-next-field,#big5MirrorSection) textarea::placeholder {
    color:var(--regu-dm-muted);
    opacity:1;
  }
  html[data-reguspace-theme="dark"] body #personalityScreen :is(.personality-next-field,#big5MirrorSection) textarea:focus-visible,
  html[data-reguspace-theme="dark"] body #personalityScreen .mirror-row select:focus-visible {
    outline:3px solid var(--regu-dm-focus);
    outline-offset:1px;
  }
}

/* C109 TEST — stap 1: leescontrast. Alleen opt-in darkmode en scherm.
   Geen globale tekstkleur-overrides, geen Matrix/advies/kleuren/print.
   Dit blijft in dezelfde gedeelde stylesheet als C100/C103/C108. */
@media screen {
  /* Gemeenschappelijke neutrale kleurlagen voor latere, afgebakende kandidaten.
     Geen effect op zichzelf; C108 Persoonlijkheid behoudt zijn eigen tokens. */
  html[data-reguspace-theme="dark"] {
    --regu-dm-base:#292f38;
    --regu-dm-read:#344452;
    --regu-dm-depth:#405462;
    --regu-dm-control:#526878;
    --regu-dm-text:#edf4f8;
    --regu-dm-muted:#d4e2ec;
    --regu-dm-link:#b6e2fc;
  }

  /* Publieke rondleiding: de koppen en intro staan direct op antraciet.
     De lichte previews, gekleurde kaarten en screenshots blijven ongemoeid. */
  html[data-reguspace-theme="dark"] body main#main-content.complete-page .complete-hero h1,
  html[data-reguspace-theme="dark"] body main#main-content.complete-page .complete-detail-head h1 {
    color:var(--regu-dm-text);
  }
  html[data-reguspace-theme="dark"] body main#main-content.complete-page .complete-kicker {
    color:#c0ddea;
  }
  html[data-reguspace-theme="dark"] body main#main-content.complete-page .complete-hero > p,
  html[data-reguspace-theme="dark"] body main#main-content.complete-page .complete-detail-head > div > p {
    color:var(--regu-dm-muted);
  }
  /* Alleen links op de donkere publieke artikelachtergrond, niet in kaarten. */
  html[data-reguspace-theme="dark"] body main#main-content > article > p > a,
  html[data-reguspace-theme="dark"] body main#main-content > article > p > a:visited,
  html[data-reguspace-theme="dark"] body main#main-content > p > a,
  html[data-reguspace-theme="dark"] body main#main-content > p > a:visited {
    color:var(--regu-dm-link);
    text-decoration-thickness:1px;
    text-underline-offset:2px;
  }

  /* C100 had .manual-top > h1 / > .intro, maar in de werkelijke HTML
     staat een omsluitende div. Deze gerichte correctie bereikt de tekst. */
  html[data-reguspace-theme="dark"] body:not(.autumn2026-print-mode):not(.winter2026-print-mode) .theme-detail-screen .manual-top > div > :is(h1,h2) {
    color:var(--regu-dm-text);
  }
  html[data-reguspace-theme="dark"] body:not(.autumn2026-print-mode):not(.winter2026-print-mode) .theme-detail-screen .manual-top > div > :is(.intro,p) {
    color:var(--regu-dm-muted);
  }

  /* Het canvas-achtervlak van de 360°-radar is een neutrale lichte drager.
     Geen wijziging van de getekende radar, lijnen, labels of scoringscode. */
  html[data-reguspace-theme="dark"] body #personalityScreen #big5Radar {
    background:#f3f6f8;
  }
}

/* C110 TEST — afronding darkmode stap 1 + neutrale kaders, 30-10-2026.
   Alleen opt-in darkmode op SCHERM. Afgebakende selectors, geen wijzigingen
   aan Matrix, diagramtekening, advieskleurkaarten, inhoud, print of light. */
@media screen {
  /* Persoonlijkheid: de eerste reflectievraag had op desktop bewust een
     kunstmatige lege regel in ::after. Haal alleen die spacer weg. */
  html[data-reguspace-theme="dark"] body #personalityScreen
  .personality-next-field:first-child > span::after {
    content:none;
    display:none;
  }

  /* Radar: de getekende radar blijft op C109 grijsblauw; alleen het grote
     witte buitenvlak wordt een neutrale donkere verdiepingslaag. De legenda
     houdt een licht vlak zodat zijn bestaande betekenisvolle kleuren leesbaar
     blijven (ook de zwarte marker voor Persoon 2). */
  html[data-reguspace-theme="dark"] body #personalityScreen
  .mirror-radar-wrap {
    background:var(--regu-dm-depth,#405462);
    border-color:#718696;
    color:var(--regu-dm-text,#edf4f8);
  }
  html[data-reguspace-theme="dark"] body #personalityScreen
  .mirror-radar-wrap > h3 {color:var(--regu-dm-text,#edf4f8);}
  html[data-reguspace-theme="dark"] body #personalityScreen
  .mirror-radar-wrap > p.lead {color:var(--regu-dm-muted,#d4e2ec);}
  html[data-reguspace-theme="dark"] body #personalityScreen
  .mirror-radar-legend {
    width:fit-content;
    max-width:100%;
    padding:6px 9px;
    border:1px solid #d6e1e8;
    border-radius:9px;
    background:#f3f6f8;
  }

  /* Publiek: bio-tekst buiten de lichte biografiekaart. De biografiekaart
     zelf, het portret en andere kaartkleuren blijven onaangetast. */
  html[data-reguspace-theme="dark"] body.profile-page
  main#main-content article .profile-hero-copy > p,
  html[data-reguspace-theme="dark"] body.profile-page
  main#main-content article .profile-hero-copy > p > strong {
    color:var(--regu-dm-text,#edf4f8);
  }

  /* Publiek: privacyblok staat rechtstreeks op de donkere artikelachtergrond.
     Geen globale selector op details of andere juridische kaarten. */
  html[data-reguspace-theme="dark"] body main#main-content
  #rs-formele-privacy-sectie > h2 {color:var(--regu-dm-text,#edf4f8);}
  html[data-reguspace-theme="dark"] body main#main-content
  #rs-formele-privacy-sectie > details > summary {color:#c4e6fa;}
  html[data-reguspace-theme="dark"] body main#main-content
  #rs-formele-privacy-sectie > details > :is(p,ul,ol) {color:var(--regu-dm-muted,#d4e2ec);}
  html[data-reguspace-theme="dark"] body main#main-content
  #rs-formele-privacy-sectie > details a {color:var(--regu-dm-link,#b6e2fc);}

  /* Activatieprofiel: uitsluitend de zes vraagdomeinen met hun 48 kaarten.
     Zachtblauwe impactvragen, actieve selecties en overige resultaatsvelden
     blijven herkenbaar en behouden hun eigen kleuren/functies. */
  html[data-reguspace-theme="dark"] body main#activation-main
  .domain-block {
    background:var(--regu-dm-read,#344452);
    border-color:#718696;
    color:var(--regu-dm-text,#edf4f8);
  }
  html[data-reguspace-theme="dark"] body main#activation-main
  .domain-block .domain-head h2 {color:var(--regu-dm-text,#edf4f8);}
  html[data-reguspace-theme="dark"] body main#activation-main
  .domain-block :is(.eyebrow,.domain-sub) {color:var(--regu-dm-muted,#d4e2ec);}
  html[data-reguspace-theme="dark"] body main#activation-main
  .domain-block .qcard {
    background:var(--regu-dm-depth,#405462);
    border-color:#718696;
    color:var(--regu-dm-text,#edf4f8);
  }
  html[data-reguspace-theme="dark"] body main#activation-main
  .domain-block .qcard.missing {border-color:#e0a0a0;outline-color:rgba(224,120,120,.36);}
  html[data-reguspace-theme="dark"] body main#activation-main
  .domain-block .qcard .qnum {background:#587185;color:#fff;}
  html[data-reguspace-theme="dark"] body main#activation-main
  .domain-block .qcard .qtext {color:var(--regu-dm-text,#edf4f8);}
  html[data-reguspace-theme="dark"] body main#activation-main
  .domain-block .qcard .opt:not(.active) {
    background:#526878;
    border-color:#90a6b5;
    color:#f4f8fb;
  }
  html[data-reguspace-theme="dark"] body main#activation-main
  .domain-block .qcard .opt:focus-visible {
    outline:3px solid #a9d9f5;
    outline-offset:2px;
  }

  /* Persoonlijk: neutrale hoofdmenu-tegels, ook in de mobiele éénkolomsweergave.
     De gekleurde pictogram-badges blijven zoals ze zijn. */
  html[data-reguspace-theme="dark"] body #personalityHubScreen
  > .manual.personality-hub-page {
    background:#26333f;
    color:var(--regu-dm-text,#edf4f8);
  }
  html[data-reguspace-theme="dark"] body #personalityHubScreen
  .personality-hub-page .manual-top h1 {color:var(--regu-dm-text,#edf4f8);}
  html[data-reguspace-theme="dark"] body #personalityHubScreen
  .personality-hub-page .manual-top .intro {color:var(--regu-dm-muted,#d4e2ec);}
  html[data-reguspace-theme="dark"] body #personalityHubScreen
  .personality-hub-page .analysis-choice-card {
    background:var(--regu-dm-depth,#405462);
    border-color:#718696;
    color:var(--regu-dm-text,#edf4f8);
  }
  html[data-reguspace-theme="dark"] body #personalityHubScreen
  .personality-hub-page .analysis-choice-card .analysis-choice-title {
    color:var(--regu-dm-text,#edf4f8);
  }
  html[data-reguspace-theme="dark"] body #personalityHubScreen
  .personality-hub-page .analysis-choice-card .analysis-choice-copy {
    color:var(--regu-dm-muted,#d4e2ec);
  }
  html[data-reguspace-theme="dark"] body #personalityHubScreen
  .personality-hub-page .analysis-choice-card .analysis-choice-action {
    color:#b6e2fc;
  }
  html[data-reguspace-theme="dark"] body #personalityHubScreen
  .personality-hub-page .analysis-choice-card:focus-visible {
    outline:3px solid #a9d9f5;
    outline-offset:3px;
  }

  /* Publieke nieuws-overzichtskaarten: uitsluitend deze neutrale lijstkaarten.
     Kicker-badges blijven in hun lichte, betekenisvolle accentkleur. */
  html[data-reguspace-theme="dark"] body main#main-content.article-overview
  .cards > a.card {
    background:var(--regu-dm-read,#344452);
    border-color:#718696;
    color:var(--regu-dm-text,#edf4f8);
  }
  html[data-reguspace-theme="dark"] body main#main-content.article-overview
  .cards > a.card :is(h2,h3) {color:var(--regu-dm-text,#edf4f8);}
  html[data-reguspace-theme="dark"] body main#main-content.article-overview
  .cards > a.card > p {color:var(--regu-dm-muted,#d4e2ec);}
  html[data-reguspace-theme="dark"] body main#main-content.article-overview
  .cards > a.card:focus-visible {outline:3px solid #a9d9f5;outline-offset:3px;}

  /* Thematiek: dit ene logboek-callout had een expliciete lichte gradient die
     de al donkere C100-tekst onleesbaar maakte. Andere (gekleurde) kaders
     en de knop Naar Regu-Logboek blijven ongewijzigd. */
  html[data-reguspace-theme="dark"] body:not(.autumn2026-print-mode):not(.winter2026-print-mode)
  #themeStimuliJetScreen .stimuli-article .section.theme-callout {
    background:var(--regu-dm-depth,#405462);
    border-color:#718696;
    color:var(--regu-dm-text,#edf4f8);
  }
  html[data-reguspace-theme="dark"] body:not(.autumn2026-print-mode):not(.winter2026-print-mode)
  #themeStimuliJetScreen .stimuli-article .section.theme-callout > h2,
  html[data-reguspace-theme="dark"] body:not(.autumn2026-print-mode):not(.winter2026-print-mode)
  #themeStimuliJetScreen .stimuli-article .section.theme-callout > p {
    color:var(--regu-dm-text,#edf4f8);
  }
}
/* C111 TEST · 30-10-2026 · subtiele darkmode-verfijning op C110.
   Uitsluitend opt-in darkmode op scherm. Geen aanpassing aan lichte modus,
   actieve keuzes, Matrix, poppetjes/afbeeldingen, rapporten, print of PDF. */
@media screen {
  /* Complete-footer: leesbare rustige basis, ook bij smalle schermen.
     Duidelijke interactieve links zonder helderwitte tegelrij. */
  html[data-reguspace-theme="dark"] body > .app-footer {
    background:#344452;
    border-color:#657b8a;
    color:#d4e2ec;
  }
  html[data-reguspace-theme="dark"] body > .app-footer > strong,
  html[data-reguspace-theme="dark"] body > .app-footer > .author-mail {
    color:#edf4f8;
  }
  html[data-reguspace-theme="dark"] body > .app-footer .footer-actions > .footer-link-btn {
    color:#c4e6fa;
  }
  html[data-reguspace-theme="dark"] body > .app-footer > .v294c2-footer-guide > a {
    background:#405462;
    border-color:#77909e;
    color:#edf4f8;
  }
  html[data-reguspace-theme="dark"] body > .app-footer > .v294c2-footer-guide > a:hover {
    background:#526878;
  }
  html[data-reguspace-theme="dark"] body > .app-footer > .v294c2-footer-guide > a:focus-visible,
  html[data-reguspace-theme="dark"] body > .app-footer .footer-actions > .footer-link-btn:focus-visible {
    outline:3px solid #a9d9f5;
    outline-offset:2px;
  }
  html[data-reguspace-theme="dark"] body > .app-footer > .footer-version {
    color:#c0d0db;
  }

  /* Matrixpagina: alleen neutrale presetknoppen en samenvattingen.
     Gekozen preset behoudt zijn bestaande donkere actieve status. */
  html[data-reguspace-theme="dark"] body #modelScreen #profileResiliencePanel .preset-btn:not(.active) {
    background:#d9e3e9;
    border-color:#aabdc9;
    color:#21394e;
  }
  html[data-reguspace-theme="dark"] body #modelScreen .summary > .sum {
    background:#d9e3e9;
    color:#21394e;
  }
  html[data-reguspace-theme="dark"] body #modelScreen .summary > .sum > .k {
    color:#465c6b;
  }

  /* Desktop-Quickstart: alleen witte omkadering van figuurknoppen matigen.
     Afbeelding, betekenisvolle kleuren en gekozen-knop-state onveranderd. */
  html[data-reguspace-theme="dark"] body #quickCheck .state-choice {
    background:#d9e3e9;
    border-color:#aec0ca;
  }
  html[data-reguspace-theme="dark"] body #quickCheck .state-choice .state-copy {
    background:#d9e3e9;
  }
  html[data-reguspace-theme="dark"] body #quickCheck .state-choice .state-sub {
    color:#485f70;
  }

  /* Mobiele Quick: alleen het omringende 1·Plot-paneel, NIET de keuzevakken. */
  html[data-reguspace-theme="dark"] body #quickMobileApp #qmCheck {
    background:#d9e3e9;
    border-color:#adc0cc;
  }

  /* Publieke biografie: lichte maar duidelijk grijsblauwe tekstkaart. */
  html[data-reguspace-theme="dark"] body.profile-page main#main-content .profile-hero .lead-card {
    background:#d9e3e9;
    border-color:#b8cbd7;
    color:#30495c;
  }

  /* Activatieprofiel: neutrale uitleg bovenaan en patroonkaartjes.
     Kleurbetekenis en vragen/antwoorden inhoudelijk ongewijzigd. */
  html[data-reguspace-theme="dark"] body main#activation-main > header.hero {
    background:#344452;
    border-color:#718696;
    color:#edf4f8;
  }
  html[data-reguspace-theme="dark"] body main#activation-main > header.hero > h1 {
    color:#edf4f8;
  }
  html[data-reguspace-theme="dark"] body main#activation-main > header.hero > .lead {
    color:#d4e2ec;
  }
  html[data-reguspace-theme="dark"] body main#activation-main > header.hero > .brand {
    color:#b6e2fc;
  }
  html[data-reguspace-theme="dark"] body main#activation-main > header.hero > .ap-regulator-option {
    color:#c4e6fa;
  }
  html[data-reguspace-theme="dark"] body main#activation-main > header.hero .info-grid > .info-card {
    background:#405462;
    border-color:#718696;
    color:#edf4f8;
  }
  html[data-reguspace-theme="dark"] body main#activation-main > header.hero .info-card > h3 {
    color:#edf4f8;
  }
  html[data-reguspace-theme="dark"] body main#activation-main > header.hero :is(.model-cell,.source-cell) {
    background:#526878;
    border-color:#849cae;
    color:#edf4f8;
  }
  html[data-reguspace-theme="dark"] body main#activation-main > header.hero :is(.model-cell,.source-cell) > strong {
    color:#f5f9fc;
  }
  html[data-reguspace-theme="dark"] body main#activation-main > header.hero .pill {
    background:#526878;
    border-color:#849cae;
    color:#edf4f8;
  }

  /* Lichamelijke activatie: visueel exact dezelfde neutrale kaartfamilie
     als de zes C110-prikkeldomeinen; actie/selected states blijven bestaan. */
  html[data-reguspace-theme="dark"] body main#activation-main #physicalActivationBlock {
    background:#344452;
    border-color:#718696;
    color:#edf4f8;
  }
  html[data-reguspace-theme="dark"] body main#activation-main #physicalActivationBlock .domain-head h2 {
    color:#edf4f8;
  }
  html[data-reguspace-theme="dark"] body main#activation-main #physicalActivationBlock .eyebrow {
    color:#d4e2ec;
  }
  html[data-reguspace-theme="dark"] body main#activation-main #physicalActivationBlock .qcard {
    background:#405462;
    border-color:#718696;
    color:#edf4f8;
  }
  html[data-reguspace-theme="dark"] body main#activation-main #physicalActivationBlock .qcard.missing {
    border-color:#e0a0a0;
    outline-color:rgba(224,120,120,.36);
  }
  html[data-reguspace-theme="dark"] body main#activation-main #physicalActivationBlock .qnum {
    background:#587185;
    color:#fff;
  }
  html[data-reguspace-theme="dark"] body main#activation-main #physicalActivationBlock .qtext {
    color:#edf4f8;
  }
  html[data-reguspace-theme="dark"] body main#activation-main #physicalActivationBlock .phys-opt:not(.active) {
    background:#526878;
    border-color:#90a6b5;
    color:#f4f8fb;
  }
  html[data-reguspace-theme="dark"] body main#activation-main #physicalActivationBlock .phys-opt:focus-visible {
    outline:3px solid #a9d9f5;
    outline-offset:2px;
  }
  html[data-reguspace-theme="dark"] body main#activation-main #physicalActivationBlock .physical-intro {
    background:#405462;
    border-color:#718696;
    color:#edf4f8;
  }

  /* Impactvragen: eigen, iets lichtere grijsblauwe accentlaag houden.
     Actieve blauwe antwoorden blijven onaangetast. */
  html[data-reguspace-theme="dark"] body main#activation-main :is(.domain-block .impact-card,#physicalActivationBlock .physical-match) {
    background:#cbdde7;
    border-color:#a5bdcb;
    color:#21394e;
  }
  html[data-reguspace-theme="dark"] body main#activation-main :is(.domain-block .impact-card,#physicalActivationBlock .physical-match) .impact-kicker {
    color:#475e70;
  }
  html[data-reguspace-theme="dark"] body main#activation-main :is(.domain-block .impact-card,#physicalActivationBlock .physical-match) .impact-question {
    color:#21394e;
  }
  html[data-reguspace-theme="dark"] body main#activation-main :is(.domain-block .impact-card .impact-opt:not(.active),#physicalActivationBlock .physical-match .physical-fit-opt:not(.active)) {
    background:#e6eef3;
    border-color:#b2c6d2;
    color:#21394e;
  }
}

/* C112 TEST · 30-10-2026 · laatste beperkte darkmode-contrastcorrectie.
   Alleen scherm + expliciete darkmode. Beschermt figuren, Matrix, keuze-
   staten, StrategyBank, print/PDF en de lichte modus. */
@media screen {
  /* Quickstart: alleen de witte 'letterbox' rond de PNG-afbeelding; de warme
     achtergrond zit al in de PNG en blijft byte-identiek. */
  html[data-reguspace-theme="dark"] body #quickCheck .state-choice img {
    background:#d9e3e9;
  }

  /* Activatieprofiel: publieke contextintro bleef wit door eigen inline CSS. */
  html[data-reguspace-theme="dark"] body main#activation-main > .rs-context {
    background:#405462;
    border-color:#718696;
    color:#edf4f8;
  }
  html[data-reguspace-theme="dark"] body main#activation-main > .rs-context > strong {
    color:#f3f8fb;
  }
  html[data-reguspace-theme="dark"] body main#activation-main > .rs-context .rs-linkbtn.secondary {
    background:#526878;
    border-color:#90a6b5;
    color:#f4f8fb!important;
  }
  html[data-reguspace-theme="dark"] body main#activation-main > .rs-context .rs-linkbtn.secondary:focus-visible {
    outline:3px solid #a9d9f5;
    outline-offset:2px;
  }
  /* Impact-/matchkaders een fractie minder licht, actieve antwoorden behouden. */
  html[data-reguspace-theme="dark"] body main#activation-main
  :is(.domain-block .impact-card,#physicalActivationBlock .physical-match) {
    background:#bbd0dd;
    border-color:#97b2c3;
  }

  /* Over William: enkel onderste waarom-naar-verhaal-callout, geen biografie. */
  html[data-reguspace-theme="dark"] body.profile-page main#main-content article > .callout {
    background:#405462;
    border-color:#718696;
    color:#edf4f8;
  }
  html[data-reguspace-theme="dark"] body.profile-page main#main-content article > .callout :is(h3,p) {
    color:#edf4f8;
  }
  html[data-reguspace-theme="dark"] body.profile-page main#main-content article > .callout .button.secondary {
    background:#d2e0e7;
    border-color:#a4bbc9;
    color:#21394e!important;
  }

  /* Footer van de publieke schil (andere component dan app-footer C111). */
  html[data-reguspace-theme="dark"] body > .rs-compact-footer {
    background:#344452;
    border-top-color:#657b8a;
    color:#d4e2ec;
  }
  html[data-reguspace-theme="dark"] body > .rs-compact-footer .rs-footer-strap {
    color:#d4e2ec;
  }
  html[data-reguspace-theme="dark"] body > .rs-compact-footer .rs-footer-links a {
    color:#c4e6fa;
  }
  html[data-reguspace-theme="dark"] body > .rs-compact-footer .rs-footer-links a:focus-visible {
    outline:3px solid #a9d9f5;
  }

  /* Publieke hoofdmenu-balk en mobiele uitschuifnavigatie. */
  html[data-reguspace-theme="dark"] body .rs-site-head {
    background:var(--rs-public-surface)!important;
    border-bottom-color:#536473!important;
    box-shadow:0 3px 14px rgba(6,18,28,.14)!important;
  }
  html[data-reguspace-theme="dark"] body .rs-public-bar a {
    color:#e3eff6;
  }
  html[data-reguspace-theme="dark"] body .rs-public-bar a:hover {
    color:#b6e2fc;
  }
  html[data-reguspace-theme="dark"] body .rs-public-bar .rs-nav-regulator {
    color:#c4e6fa!important;
    border-right-color:#718696;
  }
  html[data-reguspace-theme="dark"] body .rs-public-bar .rs-nav-home {
    color:#edf4f8!important;
  }
  html[data-reguspace-theme="dark"] body .rs-nav-scroll > a[aria-current="page"] {
    background:#526878;
    color:#f4f9fc;
  }
  html[data-reguspace-theme="dark"] body .rs-nav-toggle {
    background:var(--rs-public-surface);
    border-color:#7f96a6;
    color:#e6f3fa;
  }
  html[data-reguspace-theme="dark"] body .rs-nav-drawer {
    background:#344452;
    border-right:1px solid #657b8a;
    color:#edf4f8;
  }
  html[data-reguspace-theme="dark"] body .rs-nav-drawer .rs-drawer-title a {
    color:#edf4f8;
  }
  html[data-reguspace-theme="dark"] body .rs-nav-drawer .rs-drawer-close {
    background:#405462;
    border-color:#8097a7;
    color:#edf4f8;
  }
  html[data-reguspace-theme="dark"] body .rs-nav-drawer .rs-drawer-links a {
    color:#e0edf5;
  }
  html[data-reguspace-theme="dark"] body .rs-nav-drawer .rs-drawer-links a span {
    color:#a9cada;
  }
  html[data-reguspace-theme="dark"] body .rs-nav-drawer .rs-drawer-links a:hover,
  html[data-reguspace-theme="dark"] body .rs-nav-drawer .rs-drawer-links a:focus-visible,
  html[data-reguspace-theme="dark"] body .rs-nav-drawer .rs-drawer-links a[aria-current="page"] {
    background:#526878;
    color:#fff;
  }
  html[data-reguspace-theme="dark"] body .rs-nav-drawer .rs-drawer-links a.rs-drawer-reg {
    background:#bbd9e3;
    border:1px solid #87afc1;
    color:#1b4558;
  }

  /* Regulator-menu. 'Ontdek Regulator' blijft zichtbare, eigen accent-CTA. */
  html[data-reguspace-theme="dark"] body #reguR1Menu.regu-r1-panel {
    background:#344452;
    border-right-color:#657b8a;
    color:#edf4f8;
  }
  html[data-reguspace-theme="dark"] body #reguR1Menu .regu-r1-panel-head {
    background:#344452;
    border-bottom-color:#657b8a;
  }
  html[data-reguspace-theme="dark"] body #reguR1Menu .c104-tour-heading {
    background:#bed9e4;
    color:#1b4359;
    border:1px solid #8cbbcb;
    border-radius:10px;
    padding:8px 10px;
  }
  html[data-reguspace-theme="dark"] body #reguR1Menu .regu-r1-close {
    background:#405462;
    border-color:#8097a7;
    color:#edf4f8;
  }
  html[data-reguspace-theme="dark"] body #reguR1Menu .regu-r1-group + .regu-r1-group {
    border-top-color:#657b8a;
  }
  html[data-reguspace-theme="dark"] body #reguR1Menu .regu-r1-group-title,
  html[data-reguspace-theme="dark"] body #reguR1Menu .regu-r1-panel-foot {
    color:#c4d8e4;
  }
  html[data-reguspace-theme="dark"] body #reguR1Menu .regu-r1-link {
    color:#e4eff6;
  }
  html[data-reguspace-theme="dark"] body #reguR1Menu .regu-r1-link:hover,
  html[data-reguspace-theme="dark"] body #reguR1Menu .regu-r1-link.is-current {
    background:#526878;
    border-color:#7796a9;
    color:#fff;
  }
  html[data-reguspace-theme="dark"] body #reguR1Menu .regu-r1-link.is-primary {
    background:#305b56;
    border-color:#598f82;
    color:#edfcf7;
  }
  html[data-reguspace-theme="dark"] body #reguR1Menu .regu-r1-link .regu-r1-mark,
  html[data-reguspace-theme="dark"] body #reguR1Menu .regu-r1-info-toggle {
    color:#c4d8e4;
  }
  html[data-reguspace-theme="dark"] body #reguR1Menu .regu-r1-info-toggle::after {
    border-color:#b1cad9;
  }
  html[data-reguspace-theme="dark"] body #reguR1Menu .rs-theme-entry {
    border-top-color:#657b8a;
  }
  html[data-reguspace-theme="dark"] body :is(#reguR1Menu,.rs-nav-drawer) .rs-theme-control {
    background:#405462;
    border-color:#8097a7;
    color:#edf4f8;
  }
  html[data-reguspace-theme="dark"] body :is(#reguR1Menu,.rs-nav-drawer) .rs-theme-control .rs-theme-value {
    color:#b6e2fc;
  }
  html[data-reguspace-theme="dark"] body :is(#reguR1Menu,.rs-nav-drawer) :is(a,button):focus-visible {
    outline:3px solid #a9d9f5;
    outline-offset:2px;
  }
}

/* ===============================================================
   C113 TEST — laatste twee rustige darkmode-vlakken, screen only.
   Scope: ReguSpace homepage-hero en Activatieprofiel afsluitkader.
   Geen globale kleuren, grafieken, besturing of printwijziging.
   =============================================================== */
@media screen {
  /* Schil-home: bewust LICHT grijsblauw, geen antraciet.
     Tekstkleur/actieknoppen/wegwijzer blijven hun eigen ontwerp houden. */
  html[data-reguspace-theme="dark"] body .rs-home-page > .rs-home-hero {
    background:linear-gradient(136deg,#dbe5ea 0%,#d5e0e7 47%,#e1e4eb 100%);
    border-color:#b0c4d0;
    box-shadow:0 12px 34px rgba(6,18,28,.14);
  }
  /* Activatieprofiel: alleen de onderste 'Klaar met invullen?'-kaart. */
  html[data-reguspace-theme="dark"] body main#activation-main > .finish-panel#finishPanel {
    background:#526879;
    border-color:#829aaa;
    color:#f0f6fa;
    box-shadow:0 7px 18px rgba(7,21,34,.10);
  }
  html[data-reguspace-theme="dark"] body main#activation-main > .finish-panel#finishPanel strong {
    color:#f0f6fa;
  }
  html[data-reguspace-theme="dark"] body main#activation-main > .finish-panel#finishPanel .finish-copy {
    color:#d9e5ed;
  }
  /* De blauwe 'Bekijk uitslag'-CTA behoudt zijn oorspronkelijke kleur. */
}

/* C114 TEST · 2026-10-30 · gerichte darkmode-ronde Quick 1/2/3 + Complete.
   Alleen bij expliciet gekozen darkmode, uitsluitend scherm. Geen verandering
   aan Matrixcellen, betekenisvolle adviezen, actieve keuzes, navigatielogica,
   schilmenu, pagina-inhoud, opslag, print of PDF. */
@media screen {
  /* Quick is bewust lichter dan Complete, maar met één grijsblauwe familie. */
  html[data-reguspace-theme="dark"] body #quickMobileApp .qm-phone {
    background:#bdcfdc;
  }
  html[data-reguspace-theme="dark"] body #quickMobileApp .qm-topbar {
    background:#c6d6e0;
    border-bottom-color:#a1b8c8;
  }
  html[data-reguspace-theme="dark"] body #quickMobileApp .c104-quick-menu {
    background:#c6d6e0;
    color:#24485d;
    border-color:#9db3c1;
  }
  html[data-reguspace-theme="dark"] body #quickMobileApp :is(#qmCheck,#qmResult,#qmRecommendations) {
    background:#d9e4ea;
    border-color:#afc2cf;
  }
  /* Plot: keuzekaarten lichter dan paneel, selectie blijft bestaand donkerblauw. */
  html[data-reguspace-theme="dark"] body #quickMobileApp #qmCheck .qm-choice:not(.active) {
    background:#e8eff4;
    border-color:#b8cbd7;
  }
  html[data-reguspace-theme="dark"] body #quickMobileApp #qmCheck .qm-body-note {
    background:#e8eff4;
    border-color:#bbccd7;
  }
  html[data-reguspace-theme="dark"] body #quickMobileApp #qmCheck .qm-choice .qm-choice-img {
    background:#e8eff4;
  }
  /* Begrijp: neutrale toelichting en richting iets minder wit;
     #qmMatrixGrid en zijn assen/kleuren blijven volledig buiten scope. */
  html[data-reguspace-theme="dark"] body #quickMobileApp #qmResult .qm-cell-detail {
    background:#e8eff4;
    border-color:#b7c9d5;
  }
  html[data-reguspace-theme="dark"] body #quickMobileApp #qmResult .qm-direction {
    background:linear-gradient(180deg,#e8eff4,#deeaf1);
    border-color:#b6ccda;
  }
  /* Reguleer: alleen de neutrale ruimte en de twee actieknoppen.
     Advieskaarten (blauw/groen/roze), Prima-opgeslagen en selectie blijven. */
  html[data-reguspace-theme="dark"] body #quickMobileApp #qmRecommendations .qm-rec-actions > .qm-swap:not(:disabled),
  html[data-reguspace-theme="dark"] body #quickMobileApp #qmRecommendations .qm-rec-actions > .prima-action:not([aria-pressed="true"]):not(:disabled) {
    background:#526879;
    border-color:#7d97aa;
    color:#f3f8fb;
  }
  html[data-reguspace-theme="dark"] body #quickMobileApp #qmRecommendations .qm-rec-actions > :is(.qm-swap,.prima-action):focus-visible {
    outline:3px solid #154f73;
    outline-offset:2px;
  }

  /* Complete: rustige bovenbalk, bestaande vaste navigatie onveranderd. */
  html[data-reguspace-theme="dark"] body > .app > .regu-c44-sticky-frame,
  html[data-reguspace-theme="dark"] body > .app > .regu-c44-sticky-frame > .toolbar,
  html[data-reguspace-theme="dark"] body .reguspace-v287-app > .regu-c44-sticky-frame,
  html[data-reguspace-theme="dark"] body .reguspace-v287-app .regu-c44-sticky-frame > .reguspace-v287-toolbar {
    background:#405462!important;
    border-bottom-color:#718696;
  }
  html[data-reguspace-theme="dark"] body > .app .regu-c44-sticky-frame > .toolbar > .app-brand,
  html[data-reguspace-theme="dark"] body .reguspace-v287-app .regu-c44-sticky-frame > .reguspace-v287-toolbar > .app-brand {
    background:#405462!important;
  }
  html[data-reguspace-theme="dark"] body > .app .regu-c44-sticky-frame > .toolbar > .app-brand strong,
  html[data-reguspace-theme="dark"] body .reguspace-v287-app .regu-c44-sticky-frame > .reguspace-v287-toolbar > .app-brand strong {
    color:#f0f6fa;
  }
  html[data-reguspace-theme="dark"] body > .app .regu-c44-sticky-frame > .toolbar > .app-brand span,
  html[data-reguspace-theme="dark"] body .reguspace-v287-app .regu-c44-sticky-frame > .reguspace-v287-toolbar > .app-brand span {
    color:#d3e1e9;
  }
  /* Oude afdekstrook volgt alleen de nieuwe kleur; geen code-opruiming. */
  html[data-reguspace-theme="dark"] body > .app .regu-c44-sticky-frame > .toolbar > .app-brand::before,
  html[data-reguspace-theme="dark"] body .reguspace-v287-app .regu-c44-sticky-frame > .reguspace-v287-toolbar > .app-brand::before {
    background:#405462;
  }
  html[data-reguspace-theme="dark"] body > .app .regu-c44-sticky-frame > .toolbar > .regu-r1-menu-button,
  html[data-reguspace-theme="dark"] body .reguspace-v287-app .regu-c44-sticky-frame > .reguspace-v287-toolbar > .regu-r1-menu-button {
    background:#26333f!important;
    border-color:#718696!important;
    color:#edf4f8!important;
  }
  /* Alleen desktop-inrichting kan oude afdekschaduw gebruiken. Mobiel C52
     overschrijft die nog steeds, zonder enige wijziging van navigatie. */
  @media (min-width:801px) and (max-width:980px) {
    html[data-reguspace-theme="dark"] body > .app .toolbar .regu-r1-menu-button {
      box-shadow:none!important;
    }
  }
  /* Matrix-omgeving lichter dan antraciet, maar minder verblindend dan C113. */
  html[data-reguspace-theme="dark"] body #modelScreen > .sheet {
    background:#c6d4de;
  }
  html[data-reguspace-theme="dark"] body #modelScreen #profileResiliencePanel {
    background:#bdcdd8;
    border-color:#a2b9c8;
  }
  html[data-reguspace-theme="dark"] body #modelScreen #profileResiliencePanel > .control-grid > .group {
    background:#d7e3ea;
  }
}

/* C115 TEST · 2026-10-30 · darkmode consistentie van korte hoofdschermen.
   Alleen expliciete darkmode + scherm. Geen wijziging aan lichte modus,
   Matrix, navigatie, NU/PREP, betekenisvolle kleurkaarten, print of opslag. */
@media screen {
  /* Een korte pagina mag onder de footer nooit terugvallen naar de lichte
     html-basiskleur. De body blijft zoals in C77/C114. */
  html[data-reguspace-theme="dark"] {
    background:#292f38;
  }

  /* Hergebruik exact het goedgekeurde Persoonlijk-hubpalet voor de drie
     overeenkomstig opgebouwde neutrale overzichtspagina's. */
  html[data-reguspace-theme="dark"] body
  :is(#themesHubScreen,#growthHubScreen,#socialHubScreen) > .manual.personality-hub-page {
    background:#26333f;
    color:var(--regu-dm-text,#edf4f8);
  }
  html[data-reguspace-theme="dark"] body
  :is(#themesHubScreen,#growthHubScreen,#socialHubScreen) .personality-hub-page .manual-top h1 {
    color:var(--regu-dm-text,#edf4f8);
  }
  html[data-reguspace-theme="dark"] body
  :is(#themesHubScreen,#growthHubScreen,#socialHubScreen) .personality-hub-page .manual-top .intro {
    color:var(--regu-dm-muted,#d4e2ec);
  }
  html[data-reguspace-theme="dark"] body
  :is(#themesHubScreen,#growthHubScreen,#socialHubScreen) .personality-hub-page .analysis-choice-card {
    background:var(--regu-dm-depth,#405462);
    border-color:#718696;
    color:var(--regu-dm-text,#edf4f8);
  }
  html[data-reguspace-theme="dark"] body
  :is(#themesHubScreen,#growthHubScreen,#socialHubScreen) .personality-hub-page .analysis-choice-card .analysis-choice-title {
    color:var(--regu-dm-text,#edf4f8);
  }
  html[data-reguspace-theme="dark"] body
  :is(#themesHubScreen,#growthHubScreen,#socialHubScreen) .personality-hub-page .analysis-choice-card .analysis-choice-copy {
    color:var(--regu-dm-muted,#d4e2ec);
  }
  html[data-reguspace-theme="dark"] body
  :is(#themesHubScreen,#growthHubScreen,#socialHubScreen) .personality-hub-page .analysis-choice-card .analysis-choice-action {
    color:var(--regu-dm-link,#b6e2fc);
  }
  html[data-reguspace-theme="dark"] body
  :is(#themesHubScreen,#growthHubScreen,#socialHubScreen) .personality-hub-page .analysis-choice-card[aria-disabled="true"] {
    background:#374755;
    border-color:#647b8b;
  }
  html[data-reguspace-theme="dark"] body #socialHubScreen .hub-development-heading {
    color:#c1d3df;
    border-top-color:#647b8b;
  }
  html[data-reguspace-theme="dark"] body
  :is(#themesHubScreen,#growthHubScreen,#socialHubScreen) .analysis-choice-card:focus-visible {
    outline:3px solid #a9d9f5;
    outline-offset:3px;
  }
  /* Pictogram-badges en 'Later'-badges blijven hun oorspronkelijke accent houden. */

  /* ReguStress: de grote neutrale leesvlakken, niet de modelillustratie. */
  html[data-reguspace-theme="dark"] body #stressScreen > .manual {
    background:#26333f;
    color:#edf4f8;
  }
  html[data-reguspace-theme="dark"] body #stressScreen .manual-top h1 {
    color:#edf4f8;
  }
  html[data-reguspace-theme="dark"] body #stressScreen .manual-top .intro {
    color:#d4e2ec;
  }
  html[data-reguspace-theme="dark"] body #stressScreen :is(.regu-stress-intro,.regu-stress-explain,.regu-stress-soon).section {
    background:#344452;
    border-color:#718696;
    color:#e0eaf1;
  }
  html[data-reguspace-theme="dark"] body #stressScreen :is(.regu-stress-intro,.regu-stress-explain,.regu-stress-soon).section > h2 {
    color:#edf4f8;
  }
  html[data-reguspace-theme="dark"] body #stressScreen :is(.regu-stress-intro,.regu-stress-explain,.regu-stress-soon).section > p {
    color:#dce6ed;
  }
  html[data-reguspace-theme="dark"] body #stressScreen .regu-stress-visual > figcaption {
    color:#c5d7e4;
  }

  /* Thematiek-menu: alle generieke vraag-/zoekvlakken in donkere rustlaag.
     Seizoens-kaarten met eigen betekenisvolle palet worden niet geraakt. */
  html[data-reguspace-theme="dark"] body #themesScreen > .manual {
    background:#26333f;
    color:#edf4f8;
  }
  html[data-reguspace-theme="dark"] body #themesScreen .manual-top h1 {
    color:#edf4f8;
  }
  html[data-reguspace-theme="dark"] body #themesScreen .manual-top .intro {
    color:#d4e2ec;
  }
  html[data-reguspace-theme="dark"] body #themesScreen > .manual > .section {
    background:#344452;
    border-color:#718696;
    color:#e0eaf1;
  }
  html[data-reguspace-theme="dark"] body #themesScreen > .manual > .section > :is(h2,.lead) {
    color:#edf4f8;
  }
  html[data-reguspace-theme="dark"] body #themesScreen .theme-search-wrap label {
    color:#e0eaf1;
  }
  html[data-reguspace-theme="dark"] body #themesScreen .theme-search-wrap input {
    background:#526879;
    color:#f4f8fb;
    border-color:#8da4b5;
    color-scheme:dark;
  }
  html[data-reguspace-theme="dark"] body #themesScreen .theme-search-wrap input::placeholder {
    color:#d3e0e9;
    opacity:1;
  }
  html[data-reguspace-theme="dark"] body #themesScreen .theme-search-status,
  html[data-reguspace-theme="dark"] body #themesScreen .theme-no-results {
    color:#cedce6;
  }
  html[data-reguspace-theme="dark"] body #themesScreen .theme-menu-grid .theme-chip.theme-ready:not(.theme-featured-winter):not(.theme-featured-autumn) {
    background:#405462;
    border-color:#718696;
    color:#edf4f8;
  }
  html[data-reguspace-theme="dark"] body #themesScreen .theme-menu-grid .theme-chip.theme-ready:not(.theme-featured-winter):not(.theme-featured-autumn):is(:hover,:focus-visible) {
    background:#526879;
    border-color:#9ab3c2;
  }
  html[data-reguspace-theme="dark"] body #themesScreen .theme-menu-grid .theme-chip.theme-later {
    background:#374755;
    border-color:#647b8b;
    color:#c5d5e0;
  }
  html[data-reguspace-theme="dark"] body #themesScreen .theme-search-wrap input:focus-visible,
  html[data-reguspace-theme="dark"] body #themesScreen .theme-menu-grid .theme-chip:focus-visible {
    outline:3px solid #a9d9f5;
    outline-offset:2px;
  }

  /* Groei: alleen grote neutrale hoofdlagen, niet gekleurde subkaarten,
     visualisaties, professionele routes, AI-/rapportknoppen of overige input. */
  html[data-reguspace-theme="dark"] body #depthRecoveryScreen > .manual {
    background:#26333f;
    color:#edf4f8;
  }
  html[data-reguspace-theme="dark"] body #depthRecoveryScreen .manual-top h1 {
    color:#edf4f8;
  }
  html[data-reguspace-theme="dark"] body #depthRecoveryScreen .manual-top .intro {
    color:#d4e2ec;
  }
  html[data-reguspace-theme="dark"] body #depthRecoveryScreen > .manual > .depth-routebar,
  html[data-reguspace-theme="dark"] body #depthRecoveryScreen .depth-chapter {
    background:#344452;
    border-color:#718696;
    color:#e0eaf1;
  }
  html[data-reguspace-theme="dark"] body #depthRecoveryScreen .depth-chapter > .section,
  html[data-reguspace-theme="dark"] body #depthRecoveryScreen .growth-step {
    background:#405462;
    border-color:#718696;
    color:#e0eaf1;
  }
  html[data-reguspace-theme="dark"] body #depthRecoveryScreen .depth-chapter > .section > :is(h2,h3,p,.lead),
  html[data-reguspace-theme="dark"] body #depthRecoveryScreen .growth-step > :is(h2,h3,p,.lead) {
    color:#edf4f8;
  }
  html[data-reguspace-theme="dark"] body #depthRecoveryScreen .depth-routebar > span {
    color:#edf4f8;
  }
  html[data-reguspace-theme="dark"] body #depthRecoveryScreen .growth-rest-note {
    background:#405462;
    color:#e0eaf1;
    border-color:#718696;
  }
  /* De normale Groei-uitklappers zijn lichte leesvlakken. Nu hun omgeving
     donker is, moet ook de achtergrond met de al lichte tekst meekleuren. */
  html[data-reguspace-theme="dark"] body #depthRecoveryScreen .depth-chapter details.more-info {
    background:#344452;
    border-color:#718696;
    color:#e0eaf1;
  }
  html[data-reguspace-theme="dark"] body #depthRecoveryScreen .depth-chapter details.more-info > summary {
    color:#b6e2fc;
  }
  html[data-reguspace-theme="dark"] body #depthRecoveryScreen .depth-chapter details.more-info > .more-info-body {
    color:#e0eaf1;
  }
}

/* C116 TEST · 2026-10-30 · gerichte afronding darkmode: Regulatie,
   Regulyse, Thema's en Groei. Alleen scherm + expliciete donkere modus.
   Geen algemene inversie, geen wijzigingen aan adviezen, grafiekdata,
   betekenisvolle kleuren, navigatie, opslag of print. */
@media screen {
  /* Eén herbruikbare neutrale kleurfamilie, alleen binnen C116-schermen. */
  html[data-reguspace-theme="dark"] body :is(#regulationScreen,#energyLogScreen,#analysisScreen,#analysisLogHubScreen,#analysisFavoritesScreen,#analysisGraphsScreen,#analysisReportScreen,#analysisTreatmentScreen) {
    --c116-bg:#26333f;
    --c116-panel:#344452;
    --c116-card:#405462;
    --c116-field:#526879;
    --c116-border:#718696;
    --c116-text:#edf4f8;
    --c116-muted:#d4e2ec;
    --c116-link:#b6e2fc;
  }
  html[data-reguspace-theme="dark"] body :is(#regulationScreen,#energyLogScreen,#analysisScreen,#analysisLogHubScreen,#analysisFavoritesScreen,#analysisGraphsScreen,#analysisReportScreen,#analysisTreatmentScreen) > .manual {
    background:var(--c116-bg);
    color:var(--c116-text);
  }
  html[data-reguspace-theme="dark"] body :is(#regulationScreen,#energyLogScreen,#analysisScreen,#analysisLogHubScreen,#analysisFavoritesScreen,#analysisGraphsScreen,#analysisReportScreen,#analysisTreatmentScreen) .manual-top :is(h1,.intro) {
    color:var(--c116-text);
  }
  html[data-reguspace-theme="dark"] body :is(#regulationScreen,#energyLogScreen,#analysisGraphsScreen,#analysisReportScreen,#analysisTreatmentScreen) .manual > .section {
    background:var(--c116-panel);
    border-color:var(--c116-border);
    color:var(--c116-text);
  }
  html[data-reguspace-theme="dark"] body :is(#regulationScreen,#energyLogScreen,#analysisGraphsScreen,#analysisReportScreen,#analysisTreatmentScreen) .manual > .section > :is(h2,h3,p,.lead) {
    color:var(--c116-text);
  }
  /* Regulatie: uitsluitend omgeving en neutrale dialoog. Niet de blauw/groen/
     roze aanbevelingen, rode noodkaart en beschermings-/veiligheidsvakken. */
  html[data-reguspace-theme="dark"] body #regulationScreen :is(.relation-trigger-box,.relation-impulse-panel,.recommendation-head) {
    background:#405462;
    border-color:#718696;
    color:#edf4f8;
  }
  html[data-reguspace-theme="dark"] body #regulationScreen :is(.relation-trigger-copy,.relation-trigger-note,.relation-impulse-panel) {
    color:#dce8f0;
  }
  html[data-reguspace-theme="dark"] body #regulationScreen .relation-trigger-btn:not(.active) {
    background:#526879!important;
    color:#f0f6fa!important;
    border-color:#91a9b8!important;
  }
  html[data-reguspace-theme="dark"] body #regulationScreen .relation-impulse-btn:not(.active) {
    background:#526879;
    color:#edf4f8;
    border-color:#91a9b8;
  }
  html[data-reguspace-theme="dark"] body #regulationScreen .relation-trigger-box :is(h2,h3,strong),
  html[data-reguspace-theme="dark"] body #regulationScreen .recommendation-head :is(h2,h3) {
    color:#edf4f8;
  }
  /* Regulyse-hubs: dezelfde reeds geaccepteerde donkere navigatiekaarten. */
  html[data-reguspace-theme="dark"] body :is(#analysisScreen,#analysisLogHubScreen,#analysisFavoritesScreen) .analysis-choice-card {
    background:#405462;
    border-color:#718696;
    color:#edf4f8;
  }
  html[data-reguspace-theme="dark"] body :is(#analysisScreen,#analysisLogHubScreen,#analysisFavoritesScreen) .analysis-choice-card :is(.analysis-choice-title,.analysis-choice-copy) {
    color:#e5edf3;
  }
  html[data-reguspace-theme="dark"] body :is(#analysisScreen,#analysisLogHubScreen,#analysisFavoritesScreen) .analysis-choice-card .analysis-choice-action {
    color:#b6e2fc;
  }
  html[data-reguspace-theme="dark"] body :is(#analysisScreen,#analysisLogHubScreen,#analysisFavoritesScreen) details.more-info {
    background:#344452;
    border-color:#718696;
    color:#e0eaf1;
  }
  html[data-reguspace-theme="dark"] body :is(#analysisScreen,#analysisLogHubScreen,#analysisFavoritesScreen) details.more-info :is(summary,.more-info-body) {
    color:#e0eaf1;
  }
  /* Logboek: formulieren en neutrale patroon-/reflectiekaarten. */
  html[data-reguspace-theme="dark"] body #energyLogScreen :is(.energy-pattern,.energy-reflection,.regu-log-context) {
    background:#405462;
    border-color:#718696;
    color:#edf4f8;
  }
  html[data-reguspace-theme="dark"] body #energyLogScreen :is(.energy-reflection label,.energy-pattern h4,.energy-log-form label) {
    color:#edf4f8;
  }
  html[data-reguspace-theme="dark"] body #energyLogScreen .energy-log-table th {
    background:#405462;
    color:#f0f6fa;
    border-color:#718696;
  }
  html[data-reguspace-theme="dark"] body #energyLogScreen .energy-log-table td {
    color:#edf4f8;
    border-color:#647b8b;
  }
  html[data-reguspace-theme="dark"] body #energyLogScreen :is(.energy-log-form input,.energy-log-form select,.energy-reflection textarea,.energy-reflection input) {
    background:#526879;
    color:#f4f8fb;
    border-color:#91a9b8;
    color-scheme:dark;
  }
  /* Regulyse filters, formulieren en rapportkeuzes. */
  html[data-reguspace-theme="dark"] body :is(#analysisGraphsScreen,#analysisReportScreen) :is(.analysis-period-row>label,.analysis-custom-dates label,.analysis-filter-grid label,.analysis-filter-note,.analysis-chart-intro p) {
    color:#e0eaf1;
  }
  html[data-reguspace-theme="dark"] body :is(#analysisGraphsScreen,#analysisReportScreen) :is(.analysis-period-row select,.analysis-custom-dates input,.analysis-filter-grid select,.analysis-report-person-grid input,.analysis-synthesis-field textarea,.analysis-report-closing textarea) {
    background:#526879;
    border-color:#91a9b8;
    color:#f4f8fb;
    color-scheme:dark;
  }
  html[data-reguspace-theme="dark"] body #analysisReportScreen :is(.analysis-report-group,.analysis-report-option,.analysis-report-suboption) {
    background:#405462;
    border-color:#718696;
    color:#edf4f8;
  }
  html[data-reguspace-theme="dark"] body #analysisReportScreen :is(.analysis-report-group h3,.analysis-report-subheading,.analysis-report-suboption small,.analysis-report-option small,.analysis-subchoices,.analysis-synthesis-check,.analysis-closing-check) {
    color:#e0eaf1;
  }
  /* Rapportvoorvertoning is een A4-leesvlak. Bewust licht houden: bestaande
     grafieken/printbeeld/tabellen behouden hun donkere tekst en betekenis. */
  html[data-reguspace-theme="dark"] body #analysisReportScreen .analysis-report-preview {
    background:#f3f6f8;
    border-color:#bacbd6;
    color:#1d2939;
    color-scheme:light;
  }
  /* Grafiekdata, lijnen, assen en legenda blijven hun oorspronkelijke palet.
     Alleen het omliggende oppervlak wordt minder verblindend. */
  html[data-reguspace-theme="dark"] body #analysisGraphsScreen .analysis-chart-card {
    background:#f3f6f8;
    border-color:#b9cbd8;
    color:#24364b;
    color-scheme:light;
  }
  html[data-reguspace-theme="dark"] body #analysisGraphsScreen :is(.analysis-filter-details,.c31-context-card,.c31-profile-group,.c31-log-item) {
    background:#405462;
    border-color:#718696;
    color:#e0eaf1;
  }
  html[data-reguspace-theme="dark"] body #analysisGraphsScreen :is(.c31-context-note,.c31-context-card h3,.c31-eyebrow,.c31-profile-name,.c31-profile-group strong,.c31-profile-row,.c31-activation-row,.c31-activation-date,.c31-log-item strong,.c31-log-item p,.c31-reflection-grid label,.c31-ai-tip) {
    color:#e0eaf1;
  }
  html[data-reguspace-theme="dark"] body #analysisGraphsScreen .c31-reflection-grid textarea {
    background:#526879;
    border-color:#91a9b8;
    color:#f4f8fb;
  }
  html[data-reguspace-theme="dark"] body #analysisGraphsScreen .c31-link-button {
    color:#b6e2fc;
  }
  html[data-reguspace-theme="dark"] body #analysisGraphsScreen .analysis-layer-toggles {
    color:#d4e2ec;
  }
  html[data-reguspace-theme="dark"] body #analysisGraphsScreen .analysis-layer-toggle {
    background:#526879;
    border-color:#91a9b8;
    color:#edf4f8;
  }
  /* Behandeling & voortgang: de zes neutrale uitklapsecties; medische
     waarschuwing en betekenisvolle score-/grafiekkleuren blijven intact. */
  html[data-reguspace-theme="dark"] body #analysisTreatmentScreen :is(.treatment-section,.treatment-model-panel) {
    background:#405462;
    border-color:#718696;
    color:#e0eaf1;
  }
  html[data-reguspace-theme="dark"] body #analysisTreatmentScreen :is(.treatment-section>summary,.treatment-model-panel>summary,.treatment-section label,.treatment-section label small,.treatment-model-panel>summary small,.treatment-microcopy,.treatment-status,.treatment-factor-grid h3,.treatment-data-group h3) {
    color:#e0eaf1;
  }
  html[data-reguspace-theme="dark"] body #analysisTreatmentScreen :is(.treatment-section textarea,.treatment-section input[type="text"],.treatment-section input[type="date"],.treatment-section input[type="number"]) {
    background:#526879;
    border-color:#91a9b8;
    color:#f4f8fb;
    color-scheme:dark;
  }
  html[data-reguspace-theme="dark"] body #analysisTreatmentScreen :is(.treatment-score-grid label,.treatment-record) {
    background:#344452;
    border-color:#718696;
    color:#edf4f8;
  }
  html[data-reguspace-theme="dark"] body #analysisTreatmentScreen .treatment-score-grid label>span {
    color:#edf4f8;
  }
  /* Ingevulde grafieken tonen op hun eigen lichte leesvlak. */
  html[data-reguspace-theme="dark"] body #analysisTreatmentScreen :is(.treatment-chart-card,.treatment-model-bars) {
    background:#f3f6f8;
    border-color:#b9cbd8;
    color:#24364b;
    color-scheme:light;
  }
  /* Thema's: wit, neutraal invulgebied aanpassen. Actieknoppen niet. */
  html[data-reguspace-theme="dark"] body #themesScreen .regu-reflection-field,
  html[data-reguspace-theme="dark"] body #depthRecoveryScreen .regu-reflection-field {
    background:#405462;
    border-color:#718696;
    color:#edf4f8;
  }
  html[data-reguspace-theme="dark"] body :is(#themesScreen,#depthRecoveryScreen) .regu-reflection-field label {
    color:#edf4f8;
  }
  html[data-reguspace-theme="dark"] body :is(#themesScreen,#depthRecoveryScreen) .regu-reflection-field textarea {
    background:#526879;
    border-color:#91a9b8;
    color:#f4f8fb;
  }
  /* Groei: neutrale reflecties, niet de vier betekenisvolle actiepaletten. */
  html[data-reguspace-theme="dark"] body #depthRecoveryScreen :is(.growth-step textarea,.growth-goal-week textarea) {
    background:#526879;
    border-color:#91a9b8;
    color:#f4f8fb;
  }
  html[data-reguspace-theme="dark"] body #depthRecoveryScreen :is(.growth-input-label,.growth-goal-week label,.growth-step label) {
    color:#e9f2f7;
  }
  html[data-reguspace-theme="dark"] body #depthRecoveryScreen .depth-recovery-grid>div {
    background:#e6edf2;
    border-color:#b7cad7;
    color:#26384a;
  }
  html[data-reguspace-theme="dark"] body #depthRecoveryScreen .depth-recovery-grid>div :is(h3,h4,strong,p) {
    color:#26384a;
  }
  html[data-reguspace-theme="dark"] body #depthRecoveryScreen .growth-action-card input {
    background:#f3f6f8;
    border-color:#b5c9d6;
    color:#223c4e;
  }
  /* Heel beperkte verzachting van de betekenisvolle blauwe/roze kaders.
     Hun eigen kleur, titels, bullets en grens blijven volledig herkenbaar. */
  html[data-reguspace-theme="dark"] body #depthRecoveryScreen .twocol .subcard.kern {
    background:linear-gradient(180deg,#eaf2f8,#e3eef6);
  }
  html[data-reguspace-theme="dark"] body #depthRecoveryScreen .twocol .subcard.oplaadzone {
    background:linear-gradient(180deg,#f8eef5,#f2e7ef);
  }
  /* Vier betekenisvolle actierichtingen: iets lagere helderheid,
     geen inversie en geen verandering aan titels/pictogrammen. */
  html[data-reguspace-theme="dark"] body #depthRecoveryScreen .growth-action-card.growth-more {background:#e9f2e6}
  html[data-reguspace-theme="dark"] body #depthRecoveryScreen .growth-action-card.growth-less {background:#f5eedf}
  html[data-reguspace-theme="dark"] body #depthRecoveryScreen .growth-action-card.growth-stop {background:#f5e8e8}
  html[data-reguspace-theme="dark"] body #depthRecoveryScreen .growth-action-card.growth-start {background:#e7f0f5}
  /* Erkenbare 'Deskundigheid' en 'Klik & veiligheid' blijven blauw/roze;
     geen algemene wijziging aan .subcard of veiligheidskleuren. */
  html[data-reguspace-theme="dark"] body :is(#themesScreen,#depthRecoveryScreen,#energyLogScreen,#analysisGraphsScreen,#analysisReportScreen,#analysisTreatmentScreen) :is(textarea,input,select):focus-visible {
    outline:3px solid #a9d9f5;
    outline-offset:2px;
  }
}

/* ReguSpace C117 TEST — resterende neutrale onderdelen en contrastreparaties.
   Alleen scherm en expliciet darkmode; geen algemene inversie, geen printstijlen. */
@media screen {
  /* Regulyse: wit vervolgkaartje in het Regu-Logboek (screenshot 30-10). */
  html[data-reguspace-theme="dark"] body #energyLogScreen .section > .subcard.full-width-card {
    background:#405462; border-color:#718696; color:#edf4f8;
  }
  html[data-reguspace-theme="dark"] body #energyLogScreen .section > .subcard.full-width-card > :is(h2,h3,p) {
    color:#edf4f8;
  }
  /* Regulyse: favorieten zijn kleurgecodeerd. Alleen de buitenkaart wordt donker,
     terwijl koppen/bijschriften IN de lichte categoriekaart donker blijven. */
  html[data-reguspace-theme="dark"] body #analysisFavoritesScreen > .manual > .section {
    background:#344452; border-color:#718696; color:#edf4f8;
  }
  html[data-reguspace-theme="dark"] body #analysisFavoritesScreen .analysis-favorite-column :is(h2,h3,.favorite-caption,.analysis-favorite-empty,.analysis-favorite-list,.analysis-favorite-list strong,.analysis-favorite-open) {
    color:#24364b;
  }
  html[data-reguspace-theme="dark"] body #analysisFavoritesScreen .analysis-favorite-column .analysis-favorite-empty,
  html[data-reguspace-theme="dark"] body #analysisFavoritesScreen .analysis-favorite-column .favorite-caption {
    color:#52677b;
  }
  html[data-reguspace-theme="dark"] body #analysisFavoritesScreen .analysis-favorite-column.additional {
    background:linear-gradient(180deg,#fffdf3,#fff4d7);
  }
  html[data-reguspace-theme="dark"] body #analysisFavoritesScreen .analysis-favorites-status {color:#d7e4ed;}
  /* Logboek / grafieken / behandeltraject: nog lichte neutrale leespanelen. */
  html[data-reguspace-theme="dark"] body #energyLogScreen .section > .subcard:not(.blue):not(.green):not(.red):not(.yellow),
  html[data-reguspace-theme="dark"] body #analysisGraphsScreen .analysis-chart-intro,
  html[data-reguspace-theme="dark"] body #analysisGraphsScreen .analysis-filter-section {
    background:#405462; border-color:#718696; color:#edf4f8;
  }
  html[data-reguspace-theme="dark"] body #analysisGraphsScreen .analysis-chart-intro > p,
  html[data-reguspace-theme="dark"] body #analysisGraphsScreen .analysis-empty-state {
    color:#e0eaf1;
  }
  /* Kompas: neutrale uitleg- en persoonlijke invoerkaarten. Visual ongemoeid. */
  html[data-reguspace-theme="dark"] body #compassScreen > .manual,
  html[data-reguspace-theme="dark"] body #drivesScreen > .manual,
  html[data-reguspace-theme="dark"] body #attachmentScreen > .manual,
  html[data-reguspace-theme="dark"] body #humanVariabilityScreen > .manual,
  html[data-reguspace-theme="dark"] body #manualScreen > .manual {
    background:#26333f; color:#edf4f8;
  }
  html[data-reguspace-theme="dark"] body :is(#compassScreen,#drivesScreen,#attachmentScreen,#humanVariabilityScreen,#manualScreen) .manual-top :is(h1,.intro) {
    color:#edf4f8;
  }
  html[data-reguspace-theme="dark"] body #compassScreen > .manual > .section,
  html[data-reguspace-theme="dark"] body #compassScreen :is(.compass-layer,.compass-context-card,.compass-choice-card,.compass-route),
  html[data-reguspace-theme="dark"] body #drivesScreen > .manual > .section,
  html[data-reguspace-theme="dark"] body #drivesScreen :is(.mini-card,.reflection-card,.check-shell),
  html[data-reguspace-theme="dark"] body #attachmentScreen :is(.attach-hero,.attach-section,.attach-questionnaire),
  html[data-reguspace-theme="dark"] body #humanVariabilityScreen .human-variability-intro,
  html[data-reguspace-theme="dark"] body #manualScreen > .manual > .section,
  html[data-reguspace-theme="dark"] body #manualScreen .section > .subcard:not(.kern):not(.oplaadzone),
  html[data-reguspace-theme="dark"] body #manualScreen :is(details.more-info,details.profile-disclosure) {
    background:#405462; border-color:#718696; color:#edf4f8;
  }
  html[data-reguspace-theme="dark"] body #compassScreen .compass-layer :is(h3,.layer-help),
  html[data-reguspace-theme="dark"] body #compassScreen :is(.compass-context-card,.compass-choice-card) > :is(h3,.lead),
  html[data-reguspace-theme="dark"] body #drivesScreen :is(.mini-card,.reflection-card) :is(h3,label,.mini-body),
  html[data-reguspace-theme="dark"] body #attachmentScreen .attach-hero > :is(h2,p),
  html[data-reguspace-theme="dark"] body #humanVariabilityScreen .human-variability-intro > p,
  html[data-reguspace-theme="dark"] body #manualScreen .section > .subcard:not(.kern):not(.oplaadzone) > :is(h3,p),
  html[data-reguspace-theme="dark"] body #manualScreen .manual > .section > :is(h2,p,.lead),
  html[data-reguspace-theme="dark"] body #manualScreen details.more-info > :is(summary,.more-info-body),
  html[data-reguspace-theme="dark"] body #manualScreen details.profile-disclosure :is(summary,.profile-body,.profile-teaser,.profile-summary-title) {
    color:#e5eff5;
  }
  html[data-reguspace-theme="dark"] body #compassScreen :is(.compass-entry,.compass-now),
  html[data-reguspace-theme="dark"] body #drivesScreen .reflection-card textarea,
  html[data-reguspace-theme="dark"] body #attachmentScreen .regu-reflection-field textarea {
    background:#526879; border-color:#91a9b8; color:#f4f8fb; color-scheme:dark;
  }
  html[data-reguspace-theme="dark"] body #attachmentScreen :is(details.more-info,details.attach-questionnaire),
  html[data-reguspace-theme="dark"] body #attachmentScreen .regu-reflection-field {
    background:#405462; border-color:#718696; color:#e9f2f7;
  }
  html[data-reguspace-theme="dark"] body #attachmentScreen details.more-info > :is(summary,.more-info-body),
  html[data-reguspace-theme="dark"] body #attachmentScreen .regu-reflection-field > label {
    color:#e9f2f7;
  }
  html[data-reguspace-theme="dark"] body #manualScreen a.manual-article-link {color:#b6e2fc;}
  /* Contrast: grijze uitlegbadges en andere betekenisvolle kleuren blijven. */
  html[data-reguspace-theme="dark"] body :is(#compassScreen,#drivesScreen,#attachmentScreen,#manualScreen) textarea:focus-visible {
    outline:3px solid #a9d9f5; outline-offset:2px;
  }
}

/* C118 TEST | contrastrestanten en zachtere neutrale informatiekaarten.
   Darkmode uitsluitend op beeldscherm. PREP Shadow DOM en print bewust niet geraakt.
   Geen algemene tagselectoren voor tekst en knoppen: behoud betekenisvolle kleurvlakken. */
@media screen {
  /* Kompas: C117 kleurde secties donker maar liet oude donkere introductietekst staan. */
  html[data-reguspace-theme="dark"] body #compassScreen > .manual > .section > :is(p,.intro,.lead),
  html[data-reguspace-theme="dark"] body #compassScreen .compass-layer > :is(p,.layer-help,.intro),
  html[data-reguspace-theme="dark"] body #compassScreen :is(.compass-context-card,.compass-choice-card) > :is(p,small,.help,.lead),
  html[data-reguspace-theme="dark"] body #compassScreen .compass-situation-section > p {
    color:#e4edf4;
  }
  /* Drijfveren: echte paragraaf-/microcopyselectors in de donker gemaakte secties. */
  html[data-reguspace-theme="dark"] body #drivesScreen .drives-page > .section > :is(p,.lead,.muted,.small,.intro,.eyebrow,.kicker),
  html[data-reguspace-theme="dark"] body #drivesScreen .drives-page > .section > .section-head > :is(p,.lead,.muted),
  html[data-reguspace-theme="dark"] body #drivesScreen .mini-card :is(.mini-body,p,small),
  html[data-reguspace-theme="dark"] body #drivesScreen .drives-page .section > .muted {
    color:#e3edf4;
  }
  html[data-reguspace-theme="dark"] body #drivesScreen .drives-page .section > :is(h2,h3),
  html[data-reguspace-theme="dark"] body #drivesScreen .drives-page .mini-card > :is(h3,h4) {
    color:#f3f7fb;
  }
  html[data-reguspace-theme="dark"] body #drivesScreen .drives-page details.more,
  html[data-reguspace-theme="dark"] body #drivesScreen .drives-page details.more > summary {
    background:#405462; border-color:#718696; color:#eef5fa;
  }
  /* Hechting: geen witblinde vragenkaarten, maar grafiek/radar apart behouden. */
  html[data-reguspace-theme="dark"] body #attachmentScreen :is(.attach-q,.attach-explain-block,.attach-scale-guide) {
    background:#dce6ed; border-color:#adbfcc; color:#21364a;
  }
  html[data-reguspace-theme="dark"] body #attachmentScreen :is(.attach-q,.attach-explain-block,.attach-scale-guide) :is(p,strong,span,small,label,h3) {
    color:#21364a;
  }
  html[data-reguspace-theme="dark"] body #attachmentScreen :is(.attach-hero,.attach-section) > :is(p,.lead,.intro),
  html[data-reguspace-theme="dark"] body #attachmentScreen .attach-questionnaire > :is(p,.help,.intro),
  html[data-reguspace-theme="dark"] body #attachmentScreen .attach-more > summary {
    color:#e5eff5;
  }
  /* Menselijke variëteit: eerste actieve overzichtskaart niet wit met witte kop. */
  html[data-reguspace-theme="dark"] body #humanVariabilityScreen .human-variability-topic:not(.is-disabled) {
    background:#405462; border-color:#718696; color:#edf4f8;
  }
  html[data-reguspace-theme="dark"] body #humanVariabilityScreen .human-variability-topic:not(.is-disabled) :is(h2,h3,.analysis-choice-title,.analysis-choice-copy,p) {
    color:#edf4f8;
  }
  /* Thematiek: de tientallen neutrale tussenkaartjes iets minder licht.
     Teksten blijven bewust donker, de inhoudelijke/accentkaders ongemoeid. */
  html[data-reguspace-theme="dark"] body .theme-detail-screen .theme-process-card {
    background:#dae5ec; border-color:#b2c5d2; color:#23384c;
  }
  html[data-reguspace-theme="dark"] body .theme-detail-screen .theme-process-card :is(strong,b,p,small,span) {
    color:#23384c;
  }
  /* Werk- en uitlegkaartjes in Regulyse: geen absolute witte omslag. */
  html[data-reguspace-theme="dark"] body #energyLogScreen .section > .subcard.full-width-card > :is(h2,h3,p,small),
  html[data-reguspace-theme="dark"] body #analysisFavoritesScreen > .manual > .section > :is(h2,h3,p) {
    color:#edf4f8;
  }
}

/* C119 TEST — gerichte darkmode-eindcorrecties in de hoofdapp.
   Alleen scherm; geen print, PREP, Matrix, selectie, scripts of betekenisvolle veiligheidskleuren. */
@media screen {
  /* Drijfveren: de Maslow-illustratie zelf blijft onaangetast.
     De begeleidende tekst had nog vaste donkere waarden op het donkere paneel. */
  html[data-reguspace-theme="dark"] body #drivesScreen .maslow-copy :is(h2,h3,p,.lead,small) {
    color:#edf4f8;
  }
  html[data-reguspace-theme="dark"] body #drivesScreen .riasec-grid .type-card {
    background:#dce7ee;
    border-color:#aebfcb;
  }
  html[data-reguspace-theme="dark"] body #drivesScreen .riasec-grid .type-card :is(.type-title,.type-body,strong,p,small) {
    color:#253c51;
  }
  html[data-reguspace-theme="dark"] body #drivesScreen .section > :is(.lead,p,.kicker),
  html[data-reguspace-theme="dark"] body #drivesScreen .check-shell > :is(h2,h3,p,.lead,.kicker) {
    color:#edf4f8;
  }
  /* Hechting: stapels neutrale vraag-/stijl-/resultaatkaarten zijn zachter;
     kleurgecodeerde hechtingsmatrix, geselecteerde antwoordstatus en grafiek blijven behouden. */
  html[data-reguspace-theme="dark"] body #attachmentScreen :is(.attach-q,.attach-explain-block,.attach-scale-guide,.attach-style-card,.attach-result-card,.attach-blend-item) {
    background:#d9e5ec;
    border-color:#afc1ce;
    color:#263d50;
  }
  html[data-reguspace-theme="dark"] body #attachmentScreen :is(.attach-q,.attach-explain-block,.attach-scale-guide,.attach-style-card,.attach-result-card,.attach-blend-item) :is(h3,h4,p,.qtext,.row,.blend-label,.blend-name,.blend-note,.support-line,strong,small,label) {
    color:#263d50;
  }
  html[data-reguspace-theme="dark"] body #attachmentScreen .attach-result-card :is(.tag,.art-head) {
    color:#45677b;
  }
  html[data-reguspace-theme="dark"] body #attachmentScreen .attachment-relation-table {
    background:#e1eaf0;
    border-color:#afc1ce;
    color:#263d50;
  }
  html[data-reguspace-theme="dark"] body #attachmentScreen .attachment-relation-table :is(th,td) {
    background:#e1eaf0;
    border-color:#bdced8;
    color:#263d50;
  }
  html[data-reguspace-theme="dark"] body #attachmentScreen .attach-section > :is(h2,h3,p,.lead,.intro),
  html[data-reguspace-theme="dark"] body #attachmentScreen :is(.attach-kern,.attach-rule) > :is(h3,p,small),
  html[data-reguspace-theme="dark"] body #attachmentScreen .attach-questionnaire > :is(h2,h3,p,.lead) {
    color:#edf4f8;
  }
  /* Thematiek: neutrale tussenkaartjes slechts een fractie minder helder.
     Betekenisvolle en veiligheidskaarten vallen buiten deze selector. */
  html[data-reguspace-theme="dark"] body .theme-detail-screen .theme-process-card {
    background:#d5e1e9;
    border-color:#aabfcd;
  }
}

/* C120 TEST - closed-scope contrast and calm surfaces. No print, PREP, scoring or semantic colors. */
@media screen {
  /* Desktop Quickstart: selected plot card retains clear selection without bright white halo. */
  @media (min-width:801px) {
    html[data-reguspace-theme="dark"] body #desktopQuickstartScreen .state-choice.active {
      border-color:#426e63 !important;
      box-shadow:0 0 0 2px #628d7e,0 6px 16px rgba(11,25,31,.24) !important;
    }
  }
  /* Mobile Quickstep heading on already-dark surface. */
  html[data-reguspace-theme="dark"] body #qmRecommendations > h2,
  html[data-reguspace-theme="dark"] body #regulationScreen .recommendation-head .desktop-rec-heading {
    color:#f0f6fa !important;
  }
  /* Regulyse: graph canvas stays pale to preserve plotted data; only the surrounding blank field softened. */
  html[data-reguspace-theme="dark"] body #analysisChartsScreen .analysis-chart-card {
    background:#e6edf2 !important; border-color:#b4c6d2 !important; color:#243b51 !important;
  }
  html[data-reguspace-theme="dark"] body #analysisChartsScreen .analysis-chart-card :is(h2,h3,.analysis-chart-note,.analysis-energy-scale) {color:#273e53 !important;}
  html[data-reguspace-theme="dark"] body #analysisChartsScreen .analysis-layer-toggle {background:#4a6273;color:#f2f7fb;border-color:#8095a3;}
  /* Treatment time series, only the screen frame; avoid graph path/stroke changes. */
  html[data-reguspace-theme="dark"] body #analysisTreatmentScreen .treatment-history-section {
    background:#405462 !important;border-color:#748d9e !important;color:#edf4f8 !important;
  }
  html[data-reguspace-theme="dark"] body #analysisTreatmentScreen .treatment-history-section > :is(h2,h3,p,small) {color:#edf4f8 !important;}
  html[data-reguspace-theme="dark"] body #analysisTreatmentScreen .treatment-chart-card {
    background:#e7eef3 !important; border-color:#b9c8d3 !important;
  }
  html[data-reguspace-theme="dark"] body #analysisTreatmentScreen .treatment-model-panel > summary {
    background:#405462 !important; color:#edf4f8 !important; border-color:#7892a3 !important;
  }
  html[data-reguspace-theme="dark"] body #analysisTreatmentScreen .treatment-section > summary {color:#edf4f8 !important;}
  /* Report builder: preserve entire white report preview, only surrounding builder sections. */
  html[data-reguspace-theme="dark"] body #analysisReportScreen .manual > .section,
  html[data-reguspace-theme="dark"] body #analysisReportScreen .analysis-report-page > .section {
    background:#405462 !important;border-color:#728b9a !important;color:#f0f6fa !important;
  }
  html[data-reguspace-theme="dark"] body #analysisReportScreen .manual > .section > :is(h2,h3,p,label),
  html[data-reguspace-theme="dark"] body #analysisReportScreen .analysis-report-page > .section > :is(h2,h3,p,label) {color:#f0f6fa !important;}
  html[data-reguspace-theme="dark"] body #analysisReportScreen .analysis-report-option {
    background:#4b6272 !important;color:#f0f6fa !important;border-color:#7891a1 !important;
  }
  html[data-reguspace-theme="dark"] body #analysisReportScreen .analysis-report-option :is(span,small,label) {color:#f0f6fa !important;}
  /* Hechting: ECR-RS caption legible, preserve matrix meaning colors and structure. */
  html[data-reguspace-theme="dark"] body #attachmentScreen .attach-q-msg,
  html[data-reguspace-theme="dark"] body #attachmentScreen .attach-q-msg a {color:#dceaf4 !important;}
  html[data-reguspace-theme="dark"] body #attachmentScreen .attach-matrix-shell {background:#e6edf2 !important;}
  /* Groei: field surroundings and sources disclosure, not content or persistence. */
  html[data-reguspace-theme="dark"] body #depthRecoveryScreen .growth-goal-week {background:#425a68 !important;border-color:#7894a0 !important;}
  html[data-reguspace-theme="dark"] body #depthRecoveryScreen .growth-goal-week :is(h4,label,p,small) {color:#eff6fa !important;}
  html[data-reguspace-theme="dark"] body #depthRecoveryScreen .sources-disclosure > summary {background:#405462 !important;color:#f0f6fa !important;border-color:#7891a1 !important;}
  /* Werkwijzer: dark panels must never have pale on pale nor navy on charcoal. */
  html[data-reguspace-theme="dark"] body #manualScreen :is(.section,.manual-panel,.usage-guide) > :is(h2,h3,h4,p,small,label),
  html[data-reguspace-theme="dark"] body #manualScreen .section > :is(.intro,.lead) {color:#f0f6fa !important;}
  html[data-reguspace-theme="dark"] body #manualScreen :is(.manual-card,.manual-info-card,.manual-tip-card) {
    background:#dce7ee !important;color:#243e51 !important;border-color:#adc4d1 !important;
  }
  html[data-reguspace-theme="dark"] body #manualScreen :is(.manual-card,.manual-info-card,.manual-tip-card) :is(h3,h4,p,small,strong) {color:#243e51 !important;}
}

/* C120: Werkwijzer cards containing specific explanatory text; exclude semantic diagrams. */
@media screen {
 html[data-reguspace-theme="dark"] body #manualScreen .subcard:not(.kern) {
   background:#405462 !important;border-color:#718b9b !important;color:#edf4f8 !important;
 }
 html[data-reguspace-theme="dark"] body #manualScreen .subcard:not(.kern) :is(h2,h3,h4,p,small,strong,label,.lead,.intro) {color:#edf4f8 !important;}
 html[data-reguspace-theme="dark"] body #manualScreen .mini {
   background:#dce7ee !important;border-color:#b0c3d0 !important;color:#253c51 !important;
 }
 html[data-reguspace-theme="dark"] body #manualScreen .mini :is(h3,h4,p,small,strong,span) {color:#253c51 !important;}
}


/* C121R2: PUBLIC-SHELL dark mode audit fixes based on computed contrast.
   Neutral reading panels only, no semantic figures or regulator report/print. */
@media screen {
  html[data-reguspace-theme="dark"] body:has(.rs-site-head,.site-header) main :is(
    .callout,.webtool-callout,.lead-card,.related-links a,
    .manifest-emphasis,.manifest-closing,
    .guide-card,.complete-update,.rs-tour-overview,
    .science-box,.science-detail,.c12-experience,.c12-experience-body,
    .c12-auto-article .closing,
    .related,.note,.card,.card.tool-card,
    article table,article th,article td,
    .article-overview .featured-card
  ) {
    background:#344452!important;
    background-image:none!important;
    border-color:#718696!important;
    color:#edf4f8!important;
  }
  html[data-reguspace-theme="dark"] body:has(.rs-site-head,.site-header) main :is(
    .callout,.webtool-callout,.lead-card,.related-links a,
    .manifest-emphasis,.manifest-closing,.guide-card,.complete-update,
    .rs-tour-overview,.science-box,.science-detail,.c12-experience,
    .c12-experience-body,.c12-auto-article .closing,
    .note,.card,article table,article th,article td,
    .article-overview .featured-card
  ) :is(h1,h2,h3,h4,h5,p,li,small,strong,em,span,a,label,summary,th,td) {
    color:#edf4f8!important;
  }
  html[data-reguspace-theme="dark"] body:has(.rs-site-head,.site-header) main :is(
    .related > h2,.complete-update > h2,.references > h2,
    .rs-tour-overview h2
  ) {color:#edf4f8!important;}
  html[data-reguspace-theme="dark"] body:has(.rs-site-head,.site-header) main a.button.secondary,
  html[data-reguspace-theme="dark"] body:has(.rs-site-head,.site-header) main .cta-row .secondary {
    background:#405462!important;background-image:none!important;
    color:#edf4f8!important;border-color:#8197a6!important;
  }
  html[data-reguspace-theme="dark"] body:has(.rs-site-head,.site-header) main .complete-grid .complete-card-link :is(h2,p,.complete-value),
  html[data-reguspace-theme="dark"] body:has(.rs-site-head,.site-header) main .complete-update > a,
  html[data-reguspace-theme="dark"] body:has(.rs-site-head,.site-header) main .rs-tour-overview-copy :is(h2,p) {
    color:#edf4f8!important;
  }
  html[data-reguspace-theme="dark"] body:has(.rs-site-head,.site-header) main :is(.article-overview .card h2 a,.card h2 a) {color:#edf4f8!important;}
  html[data-reguspace-theme="dark"] body:has(.rs-site-head,.site-header) main .c12-auto-article :is(.lead strong,.science-title,.source-note strong,.science-detail h4,.references h2,.closing p,.closing strong) {
    color:#edf4f8!important;
  }
  html[data-reguspace-theme="dark"] body:has(.rs-site-head,.site-header) main .c12-auto-article :is(.science-box,.closing,.science-detail) :is(p,li,h2,h3,h4,small,strong) {color:#edf4f8!important;}
  html[data-reguspace-theme="dark"] body:has(.rs-site-head,.site-header) main .c12-experience :is(.c12-experience-title,.c12-experience-body p,.c12-experience-body strong) {color:#edf4f8!important;}
}


/* C121R2 automated verification pass B — public articles, original neutral surfaces. */
@media screen {
 html[data-reguspace-theme="dark"] body:has(.rs-site-head,.site-header) main .card .card-kicker,
 html[data-reguspace-theme="dark"] body:has(.rs-site-head,.site-header) main .rs-article-tile .card-kicker {
   background:#405462!important;background-image:none!important;color:#edf4f8!important;
   border-color:#748d9c!important;
 }
 html[data-reguspace-theme="dark"] body:has(.rs-site-head,.site-header) main article.c12-auto-article :is(.lead,.references li,.references li em,.references li a,.references p,figcaption,.science-detail .people-meaning,.science-detail .people-meaning strong,.science-detail .people-meaning em,.science-related a) {
   color:#edf4f8!important;
 }
 html[data-reguspace-theme="dark"] body:has(.rs-site-head,.site-header) main article :is(.references,.rs-updates-invite,.c12-experience-body,.c12-auto-article .science-detail .people-meaning) {
   background:#344452!important;background-image:none!important;border-color:#718696!important;color:#edf4f8!important;
 }
 html[data-reguspace-theme="dark"] body:has(.rs-site-head,.site-header) main article :is(.science-detail .people-meaning,.references,.rs-updates-invite,.c12-experience-body) :is(p,h2,h3,h4,em,strong,li,a,small) {color:#edf4f8!important;}
 html[data-reguspace-theme="dark"] body:has(.rs-site-head,.site-header) main :is(.rs-updates-invite a,.rs-updates-invite p,.related > h2,.c84-william-link,.c12-auto-article .hero-visual figcaption) {color:#edf4f8!important;}
 html[data-reguspace-theme="dark"] body:has(.rs-site-head,.site-header) main article details :is(p strong,p a,summary,.summary-title) {color:#edf4f8!important;}
 html[data-reguspace-theme="dark"] body:has(.rs-site-head,.site-header) main article .c12-experience :is(summary,.c12-experience-title) {color:#edf4f8!important;}
}


/* C121R2 pass C — exact public article/hero cases observed by contrast audit. */
@media screen {
 html[data-reguspace-theme="dark"] body:has(.rs-site-head,.site-header) main .rs-home-hero .rs-home-intro :is(h1,p,.rs-home-overline) {color:#edf4f8!important;}
 html[data-reguspace-theme="dark"] body:has(.rs-site-head,.site-header) main article .bassie-questions :is(h3,p,strong) {color:#edf4f8!important;}
 html[data-reguspace-theme="dark"] body:has(.rs-site-head,.site-header) main article .c12-further :is(p,a),
 html[data-reguspace-theme="dark"] body:has(.rs-site-head,.site-header) main article .c12-quickstart-note,
 html[data-reguspace-theme="dark"] body:has(.rs-site-head,.site-header) main article .c12-auto-article .science-related :is(strong,a) {color:#edf4f8!important;}
 html[data-reguspace-theme="dark"] body:has(.rs-site-head,.site-header) main article .article-visual-summary :is(h2,h3,p,.visual-kicker,.visual-caption),
 html[data-reguspace-theme="dark"] body:has(.rs-site-head,.site-header) main article .article-intermezzo :is(h2,h3,.intermezzo-kicker,.intermezzo-intro) {
    color:#edf4f8!important;
 }
 html[data-reguspace-theme="dark"] body:has(.rs-site-head,.site-header) main article .article-intermezzo .intermezzo-body :is(strong,p,em),
 html[data-reguspace-theme="dark"] body:has(.rs-site-head,.site-header) main article p.article-note :is(strong,em),
 html[data-reguspace-theme="dark"] body:has(.rs-site-head,.site-header) main article p.article-note {
    color:#24394b!important;
 }
 html[data-reguspace-theme="dark"] body:has(.rs-site-head,.site-header) main :is(.article-intermezzo .intermezzo-card,.article-note) {background:#e2ebf1!important;background-image:none!important;border-color:#b4c6d2!important;}
 html[data-reguspace-theme="dark"] body:has(.rs-site-head,.site-header) main .c84-william-link {color:#a9e3fc!important;}
 html[data-reguspace-theme="dark"] body:has(.rs-site-head,.site-header) main > p {color:#edf4f8!important;}
 html[data-reguspace-theme="dark"] body:has(.rs-site-head,.site-header) main article .hero-visual figcaption {color:#edf4f8!important;}
}


/* C121R2 pass D: pale caption panels keep dark text; surrounding dark notes use light text. */
@media screen {
 html[data-reguspace-theme="dark"] body:has(.rs-site-head,.site-header) main article .hero-visual figcaption,
 html[data-reguspace-theme="dark"] body:has(.rs-site-head,.site-header) main article .science-related :is(p,strong,a),
 html[data-reguspace-theme="dark"] body:has(.rs-site-head,.site-header) main article p.science-related {
   background:#344452!important;background-image:none!important;color:#edf4f8!important;
 }
 html[data-reguspace-theme="dark"] body:has(.rs-site-head,.site-header) main .complete-note strong,
 html[data-reguspace-theme="dark"] body:has(.rs-site-head,.site-header) main article figure.meal-figure figcaption,
 html[data-reguspace-theme="dark"] body:has(.rs-site-head,.site-header) main .hub-development-note {color:#edf4f8!important;}
 html[data-reguspace-theme="dark"] body:has(.rs-site-head,.site-header) main article .cta-row a.button.secondary {color:#edf4f8!important;background:#405462!important;background-image:none!important;}
}


@media screen {
 html[data-reguspace-theme="dark"] body:has(.rs-site-head,.site-header) main article .callout .cta-row a.button.secondary {
   background:#405462!important;color:#edf4f8!important;background-image:none!important;
 }
 html[data-reguspace-theme="dark"] body:has(.rs-site-head,.site-header) main p.c84-william-cta a.c84-william-link {
   color:#234357!important;background:#eaf4f8!important;
 }
}

@media screen { html[data-reguspace-theme="dark"] body.profile-page main#main-content article .callout .cta-row a.button.secondary {background:#eaf4f8!important;background-image:none!important;color:#21394e!important;} }
