html,
body.public-report-viewer-body {
  min-height: 0;
  margin: 0;
}

body.public-report-viewer-body {
  overflow-x: hidden;
}

body.public-report-viewer-body .public-report-viewer-shell {
  box-sizing: border-box;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: clamp(12px, 2vw, 24px);
}

body.public-report-viewer-body .public-report-viewer-status {
  margin: 0;
  padding: 18px;
  border: 1px solid rgba(125, 211, 252, 0.24);
  border-radius: 14px;
  color: #dbeafe;
  background: rgba(8, 20, 39, 0.76);
  font-weight: 850;
  text-align: center;
}

body.public-report-viewer-body .public-report-viewer-status.bad {
  color: #ffe4e6;
  border-color: rgba(248, 113, 113, 0.48);
  background: rgba(127, 29, 29, 0.34);
}

body.public-report-viewer-body .public-report-viewer-status[hidden] {
  display: none;
}

body.public-report-viewer-body .public-report-old-note {
  margin: 8px 0;
  padding: 10px 12px;
  border: 1px solid rgba(250, 204, 21, 0.32);
  border-radius: 10px;
  color: #fff7cc;
  background: rgba(113, 63, 18, 0.28);
  font-weight: 750;
  line-height: 1.5;
}

body.public-report-viewer-body .visual-insight-panel {
  margin: 18px 0;
  padding: 22px;
  border: 1px solid rgba(125, 211, 252, 0.28);
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(8, 22, 43, 0.96), rgba(13, 35, 56, 0.88));
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.22);
}

body.public-report-viewer-body .visual-insight-head {
  margin: 0 0 16px;
}

body.public-report-viewer-body .visual-insight-head .eyebrow {
  margin: 0 0 8px;
  color: #79d3fc;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

body.public-report-viewer-body .visual-insight-head h2 {
  margin: 0;
  color: #fff;
  font-size: 24px;
  line-height: 1.2;
}

body.public-report-viewer-body .visual-insight-head p,
body.public-report-viewer-body .visual-insight-note {
  color: #cbd7ea;
}

body.public-report-viewer-body .visual-insight-layout {
  display: grid;
  grid-template-columns: minmax(340px, 560px) minmax(0, 1fr);
  gap: 26px;
  align-items: center;
}

body.public-report-viewer-body .visual-radar-frame {
  max-width: 560px;
  margin: 0 auto;
  padding: 4px;
}

body.public-report-viewer-body .visual-radar-frame svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}

body.public-report-viewer-body .visual-radar-label,
body.public-report-viewer-body .visual-radar-label-value,
body.public-report-viewer-body .visual-radar-center-value,
body.public-report-viewer-body .visual-radar-center-label,
body.public-report-viewer-body .visual-radar-scale {
  font-weight: 900;
}

body.public-report-viewer-body .visual-radar-legend {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 8px;
  margin: 0 0 12px;
}

body.public-report-viewer-body .visual-radar-legend span,
body.public-report-viewer-body .visual-metric {
  padding: 9px;
  border: 1px solid rgba(125, 211, 252, 0.18);
  border-radius: 12px;
  background: rgba(5, 16, 35, 0.54);
}

body.public-report-viewer-body .visual-radar-legend strong,
body.public-report-viewer-body .visual-metric strong {
  color: #f8fbff;
}

body.public-report-viewer-body .visual-radar-legend small,
body.public-report-viewer-body .visual-metric span {
  color: #9fb3d2;
}

body.public-report-viewer-body .visual-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

body.public-report-viewer-body .visual-metric strong {
  display: block;
  margin-top: 4px;
  font-size: 24px;
}

body.public-report-viewer-body .visual-radar-legend .visual-legend-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-right: 7px;
  vertical-align: middle;
}

body.public-report-viewer-body .visual-track {
  display: block;
  width: 100%;
  height: 7px;
  margin-top: 10px;
  overflow: visible;
}

@media (max-width: 760px) {
  body.public-report-viewer-body .public-report-viewer-shell {
    padding: 10px;
  }

  body.public-report-viewer-body .visual-insight-layout,
  body.public-report-viewer-body .visual-metrics {
    grid-template-columns: 1fr;
  }

  body.public-report-viewer-body .visual-insight-panel {
    padding: 16px;
  }
}

/* Cadre du rapport fidèle dans la galerie publique. */
body.page-public-audits .public-report-frame-shell {
  width: 100%;
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(125, 211, 252, 0.2);
  border-radius: 18px;
  background: #07152a;
}

body.page-public-audits .public-report-frame {
  display: block;
  width: 100%;
  min-height: 720px;
  border: 0;
  background: #07152a;
}
