/* UX12E — strictly local dark-mode fixes for confirmed desktop regressions.
   Scope: Hechting, Analysis Report, Winter 2026, and Quick relation block desktop.
   Dark-only color changes. Quick desktop layout is shared by both themes. No print changes. */
@media screen and (min-width:801px) {
  /* 1) Shared privacy lock / popover contrast for confirmed desktop locations. */
  html[data-reguspace-theme="dark"] body :is(#attachmentScreen,#analysisReportScreen,#themeSeasonalWinter2026Screen) .regu-privacy-trigger {
    background:#f4f9fc!important;
    border-color:#bdd0df!important;
    color:#244f70!important;
  }
  html[data-reguspace-theme="dark"] body :is(#attachmentScreen,#analysisReportScreen,#themeSeasonalWinter2026Screen) .regu-privacy-trigger:hover {
    background:#eaf3f9!important;
    border-color:#9ebbd0!important;
    color:#173f5e!important;
  }
  html[data-reguspace-theme="dark"] body :is(#attachmentScreen,#analysisReportScreen,#themeSeasonalWinter2026Screen) .regu-privacy-popover {
    background:#ffffff!important;
    border-color:#ccd9e2!important;
    color:#475467!important;
  }
  html[data-reguspace-theme="dark"] body :is(#attachmentScreen,#analysisReportScreen,#themeSeasonalWinter2026Screen) .regu-privacy-popover strong,
  html[data-reguspace-theme="dark"] body :is(#attachmentScreen,#analysisReportScreen,#themeSeasonalWinter2026Screen) .regu-privacy-popover span {
    color:#344054!important;
  }

  /* QA R1: Attachment gets higher-specificity inherited dark ink from theme CSS.
     Override only this privacy trigger and its SVG, not other attachment cards. */
  html[data-reguspace-theme="dark"] body #attachmentScreen#attachmentScreen .regu-privacy-note > .regu-privacy-trigger,
  html[data-reguspace-theme="dark"] body #attachmentScreen#attachmentScreen .regu-privacy-trigger,
  html[data-reguspace-theme="dark"] body #attachmentScreen#attachmentScreen .regu-privacy-trigger .regu-privacy-lock-icon {
    color:#244f70!important;
  }
  html[data-reguspace-theme="dark"] body #attachmentScreen#attachmentScreen .regu-privacy-trigger .regu-privacy-lock-icon {
    stroke:currentColor!important;
  }
  html[data-reguspace-theme="dark"] body #attachmentScreen#attachmentScreen .regu-privacy-popover strong,
  html[data-reguspace-theme="dark"] body #attachmentScreen#attachmentScreen .regu-privacy-popover span {
    color:#344054!important;
  }

  /* 2) Analysis report desktop: restore dark text on pale action buttons. */
  html[data-reguspace-theme="dark"] body #analysisReportScreen .regu-output-action {
    background:#f4f9fc!important;
    border-color:#bdd0df!important;
    color:#244f70!important;
  }
  html[data-reguspace-theme="dark"] body #analysisReportScreen .regu-output-action:hover {
    background:#eaf3f9!important;
    border-color:#9ebbd0!important;
    color:#173f5e!important;
  }
  html[data-reguspace-theme="dark"] body #analysisReportScreen .regu-output-action.is-delete {
    background:#fbf7f7!important;
    border-color:#d6c3c3!important;
    color:#765151!important;
  }
  html[data-reguspace-theme="dark"] body #analysisReportScreen .regu-output-action.is-delete:hover {
    background:#f7eeee!important;
    border-color:#c6aaaa!important;
    color:#684343!important;
  }
  html[data-reguspace-theme="dark"] body #analysisReportScreen .regu-output-actions :is(span,small,label),
  html[data-reguspace-theme="dark"] body #analysisReportScreen .regu-output-action :is(span,small),
  html[data-reguspace-theme="dark"] body #analysisReportScreen .regu-output-action .regu-action-label {
    color:inherit!important;
  }

  /* 3) Winter 2026 desktop: same action-bar repair without changing mobile. */
  html[data-reguspace-theme="dark"] body #themeSeasonalWinter2026Screen .regu-output-action {
    background:#f4f9fc!important;
    border-color:#bdd0df!important;
    color:#244f70!important;
  }
  html[data-reguspace-theme="dark"] body #themeSeasonalWinter2026Screen .regu-output-action:hover {
    background:#eaf3f9!important;
    border-color:#9ebbd0!important;
    color:#173f5e!important;
  }
  html[data-reguspace-theme="dark"] body #themeSeasonalWinter2026Screen .regu-output-action.is-delete {
    background:#fbf7f7!important;
    border-color:#d6c3c3!important;
    color:#765151!important;
  }
  html[data-reguspace-theme="dark"] body #themeSeasonalWinter2026Screen .regu-output-action.is-delete:hover {
    background:#f7eeee!important;
    border-color:#c6aaaa!important;
    color:#684343!important;
  }
  html[data-reguspace-theme="dark"] body #themeSeasonalWinter2026Screen .regu-output-action .regu-action-label {
    color:inherit!important;
  }

  /* 4) Quick desktop: keep relation block available and clickable, without adding Complete depth. */
  html[data-reguspace-theme="dark"] body #qmRelationQuestion,
  html[data-reguspace-theme="light"] body #qmRelationQuestion,
  html:not([data-reguspace-theme]) body #qmRelationQuestion {
    display:block!important;
    width:100%!important;
    box-sizing:border-box!important;
    margin:14px 0 0!important;
    padding:14px!important;
    border:1px solid #bcd7e8!important;
    border-radius:16px!important;
    background:#f2f8fc!important;
    box-shadow:none!important;
    pointer-events:auto!important;
  }
  #qmRelationQuestion > .qm-step{margin-bottom:4px!important}
  #qmRelationQuestion > h2{
    font-family:var(--reg-font-body,Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif)!important;
    font-size:18px!important;line-height:1.15!important;letter-spacing:-.015em!important;
    margin:0!important;color:#24364b!important;
  }
  #qmRelationQuestion > .qm-lead{display:block!important;margin:6px 0 0!important;color:#425466!important;font-size:12.5px!important;line-height:1.45!important}
  #qmRelationQuestion .qm-relation-trigger{display:grid!important;grid-template-columns:1fr 1fr!important;gap:8px!important;margin-top:9px!important}
  #qmRelationQuestion .qm-small-choice{
    border:1px solid #cfdbe6!important;background:#f8fbfd!important;border-radius:11px!important;padding:9px!important;
    font-size:12px!important;font-weight:800!important;color:#34495e!important;pointer-events:auto!important;
  }
  #qmRelationQuestion .qm-small-choice.active{background:#173d55!important;color:#fff!important;border-color:#173d55!important}
  #qmRelationQuestion #qmImpulsePanel{margin-top:11px!important;padding-top:11px!important;border-top:1px solid #e4ebf0!important}
  #qmRelationQuestion #qmImpulsePanel h3{font-size:16px!important;line-height:1.2!important;margin:0 0 8px!important;color:#24364b!important}
  #qmRelationQuestion .qm-impulse-grid{display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:7px!important;margin-top:8px!important}
  #qmRelationQuestion .qm-impulse{
    width:100%!important;border:1px solid #d7e1e9!important;background:#fafcfd!important;border-radius:11px!important;
    padding:9px 10px!important;text-align:left!important;font-size:12px!important;line-height:1.35!important;
    font-weight:750!important;color:#425566!important;box-sizing:border-box!important;pointer-events:auto!important;
  }
  #qmRelationQuestion .qm-impulse.active{background:#f3e7f2!important;border-color:#d6afd1!important;color:#6f3f69!important}
  #qmRelationQuestion #qmProtection{margin:9px 0 0!important;padding:10px!important;border-radius:12px!important;font-size:11.5px!important;line-height:1.42!important}
  #qmRelationQuestion #qmRelationGuidance{margin:10px 0 0!important;padding:0!important;border:0!important;background:transparent!important}
  #qmRelationQuestion .qm-guidance-panel:not([hidden]){margin:0!important;padding:0!important;border:0!important;background:transparent!important}
  #qmRelationQuestion .qm-guidance-panel:not([hidden]) .qm-guidance-body{padding:10px 0 0!important;font-size:13px!important;line-height:1.48!important;border-top:1px solid #e4ebf0!important}
  #qmRelationQuestion .qm-guidance-panel:not([hidden]) .qm-guidance-body h4{font-size:16px!important;margin:0 0 8px!important;color:#24364b!important}
}


/* UX12F — scope: desktop gratis Quick, alleen Co- en relationele regulatie.
   Gratis Quick bevat de relationele Ja/Nee-vraag en praktische adviezen,
   maar de verdiepingskaart (#coregulationDepth) is Complete-only.
   Het menu "Complete" is bij desktop zonder toegang zichtbaar; zodra
   de toegang is verkregen zet de bestaande access-controller [hidden].
   CSS :has reageert direct zonder JS, opslag of guards aan te passen.
   Mobiele Quick en alle Complete-modussen blijven ongemoeid. */
@media screen and (min-width:801px) {
  body:has(#showCompleteAccess:not([hidden])) #regulationScreen #coregulationDepth {
    display:none!important;
  }
}
