:root {
  --p4-ink: #101827;
  --p4-panel: #182133;
  --p4-panel-line: #2e3b4f;
  --p4-paper: #f9f4e8;
  --p4-white: #fffef9;
  --p4-orange: #f25714;
  --p4-green: #408563;
  --p4-muted: #64748b;
  --p4-blue-muted: #7a94ad;
  --p4-line: #c7c2b0;
}

.rg-pass4-report-page {
  background: var(--p4-paper);
  color: var(--p4-ink);
}

.rg-pass4-report-page .rg-report-flow {
  padding: clamp(42px, 6vw, 92px) 0 100px;
}

.rg-pass4-report-page .rg-report-flow > .rg-shell {
  width: min(1300px, calc(100% - 48px));
}

.rg-pass4-report-page .rg-report-flow-head {
  display: grid;
  grid-template-columns: minmax(0, .98fr) minmax(390px, 1.02fr);
  align-items: center;
  gap: clamp(32px, 4.5vw, 72px);
  margin-bottom: 54px;
}

.rg-pass4-report-page .rg-report-flow-head h1 {
  max-width: 610px;
  margin: 22px 0 24px;
  font: 700 clamp(48px, 4.7vw, 68px)/.98 var(--rg-sans, "DM Sans", sans-serif);
  letter-spacing: -.045em;
}

.rg-pass4-report-page .rg-report-flow-head p {
  max-width: 610px;
  color: var(--p4-muted);
  font-size: clamp(17px, 1.5vw, 22px);
  line-height: 1.55;
}

