/* ReguSpace C120R3 — targeted repair. Shared navigation visual geometry,
   no changes to navigation event handlers, entitlement or personal data. */
@media screen {
  /* Four standalone pages use the SAME toolbar HTML controls as Regulator,
     but legacy standalone CSS gave them a different weight, width and geometry.
     Keep the original navigation behavior and enforce the common geometry. */
  html[data-rs-standalone] body > .reguspace-v287-app .regu-c44-sticky-frame > .reguspace-v287-toolbar {
    box-sizing:border-box!important;display:flex!important;align-items:center!important;
    justify-content:flex-start!important;gap:8px!important;flex-wrap:nowrap!important;
    width:100%!important;max-width:1440px!important;margin:0 auto!important;
    font-family:Inter,system-ui,'Segoe UI',Arial,sans-serif!important;
    letter-spacing:normal!important;
  }
  html[data-rs-standalone] body .reguspace-v287-toolbar > .app-brand {
    display:flex!important;flex-direction:column!important;justify-content:center!important;
    flex:0 0 154px!important;min-width:154px!important;width:154px!important;
    margin-right:auto!important;gap:0!important;line-height:1.05!important;
    text-decoration:none!important;letter-spacing:normal!important;
  }
  html[data-rs-standalone] body .reguspace-v287-toolbar > .app-brand strong {
    font-family:Georgia,'Times New Roman',serif!important;font-size:19px!important;
    font-style:normal!important;letter-spacing:0!important;font-weight:700!important;
    line-height:1.05!important;opacity:1!important;
  }
  html[data-rs-standalone] body .reguspace-v287-toolbar > .app-brand span {
    font-size:9px!important;font-weight:750!important;line-height:1.05!important;
    letter-spacing:0!important;opacity:1!important;
  }
  html[data-reguspace-theme='dark'][data-rs-standalone] body .reguspace-v287-toolbar > .app-brand strong {color:#f0f6fa!important;}
  html[data-reguspace-theme='dark'][data-rs-standalone] body .reguspace-v287-toolbar > .app-brand span {color:#d3e1e9!important;}
  html[data-rs-standalone] body .reguspace-v287-toolbar > .btn {
    white-space:nowrap!important;display:block!important;flex:0 0 auto!important;
    font-family:Arial,'Segoe UI',sans-serif!important;
    font-weight:700!important;letter-spacing:0!important;line-height:normal!important;
    font-size:14px!important;box-sizing:border-box!important;min-height:40px!important;
  }
  /* Match the authoritative C114+ desktop button typography exactly. */
  html[data-rs-standalone] body .reguspace-v287-app .regu-c44-sticky-frame .reguspace-v287-toolbar > :is(
    #showQuickCheck,#showModel,#showRegulation,#showAnalysis,#showPersonality,
    #showAttachment,#showStress,#showThemes,#showDepthRecovery) {
      font-family:Arial,'Segoe UI',sans-serif!important;
      font-weight:700!important;line-height:normal!important;min-height:40px!important;
      letter-spacing:0!important;
  }
  html[data-rs-standalone] body .reguspace-v287-toolbar > #showQuickCheck {
    font-size:12px!important;font-weight:850!important;letter-spacing:.035em!important;
  }
  html[data-rs-standalone] body .reguspace-v287-toolbar > #reguR1MenuOpen {
    width:37px!important;min-width:37px!important;height:37px!important;flex:0 0 37px!important;
    border-radius:10px!important;
  }
  html[data-rs-standalone] body .reguspace-v287-toolbar > #reguR1MenuOpen svg {
    width:19px!important;height:19px!important;fill:none!important;
    stroke:currentColor!important;stroke-width:1.8!important;
  }
  @media(min-width:1280px){
    html[data-rs-standalone] body .reguspace-v287-toolbar > :is(
      #showModel,#showRegulation,#showAnalysis,#showPersonality,
      #showAttachment,#showStress,#showThemes,#showDepthRecovery) {font-size:15.4px!important;}
  }
  @media(max-width:1279px){
    html[data-reguspace-theme='dark'][data-rs-standalone] body .reguspace-v287-toolbar > .app-brand strong {color:#f0f6fa!important;}
  html[data-reguspace-theme='dark'][data-rs-standalone] body .reguspace-v287-toolbar > .app-brand span {color:#d3e1e9!important;}
  html[data-rs-standalone] body .reguspace-v287-toolbar > .btn {font-size:12px!important;padding:8px 9px!important;}
    html[data-rs-standalone] body .reguspace-v287-toolbar > .app-brand {
      min-width:112px!important;width:112px!important;flex-basis:112px!important;
    }
  }
  @media(max-width:800px){
    html[data-rs-standalone] body .reguspace-v287-toolbar {gap:4px!important;overflow-x:hidden!important;}
    html[data-rs-standalone] body .reguspace-v287-toolbar > .app-brand {
      min-width:100px!important;width:100px!important;flex-basis:100px!important;
    }
    html[data-rs-standalone] body .reguspace-v287-toolbar > .app-brand strong {font-size:16px!important;}
    html[data-rs-standalone] body .reguspace-v287-toolbar > .app-brand span {font-size:8px!important;}
    html[data-reguspace-theme='dark'][data-rs-standalone] body .reguspace-v287-toolbar > .app-brand strong {color:#f0f6fa!important;}
  html[data-reguspace-theme='dark'][data-rs-standalone] body .reguspace-v287-toolbar > .app-brand span {color:#d3e1e9!important;}
  html[data-rs-standalone] body .reguspace-v287-toolbar > .btn {font-size:11.5px!important;}
  }

  /* Quick before first plot: show the real empty 'Begrijp' and 'Reguleer'
     screens. Plot/strategy selection is never synthesized. */
  @media(max-width:800px){
    #quickMobileApp.qm-v174-view-understand #qmResult,
    #quickMobileApp.qm-v174-view-regulate #qmRecommendations {
      display:block!important;
    }
  }
}

@media screen {
  /* Darkmode: accessibility issues reported on C120R2. */
  html[data-reguspace-theme='dark'] body #qmRecommendations > h2,
  html[data-reguspace-theme='dark'] body #regulationScreen .recommendation-head :is(h2,h3,.desktop-rec-heading,.mobile-rec-heading) {
    color:#f2f7fa!important;opacity:1!important;
  }
  /* Keep light action buttons, but never white lettering on a pale button. */
  html[data-reguspace-theme='dark'][data-rs-standalone='otherreports'] body a.other-reports-back-personal,
  html[data-reguspace-theme='dark'][data-rs-standalone='qualities'] body a.q-back-personal,
  html[data-reguspace-theme='dark'][data-rs-standalone='quality'] body a.q-back-personal {
    background:#e5edf2!important;border-color:#b3c6d3!important;
    color:#1a4059!important;opacity:1!important;text-shadow:none!important;
  }
  /* Reporting builder's standalone section backgrounds still appeared white
     with near-white headings. Never target actual printed report or preview paper. */
  html[data-reguspace-theme='dark'] body #analysisReportScreen .analysis-report-page > .section {
    background:#405462!important;color:#edf5fa!important;
    border:1px solid #718a99!important;
  }
  html[data-reguspace-theme='dark'] body #analysisReportScreen .analysis-report-page > .section > :is(h2,h3,p,label),
  html[data-reguspace-theme='dark'] body #analysisReportScreen .analysis-report-person-section > :is(h2,h3,p,label) {
    color:#eff6fb!important;opacity:1!important;
  }
  html[data-reguspace-theme='dark'] body #analysisReportScreen .analysis-report-page > .section :is(.analysis-report-option,.analysis-report-group) {
    background:#405462!important;border-color:#728b9a!important;color:#f0f6fa!important;
  }
  html[data-reguspace-theme='dark'] body #analysisReportScreen .analysis-report-page > .section :is(.analysis-report-option,.analysis-report-group) :is(h3,label,small,span) {
    color:#f0f6fa!important;
  }
  /* Explicitly preserve report paper and printable preview. */
  html[data-reguspace-theme='dark'] body #analysisReportScreen :is(.analysis-report-preview,.analysis-report-print,.report-paper,.report-document) {
    color:#152c42;
  }
}
@media print { /* No C120R3 color changes are applied in print. */ }
