/* C117: standalone visual layer. Explicitly dark only; no print overrides.
   Preserve graphs, pictograms, color-coded results, product functions and menu geometry. */
@media screen {
 html[data-reguspace-theme="dark"][data-rs-standalone] body,
 html[data-reguspace-theme="dark"][data-rs-standalone] .reguspace-v287-app {background:#26333f;color:#edf4f8;}
 /* Shared Regulator top bar colors, not geometry or menu mechanics. */
 html[data-reguspace-theme="dark"][data-rs-standalone] .reguspace-v287-toolbar {background:#405462;color:#edf4f8;border-color:#718696;}
 html[data-reguspace-theme="dark"][data-rs-standalone] .app-brand,
 html[data-reguspace-theme="dark"][data-rs-standalone] .app-brand :is(strong,span) {color:#edf4f8;}
 /* Kwaliteiten: only neutral page/work/question panels. Keep graph and meaning colors. */
 html[data-reguspace-theme="dark"][data-rs-standalone="qualities"] .qualities-module :is(.q-page-shell,.q-workpage,.q-hero,.q-how,.q-card,.q-action-card) {
   background:#344452;border-color:#718696;color:#edf4f8;
 }
 html[data-reguspace-theme="dark"][data-rs-standalone="qualities"] .qualities-module :is(.q-title,.q-lead,.q-copy,.q-h2,.q-section-head,.q-choice-question,.q-action-card label) {color:#edf4f8;}
 html[data-reguspace-theme="dark"][data-rs-standalone="qualities"] .qualities-module :is(textarea,input[type="text"]) {background:#526879;color:#f4f8fb;border-color:#91a9b8;}
 /* Neutral heading contrast restored after darkening cards. */
 html[data-reguspace-theme="dark"][data-rs-standalone="qualities"] .qualities-module .q-card .q-kicker {color:#c6dce9;}
 /* Other reports: lists, search, report metadata remain distinct; no report charts touched. */
 html[data-reguspace-theme="dark"][data-rs-standalone="otherreports"] .profile-module :is(.shell,.page,.manager,.card,.question,.comparison-panel,.formgrid) {
   background:#344452;border-color:#718696;color:#edf4f8;
 }
 html[data-reguspace-theme="dark"][data-rs-standalone="otherreports"] .profile-module :is(.head,.intro,.sectionhead,.subtle,.hint,.field label,.question label,.card h2,.card h3) {color:#edf4f8;}
 html[data-reguspace-theme="dark"][data-rs-standalone="otherreports"] .profile-module :is(textarea,input[type="text"],input[type="search"],select) {background:#526879;color:#f4f8fb;border-color:#91a9b8;}
 /* Relationele veiligheid: informational shell; keep colored meaning- and safety-cards. */
 html[data-reguspace-theme="dark"][data-rs-standalone="relations"] .rv-module :is(.rv-page,.rv-hero,.rv-depth,.rv-depth-body,.rv-field,.rv-dashboard-intro) {
   background:#344452;border-color:#718696;color:#edf4f8;
 }
 html[data-reguspace-theme="dark"][data-rs-standalone="relations"] .rv-module :is(.rv-title,.rv-lead,.rv-copy,.rv-depth-body p,.rv-field label,.rv-depth>summary) {color:#edf4f8;}
 html[data-reguspace-theme="dark"][data-rs-standalone="relations"] .rv-module :is(textarea,input[type="text"]) {background:#526879;color:#f4f8fb;border-color:#91a9b8;}
 /* Neurodiversiteit: neutral question panels, not color-coded profiles/diagram. */
 html[data-reguspace-theme="dark"][data-rs-standalone="neuro"] .nd-module :is(.section,.question,.open-card) {
   background:#344452;border-color:#718696;color:#edf4f8;
 }
 html[data-reguspace-theme="dark"][data-rs-standalone="neuro"] .nd-module :is(.section>.copy,.section>h2,.section>h3,.question>.qtext,.question .rate-label,.open-card>.copy) {color:#edf4f8;}
 html[data-reguspace-theme="dark"][data-rs-standalone="neuro"] .nd-module :is(textarea,input[type="text"]) {background:#526879;color:#f4f8fb;border-color:#91a9b8;}
 html[data-reguspace-theme="dark"][data-rs-standalone] :is(textarea,input,select):focus-visible {outline:3px solid #a9d9f5;outline-offset:2px;}
}

/* C118 TEST | reparatie zelfstandige neutrale onderdelen. Alleen dark/screen.
   Betekenisvolle profielkaarten, kleurstatus, canvas, grafiek en print blijven staan. */
@media screen {
  /* Kwaliteiten: hoofdkaart, intake/reflection & labels; behoud driehoek/figuur. */
  html[data-reguspace-theme="dark"][data-rs-standalone="qualities"] .qualities-module :is(.q-self-card,.q-reflection-result,.q-question-grid,.q-self-head,.q-self-intro) {
    background:#405462; border-color:#718696; color:#edf4f8;
  }
  html[data-reguspace-theme="dark"][data-rs-standalone="qualities"] .qualities-module :is(.q-self-card,.q-reflection-result,.q-self-head,.q-self-intro) :is(h2,h3,p,label,small,.q-copy,.q-small,.q-kicker) {
    color:#edf4f8;
  }
  html[data-reguspace-theme="dark"][data-rs-standalone="qualities"] .qualities-module :is(.q-card,.q-self-card,.q-workpage) > :is(p,.q-copy,.q-small,.q-kicker) {
    color:#e2edf5;
  }
  /* Andere rapporten: neutraliseer het grotere buitenvlak; rapportvoorbeeld blijft licht. */
  html[data-reguspace-theme="dark"][data-rs-standalone="otherreports"] .profile-module :is(.profile-list,.preset-grid,.reflection-disclosure,.guide-wrap) {
    background:#405462; border-color:#718696; color:#edf4f8;
  }
  html[data-reguspace-theme="dark"][data-rs-standalone="otherreports"] .profile-module :is(.manager,.card,.question) > :is(p,small,.hint,.subtle,.kicker,.sectionhead) {
    color:#e3edf4;
  }
  html[data-reguspace-theme="dark"][data-rs-standalone="otherreports"] .profile-module .reflection-disclosure > summary {
    color:#edf4f8;
  }
  /* Relationele veiligheid: alleen neutrale hoofdsecties, niet rode veiligheids- of jeugdkaarten. */
  html[data-reguspace-theme="dark"][data-rs-standalone="relations"] .rv-module .rv-card:not(.rv-red-card):not(.rv-youth-card):not(.rv-regulation-boundary) {
    background:#405462; border-color:#718696; color:#edf4f8;
  }
  html[data-reguspace-theme="dark"][data-rs-standalone="relations"] .rv-module .rv-card:not(.rv-red-card):not(.rv-youth-card):not(.rv-regulation-boundary) > :is(h1,h2,h3,p,.rv-copy,.rv-h2,.rv-kicker,.rv-small) {
    color:#edf4f8;
  }
  html[data-reguspace-theme="dark"][data-rs-standalone="relations"] .rv-module :is(.rv-principle,.rv-dashboard-intro,.rv-field,.rv-depth-body) {
    background:#344452; border-color:#718696; color:#edf4f8;
  }
  html[data-reguspace-theme="dark"][data-rs-standalone="relations"] .rv-module :is(.rv-principle,.rv-dashboard-intro,.rv-field,.rv-depth-body) :is(.rv-copy,.rv-small,p,label) {
    color:#e7f0f6;
  }
  /* Neurodiversiteit: hele donkere hoofdstukvlakken krijgen eigen lichte kop/intro.
     De onderliggende zachte gekleurde kaartjes houden juist donkere letterkleur. */
  html[data-reguspace-theme="dark"][data-rs-standalone="neuro"] .nd-module .page > .section > :is(h1,h2,h3,p,.copy,.kicker,.micro),
  html[data-reguspace-theme="dark"][data-rs-standalone="neuro"] .nd-module .page > .section > .layer-head :is(h2,h3,p,.layer-sub),
  html[data-reguspace-theme="dark"][data-rs-standalone="neuro"] .nd-module .section > .depth-head :is(h2,h3,p,.copy) {
    color:#edf4f8;
  }
  html[data-reguspace-theme="dark"][data-rs-standalone="neuro"] .nd-module :is(.profile,.route-card,.align-card,.summary-card,.cycle-card,.definition) {
    background:#dfe9ef; border-color:#b8cad6; color:#253a50;
  }
  html[data-reguspace-theme="dark"][data-rs-standalone="neuro"] .nd-module :is(.profile,.route-card,.align-card,.summary-card,.cycle-card,.definition) :is(h2,h3,h4,p,small,strong,.copy,.profile-tag,.profile-body) {
    color:#253a50;
  }
  html[data-reguspace-theme="dark"][data-rs-standalone="neuro"] .nd-module .section :is(.question,.open-card) > :is(h2,h3,p,.copy,.qtext) {
    color:#edf4f8;
  }
}

/* C119 TEST — scherm-only consistentie van zelfstandige pagina's.
   Geen generieke wit-naar-donker inversie, geen wijzigingen aan print, data, navigatie of grafieken. */
@media screen {
  /* Kwaliteitenprofiel: grote gestapelde vraagkaarten contrasterend donker,
     kleine sorteerkaarten rustiger grijsblauw en voorbeeldvlakken helder maar niet wit. */
  html[data-reguspace-theme="dark"][data-rs-standalone="qualities"] .qualities-module .q-question {
    background:#405462;
    border-color:#7891a1;
    color:#edf4f8;
  }
  html[data-reguspace-theme="dark"][data-rs-standalone="qualities"] .qualities-module .q-question :is(p,.q-choice-question,label,strong) {
    color:#edf4f8;
  }
  html[data-reguspace-theme="dark"][data-rs-standalone="qualities"] .qualities-module .q-rank-item,
  html[data-reguspace-theme="dark"][data-rs-standalone="qualities"] .qualities-module .q-focus-row {
    background:#dce7ee;
    border-color:#b0c3d0;
    color:#294456;
  }
  html[data-reguspace-theme="dark"][data-rs-standalone="qualities"] .qualities-module .q-rank-item :is(.q-rank-name,.q-rank-desc),
  html[data-reguspace-theme="dark"][data-rs-standalone="qualities"] .qualities-module .q-focus-row :is(.q-focus-label,.q-outcome-label,strong) {
    color:#294456;
  }
  html[data-reguspace-theme="dark"][data-rs-standalone="qualities"] .qualities-module .q-rank-desc {
    background:#e6eef3;
  }
  html[data-reguspace-theme="dark"][data-rs-standalone="qualities"] .qualities-module .q-placeholder {
    background:#e3ecf2;
    border-color:#b4c6d2;
    color:#2b4659;
  }
  html[data-reguspace-theme="dark"][data-rs-standalone="qualities"] .qualities-module .q-placeholder :is(h3,p,small,.q-h3,.q-copy) {
    color:#2b4659;
  }
  html[data-reguspace-theme="dark"][data-rs-standalone="qualities"] .qualities-module .q-quality-mirror-details {
    background:#405462;
    border-color:#7891a1;
  }
  html[data-reguspace-theme="dark"][data-rs-standalone="qualities"] .qualities-module .q-quality-mirror-details > summary,
  html[data-reguspace-theme="dark"][data-rs-standalone="qualities"] .qualities-module .q-mirror-intro {
    color:#edf4f8;
  }
  /* Betekenisvolle kleine categorie-accenten en live-sortering blijven intact. */
  /* Andere rapporten: terughoudend, alleen neutrale lijst- en reflectievlakken.
     De ingevoerde rapportafbeeldingen en rapportvoorvertoning blijven onaangetast. */
  html[data-reguspace-theme="dark"][data-rs-standalone="otherreports"] .profile-module .report-mini {
    background:#dae5ec;
    border-color:#b2c5d1;
    color:#263d50;
  }
  html[data-reguspace-theme="dark"][data-rs-standalone="otherreports"] .profile-module .report-mini :is(h3,p,small,strong) {
    color:#263d50;
  }
  /* Relationele veiligheid: vragenreeks en neutrale informatietabellen dempen.
     Rode waarschuwingskaarten, betekenisvolle balkmeters en selectie blijven intact. */
  html[data-reguspace-theme="dark"][data-rs-standalone="relations"] .rv-module .rv-check-collapse {
    background:#405462;
    border-color:#7891a1;
  }
  html[data-reguspace-theme="dark"][data-rs-standalone="relations"] .rv-module .rv-check-collapse > summary {
    background:#405462;
    color:#edf4f8;
  }
  html[data-reguspace-theme="dark"][data-rs-standalone="relations"] .rv-module .rv-dashboard-intro :is(.rv-h2,.rv-copy,.rv-lead,p) {
    color:#edf4f8;
  }
  html[data-reguspace-theme="dark"][data-rs-standalone="relations"] .rv-module :is(.rv-qgroup,.rv-qrow,.rv-gauge-card) {
    background:#dce7ed;
    border-color:#b5c6d2;
    color:#253b4e;
  }
  html[data-reguspace-theme="dark"][data-rs-standalone="relations"] .rv-module :is(.rv-qgroup,.rv-qrow,.rv-gauge-card) :is(.rv-qtext,.rv-qcontext,.rv-qgroup-head,.rv-small,p,strong) {
    color:#253b4e;
  }
  html[data-reguspace-theme="dark"][data-rs-standalone="relations"] .rv-module .rv-framework-table-wrap,
  html[data-reguspace-theme="dark"][data-rs-standalone="relations"] .rv-module .rv-framework-table :is(th,td) {
    background:#e2ebf0;
    border-color:#bbccd8;
    color:#274156;
  }
  html[data-reguspace-theme="dark"][data-rs-standalone="relations"] .rv-module .rv-coreg,
  html[data-reguspace-theme="dark"][data-rs-standalone="relations"] .rv-module .rv-dialogue-note {
    background:#dce7ed;
    border-color:#aabfcd;
    color:#294256;
  }
  html[data-reguspace-theme="dark"][data-rs-standalone="relations"] .rv-module .rv-coreg :is(strong,a),
  html[data-reguspace-theme="dark"][data-rs-standalone="relations"] .rv-module .rv-dialogue-note :is(h3,p,strong) {
    color:#27465b;
  }
  html[data-reguspace-theme="dark"][data-rs-standalone="relations"] .rv-module .rv-card:not(.rv-red-card):not(.rv-youth-card):not(.rv-regulation-boundary) > :is(.rv-h2,.rv-title,.rv-lead,.rv-copy,p) {
    color:#edf4f8;
  }
  /* Neurodiversiteit: specifieke koppen met vaste donkere oorspronkelijke kleur.
     Grafieken, radar, assen, vraagwaardering en betekenisvolle symbolen behouden. */
  html[data-reguspace-theme="dark"][data-rs-standalone="neuro"] .nd-module .section.hero .hero-quote,
  html[data-reguspace-theme="dark"][data-rs-standalone="neuro"] .nd-module .profile-intro :is(h2,h3,p,.copy),
  html[data-reguspace-theme="dark"][data-rs-standalone="neuro"] .nd-module .reflection-head :is(h2,h3,p,.copy,.kicker),
  html[data-reguspace-theme="dark"][data-rs-standalone="neuro"] .nd-module .mirror-top :is(h2,h3,p,.copy,.micro),
  html[data-reguspace-theme="dark"][data-rs-standalone="neuro"] .nd-module .depth > :is(h2,h3,p),
  html[data-reguspace-theme="dark"][data-rs-standalone="neuro"] .nd-module .depth summary,
  html[data-reguspace-theme="dark"][data-rs-standalone="neuro"] .nd-module .depth-body,
  html[data-reguspace-theme="dark"][data-rs-standalone="neuro"] .nd-module .depth-body strong {
    color:#edf4f8;
  }
  html[data-reguspace-theme="dark"][data-rs-standalone="neuro"] .nd-module .reciprocity {
    background:#44505e;
    border-color:#9e8292;
    color:#f2c5d5;
  }
  html[data-reguspace-theme="dark"][data-rs-standalone="neuro"] .nd-module :is(.profile,.route-card,.align-card,.summary-card,.cycle-card,.definition) {
    background:#d8e5ec;
    border-color:#abc0ce;
  }
  html[data-reguspace-theme="dark"][data-rs-standalone="neuro"] .nd-module :is(.profile,.route-card,.align-card,.summary-card,.cycle-card,.definition) :is(h2,h3,h4,p,small,strong,.copy,.profile-tag,.profile-body) {
    color:#263c50;
  }
}

/* C120 TEST - standalone screens: consistent top/footer + actual text contrast.
   Scoped to dark screen; original links, menu JS and all safety/red cards untouched. */
@media screen {
  html[data-reguspace-theme="dark"][data-rs-standalone] body .reguspace-v287-toolbar,
  html[data-reguspace-theme="dark"][data-rs-standalone] body #reguspaceToolbar {
    background:#405462 !important;border-color:#718696 !important;color:#edf4f8 !important;
  }
  html[data-reguspace-theme="dark"][data-rs-standalone] body #reguspaceToolbar .app-brand,
  html[data-reguspace-theme="dark"][data-rs-standalone] body #reguspaceToolbar .app-brand * {color:#f3f8fb !important;}
  html[data-reguspace-theme="dark"][data-rs-standalone] body .app-footer {
    background:#344452 !important;color:#e5eff5 !important;border:1px solid #718696 !important;
  }
  html[data-reguspace-theme="dark"][data-rs-standalone] body .app-footer :is(strong,a,button,.footer-version) {color:#e5eff5 !important;}
  html[data-reguspace-theme="dark"][data-rs-standalone] body .app-footer :is(.v294c2-module-manual a,.footer-link-btn) {
    background:#405462 !important;border:1px solid #718696 !important;border-radius:10px !important;padding:7px 10px !important;text-decoration:none !important;
  }
  /* Kwaliteiten: inherited dark-blue heading labels still visible against charcoal. */
  html[data-reguspace-theme="dark"][data-rs-standalone="qualities"] .qualities-module :is(.q-title,.q-h2,.q-kicker,.q-section-head,.q-subtitle) {color:#edf4f8 !important;}
  html[data-reguspace-theme="dark"][data-rs-standalone="qualities"] .qualities-module :is(.q-rank-item,.q-focus-row) :is(h2,h3,p,small,span,strong) {color:#263d50 !important;}
  /* Reports: informational header; report visual or chart unchanged. */
  html[data-reguspace-theme="dark"][data-rs-standalone="otherreports"] .profile-module :is(.head,.intro,.sectionhead) {color:#edf4f8 !important;}
  /* Relationele veiligheid: use legible light-on-dark headings on the dashboard. */
  html[data-reguspace-theme="dark"][data-rs-standalone="relations"] .rv-module :is(.rv-dashboard-intro,.rv-depth,.rv-field) > :is(h1,h2,h3,p,.rv-h2,.rv-copy,.rv-kicker) {color:#f0f6fa !important;}
  /* Keep red safety blocks, but quiet neutral stacked story cards. */
  html[data-reguspace-theme="dark"][data-rs-standalone="relations"] .rv-module :is(.rv-principle,.rv-q,.rv-question) {background:#dce7ee !important;color:#263d50 !important;border-color:#b5c7d2 !important;}
  html[data-reguspace-theme="dark"][data-rs-standalone="relations"] .rv-module :is(.rv-principle,.rv-q,.rv-question) :is(h3,h4,p,small,span,strong,label) {color:#263d50 !important;}
  /* Neurodiversiteit: field context and explanatory text, not graph/coding. */
  html[data-reguspace-theme="dark"][data-rs-standalone="neuro"] .nd-module .section > :is(.copy,.kicker,.micro,.subtitle,h2,h3),
  html[data-reguspace-theme="dark"][data-rs-standalone="neuro"] .nd-module .section .layer-head :is(h2,h3,p,small,.copy) {color:#edf4f8 !important;}
  html[data-reguspace-theme="dark"][data-rs-standalone="neuro"] .nd-module :is(.qgrid,.quiz-grid,.question-grid) {background:#405462 !important;border-color:#758d9e !important;}
}

/* C120: Relationele veiligheid - subdued questionnaire and two neutral guidance cards.
   Preserve red warnings, selected answers and critical safety meaning. */
@media screen {
 html[data-reguspace-theme="dark"][data-rs-standalone="relations"] .rv-module :is(.rv-check-collapse,.rv-qgroup) {
   background:#dce7ee !important;border-color:#afc3d0 !important;color:#263d50 !important;
 }
 html[data-reguspace-theme="dark"][data-rs-standalone="relations"] .rv-module :is(.rv-qrow,.rv-scale label) {
   background:#edf3f7 !important;border-color:#c3d2db !important;color:#263d50 !important;
 }
 html[data-reguspace-theme="dark"][data-rs-standalone="relations"] .rv-module :is(.rv-check-collapse,.rv-qgroup,.rv-qrow) :is(.rv-qtext,.rv-qcontext,.rv-qgroup-head,summary,.rv-check-result-note) {color:#263d50 !important;}
 html[data-reguspace-theme="dark"][data-rs-standalone="relations"] .rv-module .rv-scale label:has(input:checked) {
   background:#c6dfe9 !important; border-color:#5796b6 !important;color:#214963 !important;
 }
 html[data-reguspace-theme="dark"][data-rs-standalone="relations"] .rv-module :is(.rv-youth-card,.rv-regulation-boundary) {
   background:#dce7ee !important;border-color:#b7cbd7 !important;color:#233d50 !important;
 }
 html[data-reguspace-theme="dark"][data-rs-standalone="relations"] .rv-module :is(.rv-youth-card,.rv-regulation-boundary) > :is(.rv-kicker,.rv-h2,.rv-copy,.rv-youth-help) {
   color:#233d50 !important;
 }
}

/* C120R8 | verified readable states, scoped to relation/neuro and screen-only.
   Preserve pale questionnaire tiles and selected answers. */
@media screen {
  html[data-reguspace-theme="dark"][data-rs-standalone="relations"] .rv-module .rv-check-head :is(.rv-h2,.rv-kicker,.rv-copy,strong) {
    color:#edf4f8!important;opacity:1!important;
  }
  html[data-reguspace-theme="dark"][data-rs-standalone="relations"] .rv-module .rv-check-collapse>summary,
  html[data-reguspace-theme="dark"][data-rs-standalone="relations"] .rv-module .rv-check-collapse>summary>span:not(.rv-check-progress) {
    color:#edf4f8!important;
  }
  html[data-reguspace-theme="dark"][data-rs-standalone="relations"] .rv-module .rv-check-collapse>summary .rv-check-progress {
    color:#415869!important;
  }
  html[data-reguspace-theme="dark"][data-rs-standalone="relations"] .rv-module .rv-depth[open]>summary {
    background:#405462!important;color:#edf4f8!important;border-color:#718696!important;
  }
  /* Pale dialogue guidance inside a dark accordion must use dark ink, not inherited light text. */
  html[data-reguspace-theme="dark"][data-rs-standalone="relations"] .rv-module .rv-dialogue-note :is(h3,h4,p,strong,li,small) {
    color:#27465b!important;
  }
  /* Neuro reflection label was dark on charcoal, despite correctly colored inputs. */
  html[data-reguspace-theme="dark"][data-rs-standalone="neuro"] .nd-module .open-card>label,
  html[data-reguspace-theme="dark"][data-rs-standalone="neuro"] .nd-module #openvragen .hint {
    color:#edf4f8!important;opacity:1!important;
  }
  html[data-reguspace-theme="dark"][data-rs-standalone="neuro"] .nd-module .final-anchor {
    color:#f1bacb!important;opacity:1!important;
  }
}