.rg-report-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.rg-report-hero-note {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr auto 1fr;
  align-items: center;
  gap: 9px;
  padding: 22px;
  border: 1px solid var(--p4-line);
  border-radius: 22px;
  background: var(--p4-white);
  color: var(--p4-muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.rg-report-hero-note i {
  color: var(--p4-orange);
  font-style: normal;
}

.rg-report-hero-note strong { color: var(--p4-ink); }

.rg-report-hero-preview {
  position: relative;
  min-height: 460px;
  padding: 24px;
  overflow: hidden;
  border: 1px solid var(--p4-panel-line);
  border-radius: 24px;
  background: var(--p4-ink);
  color: white;
}
.rg-report-hero-preview::after {
  content: "RG";
  position: absolute;
  right: -18px;
  bottom: -54px;
  color: rgba(242,87,20,.12);
  font-size: 150px;
  font-weight: 900;
  line-height: 1;
}
.rg-report-hero-preview > * { position: relative; z-index: 1; }
.rg-report-hero-preview-head { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-bottom: 18px; border-bottom: 1px solid var(--p4-panel-line); }
.rg-report-hero-preview-head span,.rg-report-hero-preview-identity small,.rg-report-hero-preview-action small { color: var(--p4-orange); font-size: 10px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.rg-report-hero-preview-head strong { max-width: 250px; font-size: 17px; line-height: 1.1; text-align: right; }
.rg-report-hero-preview-copy { max-width: 460px; margin: 18px 0 20px; color: #aeb9c8; font-size: 13px; line-height: 1.45; }
.rg-report-hero-preview-identity { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 0 0 18px; }
.rg-report-hero-preview-identity span { display: grid; min-width: 0; gap: 5px; padding: 11px 12px; border: 1px solid var(--p4-panel-line); border-radius: 9px; background: rgba(255,255,255,.025); }
.rg-report-hero-preview-identity b { overflow-wrap: anywhere; color: #dce3ed; font-size: 12px; line-height: 1.25; }
.rg-report-hero-preview-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.rg-report-hero-preview-grid span { display: flex; min-height: 48px; align-items: center; gap: 9px; padding: 10px 12px; border: 1px solid var(--p4-panel-line); border-radius: 10px; color: #c2ccda; font-size: 11px; font-weight: 800; text-transform: uppercase; }
.rg-report-hero-preview-grid i { width: 7px; height: 7px; flex: 0 0 auto; border-radius: 50%; background: var(--p4-green); }
.rg-report-hero-preview-action { margin-top: 18px; padding: 18px; border-left: 3px solid var(--p4-orange); background: rgba(255,255,255,.05); }
.rg-report-hero-preview-action strong { display: block; margin-top: 6px; font-size: 15px; line-height: 1.35; }
.rg-report-hero-preview .rg-report-hero-note { margin-top: 18px; padding: 13px; border-color: rgba(255,255,255,.15); background: rgba(255,255,255,.04); color: #aeb9c8; }
.rg-report-hero-preview .rg-report-hero-note strong { color: white; }

.rg-pass4-report-page .rg-flow-progress {
  margin-bottom: 32px;
  border: 1px solid var(--p4-line);
  border-radius: 22px;
  background: rgba(255, 254, 249, .8);
  box-shadow: none;
}

.rg-pass4-report-page .rg-flow-progress-track { background: #e2ddd2; }
.rg-pass4-report-page .rg-flow-progress-track span { background: var(--p4-orange); }

.rg-pass4-report-page .rg-report-workspace {
  grid-template-columns: minmax(0, 1.08fr) minmax(380px, .92fr);
  gap: 28px;
  align-items: start;
  scroll-margin-top: 104px;
}

.rg-pass4-report-page .rg-flow-step {
  min-width: 0;
  transition: opacity 220ms ease, transform 220ms ease;
}

.rg-pass4-report-page .rg-flow-step.is-entering { opacity: 0; transform: translateX(12px); }
.rg-pass4-report-page .rg-flow-step.is-leaving { opacity: 0; transform: translateX(-12px); }

.rg-pass4-report-page .rg-flow-card {
  border-color: var(--p4-line);
  border-radius: 24px;
  background: var(--p4-white);
  box-shadow: none;
}

.rg-pass4-report-page .rg-flow-step-copy > span,
.rg-report-build-kicker {
  color: var(--p4-orange);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.rg-pass4-report-page .rg-report-preview {
  position: sticky;
  top: 100px;
  min-height: 650px;
  padding: 24px;
  overflow: hidden;
  border: 1px solid var(--p4-panel-line);
  border-radius: 24px;
  background: var(--p4-ink);
  color: white;
  box-shadow: none;
}

.rg-pass4-report-page .rg-report-preview h2 {
  margin: 18px 0 8px;
  color: white;
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1;
}

.rg-pass4-report-page .rg-report-preview > p,
.rg-pass4-report-page .rg-preview-identity { color: var(--p4-blue-muted); }

.rg-pass4-report-page .rg-preview-identity {
  display: grid;
  gap: 3px;
  margin: 22px 0;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--p4-panel-line);
}

.rg-pass4-report-page .rg-preview-identity strong { color: white; }

.rg-pass4-report-page .rg-report-preview > ol {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.rg-pass4-report-page .rg-report-preview > ol > li {
  position: relative;
  display: grid;
  min-height: 82px;
  align-content: center;
  gap: 7px;
  padding: 16px 42px 16px 18px;
  border: 1px solid var(--p4-panel-line);
  border-radius: 17px;
  background: var(--p4-panel);
  color: white;
}

.rg-pass4-report-page .rg-report-preview > ol > li strong {
  font-size: 11px;
  line-height: 1.2;
  text-transform: uppercase;
}

.rg-pass4-report-page .rg-report-preview [data-preview-state] {
  color: var(--p4-blue-muted);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.rg-pass4-report-page .rg-report-preview > ol > li i {
  position: absolute;
  right: 18px;
  top: 50%;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #5e6b7d;
  transform: translateY(-50%);
}

.rg-pass4-report-page .rg-report-preview > ol > li.preparing i { background: var(--p4-orange); }
.rg-pass4-report-page .rg-report-preview > ol > li.ready i { background: var(--p4-green); }
.rg-pass4-report-page .rg-report-preview > ol > li.ready [data-preview-state] { color: var(--p4-green); }
.rg-pass4-report-page .rg-report-preview > ol > li.preparing [data-preview-state] { color: var(--p4-orange); }

.rg-pass4-report-page .rg-report-preview .rg-context-note {
  margin-top: 18px;
  background: var(--p4-white);
  color: var(--p4-ink);
}

.rg-report-build-head {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 22px;
  align-items: start;
  margin-bottom: 30px;
}

.rg-report-build-head h2 {
  margin: 8px 0 12px;
  color: white;
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1;
}

.rg-report-build-head p { color: var(--p4-blue-muted); }
.rg-report-build-live { color: white !important; font-weight: 800; }

.rg-pass4-report-page [data-flow-step="report"] {
  margin: -42px;
  padding: clamp(34px, 5vw, 62px);
  border-radius: 24px;
  background: var(--p4-ink);
  color: white;
}

.rg-report-build-modules {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.rg-report-build-modules li {
  position: relative;
  min-height: 88px;
  padding: 20px 20px 16px 48px;
  border: 1px solid var(--p4-panel-line);
  border-radius: 18px;
  background: var(--p4-panel);
}

.rg-report-build-modules li::before {
  content: "";
  position: absolute;
  left: 20px;
  top: 38px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--p4-orange);
}

.rg-report-build-modules strong,
.rg-report-build-modules span { display: block; text-transform: uppercase; }
.rg-report-build-modules strong { font-size: 11px; }
.rg-report-build-modules span { margin-top: 8px; color: var(--p4-orange); font-size: 9px; font-weight: 900; }
.rg-report-build-modules li.available::before { background: var(--p4-green); }
.rg-report-build-modules li.available span { color: var(--p4-green); }
.rg-report-build-modules li.unavailable::before,
.rg-report-build-modules li.temporary-error::before { background: #b82e29; }
.rg-report-build-modules li.unavailable span,
.rg-report-build-modules li.temporary-error span { color: #e65b55; }
.rg-report-build-modules li.not-enough-evidence::before { background: #5e6b7d; }
.rg-report-build-modules li.not-enough-evidence span { color: var(--p4-blue-muted); }

.rg-report-pipeline {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 28px 0 0;
  padding: 18px 0 0;
  border-top: 1px solid var(--p4-panel-line);
  list-style: none;
}

.rg-report-pipeline li { color: var(--p4-blue-muted); font-size: 11px; }
.rg-report-pipeline li.active { color: white; }
.rg-report-pipeline li.done { color: var(--p4-green); }

.rg-report-ready .rg-report-workspace,
.rg-secure-report-page #results { max-width: 1280px; }

.rg-report-ready .rg-report-workspace,
.rg-report-ready .rg-report-preview.generated {
  width: min(1280px, calc(100vw - 32px)) !important;
  max-width: 1280px !important;
}

.rg-report-ready .rg-report-preview.generated {
  padding: 0;
  border: 0;
  background: transparent;
}

.rg-report-ready .rg-report-preview.generated > :not(#results) { display: none !important; }

.rg-pass4-report-page .morag-report {
  max-width: 1240px;
  margin: 0 auto;
  padding: 30px 24px 80px;
  background: var(--p4-paper);
}

.rg-pass4-report-page .rg-report-actions {
  margin-bottom: 30px;
  padding: 18px 22px;
  border: 1px solid var(--p4-line);
  border-radius: 18px;
  background: var(--p4-white);
}

.rg-pass4-report-page .rg-report-layout {
  display: grid !important;
  grid-template-columns: 210px minmax(0, 1fr) !important;
  gap: 30px !important;
  align-items: start;
}

.rg-pass4-report-page .rg-sticky-nav {
  position: sticky !important;
  top: 96px !important;
  order: -1;
  border-radius: 18px !important;
  background: var(--p4-ink) !important;
  color: white;
}

.rg-pass4-report-page .rg-sticky-nav nav { display: grid; }

.rg-pass4-report-page .rg-sticky-nav a { color: var(--p4-blue-muted) !important; }
.rg-pass4-report-page .rg-sticky-nav a:hover,
.rg-pass4-report-page .rg-sticky-nav a:focus-visible,
.rg-pass4-report-page .rg-sticky-nav a.is-active { color: white !important; }

.rg-pass4-report-page .rg-report-main { display: grid; min-width: 0; gap: 0; }

.rg-pass4-report-page .rg-editorial-copy h1 {
  overflow-wrap: normal !important;
  word-break: normal;
  hyphens: none;
  font-size: clamp(42px, 5vw, 68px) !important;
}

.rg-pass4-report-page .rg-intel-section {
  position: relative;
  margin: 0 !important;
  padding: clamp(28px, 4vw, 54px) !important;
  border: 0 !important;
  border-radius: 24px !important;
  background: var(--p4-white) !important;
  box-shadow: none !important;
}

.rg-pass4-report-page .rg-intel-section:nth-of-type(even) {
  width: calc(100% - 7%);
  margin-left: 7% !important;
  background: #eef0f0 !important;
}

.rg-pass4-report-page .rg-intel-section + .rg-intel-section { margin-top: 12px !important; }

.rg-pass4-report-page .rg-section-kicker { color: var(--p4-orange) !important; font-size: 11px; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.rg-pass4-report-page .rg-section-head { min-width: 0; }
.rg-pass4-report-page .rg-section-head h2 { color: var(--p4-ink); font-size: clamp(28px, 3vw, 40px); line-height: 1.02; overflow-wrap: break-word; word-break: normal; }
.rg-pass4-report-page .rg-intel-section,
.rg-pass4-report-page .rg-intel-section * { min-width: 0; }
.rg-pass4-report-page .rg-intel-section :is(p,li,td,th,strong,span) { overflow-wrap: break-word; word-break: normal; hyphens: auto; }
.rg-pass4-report-page .rg-intel-section p,
.rg-pass4-report-page .rg-intel-section li { font-size: clamp(15px, 1.2vw, 17px); line-height: 1.55; }
.rg-pass4-report-page .rg-intel-section :is(.rg-report-answer,.rg-answer-takeaway,.rg-snapshot strong,.rg-priority strong) { font-size: clamp(19px, 2vw, 26px); line-height: 1.18; }
.rg-pass4-report-page .rg-intel-section :is(small,.rg-snapshot-label,.rg-signal-qual,.rg-section-note) { font-size: clamp(12px, 1vw, 14px); line-height: 1.4; }
.rg-pass4-report-page .rg-intel-section :is(.rg-report-answer,.rg-panel,.rg-priority,.rg-disclosure) { min-height: 0; height: auto; }
.rg-pass4-report-page .rg-intel-section .rg-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.rg-pass4-report-page .rg-intel-section .rg-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.rg-pass4-report-page .rg-intel-section .rg-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.rg-pass4-report-page .rg-intel-section table { width: 100%; table-layout: auto; border-collapse: collapse; }
.rg-pass4-report-page .rg-intel-section :is(th,td) { min-width: 96px; height: auto; white-space: normal; vertical-align: top; font-size: clamp(13px, 1vw, 15px); }
.rg-pass4-report-page .rg-intel-section :is(.rg-grid,.rg-diagnosis-grid,.rg-decision-grid,.rg-summary-lead,.rg-recommendations,.rg-trust-layout,.rg-sentiment-layout) > * { min-width: 0; }

.rg-pass4-report-page .rg-intel-section.is-report-reveal { opacity: 0; transform: translateY(14px); }
.rg-pass4-report-page .rg-intel-section.is-report-visible { opacity: 1; transform: none; transition: opacity 360ms ease, transform 360ms ease; }

.rg-pass4-report-page .rg-chart-track {
  position: relative;
  min-height: 14px;
  outline: none;
}

.rg-pass4-report-page .rg-chart-track:focus-visible {
  outline: 3px solid var(--p4-orange);
  outline-offset: 4px;
}

.rg-pass4-report-page .rg-chart-track.is-selected { box-shadow: 0 0 0 3px rgba(242, 87, 20, .2); }

.rg-pass4-report-page .rg-evidence-empty {
  border: 1px solid var(--p4-line);
  border-left: 5px solid var(--p4-blue-muted);
  border-radius: 16px;
  background: #f4f3ef;
}

.rg-final-cta {
  margin-top: 36px !important;
  padding: clamp(32px, 5vw, 64px) !important;
  border-radius: 24px !important;
  background: var(--p4-ink) !important;
  color: white !important;
}

.rg-final-cta > strong { display: block; max-width: 720px; font-size: clamp(34px, 5vw, 62px) !important; line-height: .98; text-transform: uppercase; }
.rg-final-cta > p { max-width: 650px; color: var(--p4-blue-muted) !important; }
.rg-final-cta > a { display: inline-flex; min-height: 48px; align-items: center; margin-top: 18px; padding: 0 20px; border-radius: 10px; background: var(--p4-orange); color: white !important; text-decoration: none; font-weight: 900; text-transform: uppercase; }

.rg-continuation-rail {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 30px 0 8px;
}

.rg-continuation-rail span {
  min-height: 74px;
  display: grid;
  align-content: center;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 15px;
  color: white;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.rg-continuation-rail span:nth-child(3) { background: white; color: var(--p4-ink); }

.rg-report-feedback {
  margin-top: 28px;
  padding: clamp(26px, 4vw, 46px);
  border: 1px solid var(--p4-line);
  border-radius: 24px;
  background: var(--p4-white);
}

.rg-report-feedback .rg-section-kicker { color: var(--p4-orange); font-size: 11px; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.rg-pass4-report-page .rg-report-feedback h2 { max-width: 720px; margin: 10px 0; color: var(--p4-ink) !important; font-size: clamp(30px, 4vw, 48px); line-height: 1; }
.rg-report-feedback > p { max-width: 690px; color: var(--p4-muted); }
.rg-feedback-form { display: grid; gap: 26px; margin-top: 30px; }
.rg-feedback-form fieldset { margin: 0; padding: 0; border: 0; }
.rg-feedback-form legend,
.rg-feedback-label { display: block; margin-bottom: 12px; font-weight: 900; }
.rg-feedback-options { display: flex; flex-wrap: wrap; gap: 9px; }
.rg-feedback-choice { position: relative; }
.rg-feedback-choice input { position: absolute; opacity: 0; }
.rg-feedback-choice span {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 10px 14px;
  border: 1px solid var(--p4-line);
  border-radius: 999px;
  background: white;
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
}
.rg-feedback-choice input:checked + span { border-color: var(--p4-orange); background: #fff0e6; box-shadow: inset 0 0 0 1px var(--p4-orange); }
.rg-feedback-choice input:focus-visible + span { outline: 3px solid var(--p4-orange); outline-offset: 3px; }
.rg-feedback-form textarea { width: 100%; min-height: 116px; padding: 14px; border: 1px solid var(--p4-line); border-radius: 14px; resize: vertical; font: inherit; }
.rg-feedback-submit-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.rg-feedback-submit { min-height: 46px; padding: 0 18px; border: 0; border-radius: 10px; background: var(--p4-ink); color: white; font-weight: 900; }
.rg-feedback-status { color: var(--p4-muted); font-size: 12px; }
.rg-feedback-status.error { color: #9f2f2a; }

.rg-report-continuation {
  inset: auto 20px 20px auto !important;
  width: min(400px, calc(100vw - 40px)) !important;
  max-height: calc(100vh - 120px);
  padding: 26px !important;
  overflow: auto;
  border: 1px solid var(--p4-line) !important;
  border-radius: 24px !important;
  background: var(--p4-paper) !important;
  color: var(--p4-ink) !important;
  box-shadow: 0 22px 62px rgba(16, 24, 39, .24) !important;
  backdrop-filter: none !important;
}
.rg-report-continuation .rg-badge { color: var(--p4-orange); }
.rg-report-continuation h2 { max-width: 330px; margin: 16px 0 !important; color: var(--p4-ink) !important; font-size: clamp(30px, 3vw, 40px) !important; line-height: 1 !important; text-transform: uppercase; }
.rg-report-continuation > p { max-width: 690px; color: var(--p4-muted) !important; font-size: 15px !important; }
.rg-report-continuation h3 { display: block !important; max-width: 700px; margin: 24px 0 12px; font-size: 17px; text-transform: uppercase; }
.rg-report-continuation .rg-continuation-next { display: none !important; }
.rg-report-continuation .rg-continuation-next article { min-height: 100px; border: 1px solid var(--p4-line); background: var(--p4-white); }
.rg-report-continuation .rg-continuation-next article.active { border-color: var(--p4-ink); background: var(--p4-panel); }
.rg-report-continuation .rg-continuation-next article.active strong,
.rg-report-continuation .rg-continuation-next article.active span { color: white; }
.rg-report-continuation .rg-continuation-next strong { color: var(--p4-ink); text-transform: uppercase; }
.rg-report-continuation .rg-continuation-next span { color: var(--p4-muted); }
.rg-report-continuation .rg-continuation-options { display: grid; gap: 9px; margin-top: 18px; }
.rg-report-continuation .rg-continuation-options a {
  min-height: 52px;
  padding: 14px 16px;
  border: 1px solid var(--p4-line);
  border-radius: 12px;
  background: white;
  color: var(--p4-ink);
  text-decoration: none;
}
.rg-report-continuation .rg-continuation-options a strong,
.rg-report-continuation .rg-continuation-options a span { display: block; color: inherit; }
.rg-report-continuation .rg-continuation-options a span { margin-top: 4px; font-size: 12px; font-weight: 500; }
.rg-report-continuation .rg-continuation-options a:first-child { max-width: none; min-height: 52px; align-content: center; border: 0; background: var(--p4-orange); }
.rg-report-continuation .rg-continuation-secondary { color: var(--p4-orange); }
.rg-report-continuation .rg-continuation-close { border-color: var(--p4-line); background: var(--p4-white); color: var(--p4-ink); }

.rg-secure-report-page .rg-secure-report-shell { width: min(1180px, calc(100% - 36px)); }
.rg-secure-report-page .rg-secure-report { border-color: var(--p4-line); border-radius: 20px; background: var(--p4-white); box-shadow: none; }
.rg-secure-report-page #results { width: min(1280px, calc(100% - 24px)) !important; }

@media (max-width: 1024px) {
  .rg-pass4-report-page .rg-report-flow-head { grid-template-columns: 1fr; }
  .rg-report-hero-preview { min-height: 420px; }
  .rg-pass4-report-page .rg-report-workspace { grid-template-columns: 1fr; }
  .rg-pass4-report-page .rg-report-preview { position: relative; top: auto; }
  .rg-pass4-report-page .rg-report-layout { grid-template-columns: 1fr !important; }
  .rg-pass4-report-page .rg-sticky-nav { position: sticky !important; top: 70px !important; z-index: 8; display: block; overflow-x: auto; padding: 10px !important; }
  .rg-pass4-report-page .rg-sticky-nav nav { display: flex; gap: 6px; width: max-content; }
  .rg-pass4-report-page .rg-sticky-nav a { flex: 0 0 auto; min-height: 44px; display: inline-flex; align-items: center; }
}

@media (max-width: 700px) {
  .rg-pass4-report-page .rg-report-flow { padding-top: 30px; }
  .rg-pass4-report-page .rg-report-flow > .rg-shell { width: min(100% - 32px, 1300px); }
  .rg-pass4-report-page .rg-report-flow-head { margin-bottom: 34px; }
  .rg-pass4-report-page .rg-report-flow-head h1 { max-width: 100%; font-size: clamp(44px, 12vw, 58px); }
  .rg-report-hero-note { grid-template-columns: 1fr; gap: 4px; }
  .rg-report-hero-note i { transform: rotate(90deg); }
  .rg-report-hero-preview { min-height: 0; padding: 20px; }
  .rg-report-hero-preview-head { align-items: flex-start; }
  .rg-report-hero-preview-head strong { max-width: 190px; font-size: 15px; }
  .rg-report-hero-preview-identity { grid-template-columns: 1fr; }
  .rg-report-hero-preview-grid { grid-template-columns: 1fr; }
  .rg-pass4-report-page .rg-flow-progress ol { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 8px 14px !important; }
  .rg-pass4-report-page .rg-flow-progress li { min-height: 44px; align-items: center; }
  .rg-pass4-report-page .rg-report-preview { min-height: auto; padding: 20px; }
  .rg-pass4-report-page .rg-report-preview > ol,
  .rg-report-build-modules { grid-template-columns: 1fr; }
  .rg-pass4-report-page [data-flow-step="report"] { margin: -24px -18px; padding: 28px 18px; }
  .rg-report-build-head { grid-template-columns: 1fr; }
  .rg-pass4-report-page .morag-report { padding: 18px 8px 60px; }
  .rg-pass4-report-page .rg-intel-section,
  .rg-pass4-report-page .rg-intel-section:nth-of-type(even) { width: 100%; margin-left: 0 !important; padding: 24px 18px !important; }
  .rg-pass4-report-page .rg-intel-section :is(.rg-grid,.rg-grid--2,.rg-grid--3,.rg-diagnosis-grid,.rg-decision-grid,.rg-summary-lead,.rg-recommendations,.rg-trust-layout,.rg-sentiment-layout) { grid-template-columns: 1fr !important; }
  .rg-continuation-rail { grid-template-columns: 1fr 1fr !important; }
  .rg-report-continuation { inset: auto 8px 8px !important; width: calc(100vw - 16px) !important; max-height: 44vh; padding: 22px 18px !important; border-radius: 22px 22px 14px 14px !important; }
  .rg-report-continuation h2 { margin-right: 42px !important; font-size: 32px !important; }
  .rg-report-continuation h3 { margin-top: 18px; }
  .rg-feedback-options { display: grid; grid-template-columns: 1fr; }
  .rg-feedback-choice span { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .rg-pass4-report-page *,
  .rg-pass4-report-page *::before,
  .rg-pass4-report-page *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .rg-pass4-report-page .rg-flow-step,
  .rg-pass4-report-page .rg-intel-section { opacity: 1 !important; transform: none !important; }
}

@media print {
  .rg-report-feedback,
  .rg-final-cta,
  .rg-report-actions,
  .rg-sticky-nav { display: none !important; }
  .rg-pass4-report-page .rg-report-layout { display: block !important; }
  .rg-pass4-report-page .rg-intel-section,
  .rg-pass4-report-page .rg-intel-section:nth-of-type(even) { width: 100%; margin: 0 0 16px !important; break-inside: auto; page-break-inside: auto; }
  .rg-pass4-report-page .rg-section-head,
  .rg-pass4-report-page .rg-report-answer,
  .rg-pass4-report-page .rg-panel,
  .rg-pass4-report-page table { break-inside: avoid; page-break-inside: avoid; }
}
