/* UX12S · REL-UI-001 · uitsluitend Complete > Regulatie.
   Zelfstandige, omkeerbare laag. Bestaande dark-mode- en app-CSS ongemoeid.
   Geen invloed op Quick, adviezen, opslag, print of JS-interacties. */
@media screen {
  /* Compact mobiel: breng het zelfstandige relationele kader terug.
     Extra specifieke selector overschrijft uitsluitend de eerdere UX12G-reset. */
  @media (max-width:800px) {
    html body.show-complete-mobile #regulationScreen #relationTriggerBox {
      display:block!important;box-sizing:border-box!important;
      border:1px solid #c3d5e2!important;border-radius:16px!important;
      background:#f8fbfd!important;background-image:none!important;
      box-shadow:0 3px 12px rgba(31,62,83,.055)!important;
      padding:14px!important;margin:14px 0 16px!important;
      max-width:100%!important;min-width:0;
    }
    html[data-reguspace-theme="dark"] body.show-complete-mobile #regulationScreen #relationTriggerBox {
      border-color:#4d6272!important;background:#293846!important;
      box-shadow:0 4px 16px rgba(0,0,0,.16)!important;
    }
  }
  /* Desktop: herkenbaar relationeel startkader, zonder nieuwe pagina-structuur. */
  @media (min-width:801px) {
    html body #regulationScreen #relationTriggerBox {
      border:1px solid #c3d5e2!important;border-radius:16px!important;
      background:#f8fbfd!important;background-image:none!important;
      box-shadow:0 3px 12px rgba(31,62,83,.055)!important;
    }
    html[data-reguspace-theme="dark"] body #regulationScreen #relationTriggerBox,
    html[data-reguspace-theme="dark"] body #regulationScreen #relationImpulsePanel.is-visible {
      border-color:#4d6272!important;background:#293846!important;background-image:none!important;
      box-shadow:0 4px 16px rgba(0,0,0,.14)!important;
    }
    /* De bestaande UX12I-reset wordt bewust alleen hier lokaal opgeheven.
       Geen lichte/witte randen bij de relationele vervolgduiding. */
    html[data-reguspace-theme="dark"] body #regulationScreen #relationRegulationSection.desktop-relation-active {
      box-sizing:border-box!important;border:1px solid #4d6272!important;
      border-radius:16px!important;background:#293846!important;background-image:none!important;
      padding:16px!important;box-shadow:0 4px 16px rgba(0,0,0,.14)!important;
    }
    html body #regulationScreen #relationImpulsePanel .relation-impulse-grid {
      grid-template-columns:repeat(4,minmax(0,1fr));
    }
  }
  @media (min-width:801px) and (max-width:1100px) {
    html body #regulationScreen #relationImpulsePanel .relation-impulse-grid {
      grid-template-columns:repeat(2,minmax(0,1fr));
    }
  }
  /* Tekstcontrast: specifiek op relationele tekst, niet op advieskaarten. */
  html:not([data-reguspace-theme="dark"]) body #regulationScreen #relationTriggerBox :is(.relation-trigger-copy,.relation-trigger-copy strong,.relation-trigger-note) {
    color:#2d4658!important;-webkit-text-fill-color:#2d4658!important;
  }
  html[data-reguspace-theme="dark"] body #regulationScreen #relationTriggerBox :is(.relation-trigger-copy,.relation-trigger-copy strong) {
    color:#f0f5f9!important;-webkit-text-fill-color:#f0f5f9!important;
  }
  html[data-reguspace-theme="dark"] body #regulationScreen #relationTriggerBox .relation-trigger-note {
    color:#d2e1eb!important;-webkit-text-fill-color:#d2e1eb!important;
  }
  html[data-reguspace-theme="dark"] body #regulationScreen #relationRegulationSection.desktop-relation-active > :is(h2,.lead) {
    color:#edf4f8!important;-webkit-text-fill-color:#edf4f8!important;
  }
  /* De goedgekeurde actief/inactief-kleuren (UX12H) blijven intact.
     Alleen klikruimte, focus en lay-out bij smalle breedtes toevoegen. */
  html body #regulationScreen #relationTriggerBox .relation-trigger-btn,
  html body #regulationScreen #relationImpulsePanel .relation-impulse-btn {
    box-sizing:border-box!important;min-height:44px!important;
    max-width:100%;overflow-wrap:anywhere;
  }
  html body #regulationScreen #relationTriggerBox .relation-trigger-btn:focus-visible,
  html body #regulationScreen #relationImpulsePanel .relation-impulse-btn:focus-visible {
    outline:3px solid #8acbf4!important;outline-offset:3px!important;
  }
}
