:root {
  --bg: #0a0d0d;
  --charcoal: #2d2926;
  --graphite: #343636;
  --panel: rgba(45, 41, 38, 0.9);
  --panel-strong: rgba(52, 54, 54, 0.94);
  --ink: #ffffff;
  --muted: #b9c2c4;
  --soft: rgba(214, 215, 217, 0.1);
  --line: rgba(214, 215, 217, 0.16);
  --brand: #19bfb7;
  --brand-2: #1560bd;
  --silver: #d6d7d9;
  --green: #2fd07f;
  --amber: #f0aa3d;
  --red: #f35b5b;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.34);
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  max-width: 100%;
}

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background:
    linear-gradient(120deg, rgba(25, 191, 183, 0.09), transparent 34%),
    linear-gradient(240deg, rgba(21, 96, 189, 0.1), transparent 38%),
    linear-gradient(rgba(214, 215, 217, 0.032) 1px, transparent 1px),
    linear-gradient(90deg, rgba(214, 215, 217, 0.032) 1px, transparent 1px),
    linear-gradient(180deg, #080a0a, var(--charcoal) 48%, #080a0a);
  background-size: auto, auto, 34px 34px, 34px 34px, auto;
  color: var(--ink);
  font-family: "Work Sans", Cabin, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1 {
  font-size: 18px;
  line-height: 1.15;
}

h2 {
  font-size: clamp(26px, 5vw, 58px);
  line-height: 0.98;
}

h3 {
  font-size: 16px;
  line-height: 1.25;
}

.eyebrow {
  margin-bottom: 6px;
  color: var(--brand);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(16px, 4vw, 44px);
  background: rgba(10, 13, 13, 0.9);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 16px;
}

.brand > div,
.intro-copy,
.surface {
  min-width: 0;
}

.brand img {
  width: clamp(118px, 16vw, 178px);
  height: auto;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: end;
  gap: 8px;
}

body[data-view="home"] .app-action,
body[data-view="app"] .view-home,
body[data-view="results"] .view-home {
  display: none;
}

body[data-view="home"] #saveSubmission,
body[data-view="home"] #printReport,
body[data-view="home"] #downloadAudit,
body[data-view="library"] #saveSubmission,
body[data-view="library"] #printReport,
body[data-view="library"] #downloadAudit,
body[data-view="instructions"] #saveSubmission,
body[data-view="instructions"] #printReport,
body[data-view="instructions"] #downloadAudit {
  display: none;
}

body[data-view="home"] .view-app {
  display: none;
}

body[data-view="app"] .report-panel,
body[data-view="results"] .form-panel {
  display: none;
}

body[data-view="app"] #printReport,
body[data-view="app"] #downloadAudit {
  display: none;
}

.auth-actions {
  align-items: center;
  display: flex;
  gap: 0.5rem;
}

.diagnostic-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  grid-column: 1 / -1;
  justify-content: flex-end;
}

#turnstileWidget {
  display: flex;
  justify-content: flex-end;
  margin-top: 8px;
}

.auth-status {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.75rem;
  max-width: 15rem;
}

.auth-benefit {
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.7rem;
  max-width: 11rem;
  line-height: 1.2;
}

body[data-view="library"] .view-home,
body[data-view="library"] .view-app {
  display: none;
}

body[data-view="library"] #libraryView {
  display: block;
}

body[data-view="instructions"] .view-home,
body[data-view="instructions"] .view-app,
body[data-view="instructions"] #libraryView {
  display: none;
}

body[data-view="instructions"] #instructionsView {
  display: block;
}

.instructions-shell {
  max-width: 900px;
  margin: 0 auto;
  padding: 48px 24px 72px;
}

.instructions-panel {
  padding: clamp(24px, 5vw, 54px);
}

.instructions-lead {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.6;
  margin-top: 16px;
  max-width: 680px;
}

.instruction-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 28px 0;
}

.instruction-grid article {
  border: 1px solid var(--line);
  border-radius: 10px;
  display: grid;
  gap: 6px;
  padding: 16px;
}

.instruction-grid span {
  color: var(--muted);
  line-height: 1.45;
}

.draft-notice {
  border-left: 3px solid var(--brand);
  color: var(--brand);
  margin: 16px 0;
  padding: 8px 12px;
}

.instructions-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

@media (max-width: 640px) {
  .instruction-grid {
    grid-template-columns: 1fr;
  }
}

.library-shell {
  max-width: 1180px;
  margin: 0 auto;
  padding: 32px 24px 64px;
}

.library-panel {
  padding: clamp(20px, 4vw, 42px);
}

.library-status {
  color: var(--muted);
  margin: 8px 0 22px;
}

.submission-list {
  display: grid;
  gap: 12px;
}

.submission-card {
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(0, 1fr) auto;
  padding: 18px;
}

.submission-card h3,
.submission-card p {
  margin: 0;
}

.submission-card h3 {
  color: var(--ink);
  font-size: 1rem;
}

.submission-meta {
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-top: 6px !important;
  font-size: 0.85rem;
}

.submission-summary {
  color: var(--muted);
  font-size: 0.9rem;
  margin-top: 10px !important;
}

.admin-notice {
  background: rgba(25, 191, 183, 0.08);
  border: 1px solid rgba(25, 191, 183, 0.35);
  border-radius: 9px;
  margin-bottom: 18px;
  padding: 14px 16px;
}

.admin-notice strong,
.admin-notice p {
  display: block;
  margin: 4px 0 0;
}

.admin-notice p {
  color: var(--muted);
  font-size: 0.9rem;
}

@media (max-width: 700px) {
  .submission-card {
    grid-template-columns: 1fr;
  }
}

.app-action:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

body[data-view="app"] .shell,
body[data-view="results"] .shell {
  grid-template-columns: minmax(0, 860px);
  justify-content: center;
}

body[data-view="app"] .topbar {
  padding-top: 8px;
  padding-bottom: 8px;
}

body[data-view="app"] .brand {
  gap: 12px;
}

body[data-view="app"] .brand img {
  width: 104px;
  max-height: 54px;
  object-fit: contain;
}

body[data-view="app"] .brand h1 {
  font-size: 16px;
}

body[data-view="app"] .actions button {
  min-height: 34px;
  padding: 0 12px;
}

body[data-view="app"] .shell {
  padding-top: 16px;
  padding-bottom: 24px;
}

body[data-view="app"] .form-panel {
  padding: 14px 20px 16px;
}

body[data-view="app"] .form-panel .section-title {
  display: none;
}

body[data-view="app"] .wizard-status {
  grid-template-columns: minmax(0, 1fr);
  gap: 5px;
  margin-bottom: 12px;
  padding: 0 0 12px;
}

body[data-view="app"] .wizard-status span {
  font-size: 11px;
}

body[data-view="app"] .wizard-status strong {
  font-size: 16px;
  line-height: 1.25;
}

body[data-view="app"] .wizard-track {
  height: 6px;
}

body[data-view="app"] .domain-heading {
  margin-bottom: 8px;
  font-size: 14px;
}

body[data-view="app"] .domain-heading span {
  width: 28px;
  height: 28px;
  flex-basis: 28px;
  font-size: 11px;
}

body[data-view="app"] .question {
  gap: 9px;
  padding-top: 6px;
}

body[data-view="app"] .question-title {
  font-size: 16px;
  line-height: 1.3;
}

body[data-view="app"] .scale {
  gap: 6px;
  padding: 6px;
}

body[data-view="app"] .scale label,
body[data-view="app"] .scale span {
  min-height: 48px;
}

body[data-view="app"] .scale span {
  grid-template-columns: 28px 1fr;
  padding: 8px 10px;
}

body[data-view="app"] .scale b {
  width: 26px;
  height: 26px;
  font-size: 14px;
}

body[data-view="app"] .scale small {
  font-size: 12px;
  line-height: 1.3;
}

body[data-view="app"] .wizard-nav {
  margin-top: 12px;
  padding-top: 12px;
}

button {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: rgba(52, 54, 54, 0.72);
  color: var(--ink);
  padding: 0 14px;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

button:hover {
  border-color: var(--brand);
  color: var(--brand);
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.42;
}

.primary-action {
  border-color: rgba(25, 191, 183, 0.7);
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #fff;
}

.primary-action:hover {
  background: linear-gradient(135deg, #1ed8cf, #1b70d7);
  color: #fff;
}

.audit-action {
  border-color: rgba(214, 215, 217, 0.35);
  background: rgba(52, 54, 54, 0.82);
}

.audit-action:hover {
  border-color: rgba(25, 191, 183, 0.62);
  color: var(--brand);
}

.intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 360px);
  gap: 42px;
  align-items: center;
  max-width: 1180px;
  margin: 0 auto;
  min-height: calc(100vh - 82px);
  padding: 54px 20px 56px;
}

.signal-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  color: var(--brand);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.signal-label::before {
  content: "";
  width: 32px;
  height: 2px;
  background: linear-gradient(90deg, var(--brand), transparent);
}

.intro-copy p {
  max-width: 760px;
  margin-top: 18px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.55;
}

.intro-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.intro-actions button {
  min-width: 168px;
}

.maturity-orbit {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 300px;
  isolation: isolate;
}

.maturity-orbit::before,
.maturity-orbit::after {
  content: "";
  position: absolute;
  border: 1px solid rgba(214, 215, 217, 0.16);
  border-radius: 50%;
}

.maturity-orbit::before {
  width: 280px;
  height: 280px;
}

.maturity-orbit::after {
  width: 206px;
  height: 206px;
  border-color: rgba(25, 191, 183, 0.26);
}

.orbit-ring {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 156px;
  height: 156px;
  border: 2px solid transparent;
  border-radius: 50%;
  background:
    linear-gradient(var(--bg), var(--bg)) padding-box,
    conic-gradient(from -38deg, var(--brand), var(--brand-2), rgba(214, 215, 217, 0.2), var(--brand)) border-box;
  text-align: center;
  box-shadow: 0 0 44px rgba(25, 191, 183, 0.18);
}

.orbit-ring span {
  font-size: 54px;
  font-weight: 900;
  line-height: 1;
}

.orbit-ring small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.orbit-meta {
  position: absolute;
  right: 0;
  bottom: 16px;
  z-index: 2;
  display: grid;
  gap: 8px;
}

.orbit-meta span {
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(45, 41, 38, 0.82);
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.orbit-meta strong {
  color: var(--brand);
  font-size: 18px;
}

.shell {
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(390px, 0.72fr);
  gap: 22px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 34px 20px 44px;
}

.surface {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(52, 54, 54, 0.92), rgba(45, 41, 38, 0.88));
  box-shadow: var(--shadow);
}

.form-panel,
.report-panel {
  padding: 22px;
}

.form-panel {
  background: #f7fafb;
  color: #1f2933;
  box-shadow: 0 18px 56px rgba(0, 0, 0, 0.24);
}

.form-panel .section-title,
.form-panel .question-title,
.form-panel .wizard-status strong,
.form-panel .domain-heading {
  color: #1f2933;
}

.form-panel .eyebrow,
.form-panel .wizard-status span {
  color: #126f74;
}

.form-panel .pill {
  border-color: rgba(18, 111, 116, 0.2);
  background: rgba(25, 191, 183, 0.1);
  color: #126f74;
}

.report-panel {
  position: sticky;
  top: 86px;
  align-self: start;
  max-height: calc(100vh - 108px);
  overflow-y: auto;
  overflow-x: hidden;
}

.section-title {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 16px;
  margin-bottom: 20px;
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  border: 1px solid rgba(25, 191, 183, 0.28);
  border-radius: 999px;
  background: rgba(25, 191, 183, 0.12);
  color: var(--brand);
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.pill.muted {
  border-color: var(--line);
  background: var(--soft);
  color: var(--muted);
}

.company-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 16px;
  border: 1px solid #d8e0e2;
  border-radius: 8px;
  background: #ffffff;
  margin-bottom: 22px;
}

.wizard-status {
  display: grid;
  gap: 8px;
  margin-bottom: 18px;
  padding: 14px 0 18px;
  border-bottom: 1px solid #d8e0e2;
}

.wizard-status span {
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.wizard-status strong {
  font-size: 20px;
}

.wizard-track {
  height: 8px;
  border-radius: 99px;
  background: #e2e8ea;
  overflow: hidden;
}

.wizard-track span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--brand), var(--brand-2));
}

.wizard-step {
  display: none;
}

.wizard-step.active {
  display: grid;
}

.wizard-nav {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid #d8e0e2;
}

.wizard-nav button {
  min-width: 132px;
}

.deferred-contact-copy {
  display: grid;
  grid-column: 1 / -1;
  gap: 4px;
  padding-bottom: 4px;
}

.deferred-contact-copy strong {
  color: #1f2933;
  font-size: 16px;
}

.deferred-contact-copy span {
  color: #5b6870;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
}

label {
  display: grid;
  gap: 7px;
  color: #4b5960;
  font-size: 12px;
  font-weight: 800;
}

input {
  width: 100%;
  min-height: 42px;
  border: 1px solid #cfd9dc;
  border-radius: 7px;
  background: #ffffff;
  color: #1f2933;
  padding: 0 12px;
  font: inherit;
}

input:focus {
  border-color: var(--brand);
  outline: 3px solid rgba(25, 191, 183, 0.14);
}

.domain-block {
  margin-top: 0;
  padding: 0;
  border-top: 0;
}

.domain-heading {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.domain-heading::before {
  display: none;
}

.domain-heading span {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  border: 1px solid rgba(18, 111, 116, 0.22);
  border-radius: 50%;
  background: #eef8f8;
  color: #126f74;
  font-size: 12px;
  font-weight: 900;
}

.question {
  display: grid;
  gap: 12px;
  padding: 16px 0 4px;
  border: 0;
  margin: 0;
}

.question:first-of-type {
  border-top: 0;
}

.question-title {
  padding: 0;
  color: #1f2933;
  font-size: 17px;
  font-weight: 800;
  line-height: 1.4;
}

.scale {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  padding: 8px;
  border: 1px solid #d8e0e2;
  border-radius: 8px;
  background: #ffffff;
}

.scale label {
  position: relative;
  display: block;
  min-height: 58px;
  color: #1f2933;
}

.scale input {
  position: absolute;
  opacity: 0;
}

.scale span {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 10px;
  align-items: center;
  min-height: 58px;
  border: 1px solid #e0e6e8;
  border-radius: 7px;
  background: #fbfdfe;
  padding: 10px 12px;
  transition: border-color 0.12s ease, background 0.12s ease, box-shadow 0.12s ease;
}

.scale b {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: #eef2f3;
  color: #42515a;
  font-size: 16px;
}

.scale small {
  color: #334047;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.42;
}

.scale label:hover span {
  border-color: rgba(18, 111, 116, 0.34);
  background: #f4fbfb;
}

.scale input:checked + span {
  border-color: #19bfb7;
  background: #edfafa;
  color: #172326;
  box-shadow: 0 0 0 3px rgba(25, 191, 183, 0.14);
}

.scale input:checked + span b {
  background: #19bfb7;
  color: #ffffff;
}

.scale input:checked + span small {
  color: #172326;
}

.scale-help {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-size: 11px;
}

.empty {
  display: grid;
  gap: 8px;
  min-height: 220px;
  place-content: center;
  padding: 34px;
  border: 1px dashed rgba(214, 215, 217, 0.26);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(25, 191, 183, 0.08), transparent),
    rgba(255, 255, 255, 0.03);
  color: var(--muted);
  text-align: center;
}

.empty strong {
  color: var(--ink);
  font-size: 18px;
}

.empty.compact {
  min-height: 110px;
  padding: 18px;
}

.report {
  display: grid;
  gap: 22px;
}

.hidden,
.report.hidden {
  display: none;
}

.print-brand {
  display: none;
}

.score-hero {
  display: grid;
  grid-template-columns: 132px 1fr;
  gap: 18px;
  align-items: center;
  padding: 16px;
  border: 1px solid rgba(25, 191, 183, 0.26);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(25, 191, 183, 0.14), rgba(21, 96, 189, 0.08)),
    rgba(255, 255, 255, 0.04);
}

.score-ring {
  display: grid;
  place-items: center;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, #121718 58%, transparent 60%),
    conic-gradient(var(--brand) 0deg, rgba(214, 215, 217, 0.13) 0deg 360deg);
}

.score-ring span {
  font-size: 34px;
  font-weight: 900;
}

.score-copy p {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.score-copy strong {
  display: block;
  margin: 6px 0 14px;
  font-size: 18px;
  line-height: 1.2;
}

.maturity-track {
  position: relative;
  height: 12px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--red), var(--amber), var(--brand), var(--green));
  overflow: hidden;
}

.maturity-track::after {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(90deg, transparent 0 19.2%, rgba(0, 0, 0, 0.38) 19.2% 20%);
}

.maturity-track span {
  display: block;
  width: 0;
  height: 100%;
  background: rgba(255, 255, 255, 0.82);
  mix-blend-mode: screen;
}

.domain-rows,
.priority-list {
  display: grid;
  gap: 9px;
}

.domain-row {
  display: grid;
  grid-template-columns: 46px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 12px 0;
  border-top: 1px solid rgba(214, 215, 217, 0.1);
}

.domain-row:first-child {
  border-top: 0;
}

.domain-signal {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  color: var(--ink);
  font-size: 12px;
  font-weight: 900;
}

.domain-row strong {
  display: block;
  font-size: 13px;
}

.domain-row small {
  color: var(--muted);
  line-height: 1.4;
}

.domain-score {
  color: var(--brand);
  font-size: 18px;
}

.mini-bar {
  grid-column: 2 / -1;
  height: 8px;
  border-radius: 99px;
  background: rgba(214, 215, 217, 0.12);
  overflow: hidden;
}

.mini-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--red), var(--amber), var(--brand), var(--green));
}

.priority-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: start;
  padding: 12px 0;
  border-top: 1px solid rgba(214, 215, 217, 0.1);
}

.priority-card:first-child {
  border-top: 0;
}

.priority-badge {
  min-width: 58px;
  padding: 6px 8px;
  border-radius: 999px;
  background: rgba(47, 208, 127, 0.12);
  color: var(--green);
  font-size: 11px;
  font-weight: 900;
  text-align: center;
}

.priority-card.high .priority-badge {
  background: rgba(243, 91, 91, 0.14);
  color: var(--red);
}

.priority-card.medium .priority-badge {
  background: rgba(240, 170, 61, 0.14);
  color: var(--amber);
}

.priority-card strong {
  display: block;
  margin-bottom: 5px;
  font-size: 13px;
}

.priority-card p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.priority-card small {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.35;
}

.priority-gap {
  color: var(--ink) !important;
}

.insight-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.insight-card,
.insight-item {
  border: 1px solid rgba(214, 215, 217, 0.1);
  border-radius: 8px;
  background: rgba(214, 215, 217, 0.04);
}

.insight-card {
  display: grid;
  gap: 6px;
  padding: 12px;
}

.insight-card span,
.insight-item small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  line-height: 1.35;
}

.insight-card strong {
  color: var(--ink);
  font-size: 17px;
}

.insight-card p,
.insight-item p {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.split-insights {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.split-insights h4 {
  margin-bottom: 8px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 900;
}

.insight-list {
  display: grid;
  gap: 8px;
}

.insight-item {
  display: grid;
  gap: 5px;
  padding: 10px;
}

.insight-item strong {
  color: var(--ink);
  font-size: 13px;
}

.audit-list {
  display: grid;
  gap: 8px;
}

.audit-row {
  display: grid;
  grid-template-columns: 38px minmax(170px, 1fr) repeat(4, auto);
  gap: 10px;
  align-items: center;
  padding: 10px 0;
  border-top: 1px solid rgba(214, 215, 217, 0.1);
}

.audit-row:first-child {
  border-top: 0;
}

.audit-row > strong {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(25, 191, 183, 0.12);
  color: var(--brand);
  font-size: 12px;
}

.audit-row div {
  display: grid;
  gap: 3px;
}

.audit-row span,
.audit-row small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.35;
}

.audit-row div span {
  color: var(--ink);
  font-size: 12px;
}

.roadmap {
  display: grid;
  gap: 0;
  border-left: 1px solid rgba(25, 191, 183, 0.34);
  margin-left: 8px;
}

.roadmap div {
  position: relative;
  padding: 0 0 16px 18px;
}

.roadmap div::before {
  content: "";
  position: absolute;
  left: -5px;
  top: 3px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 18px rgba(25, 191, 183, 0.48);
}

.roadmap span {
  display: block;
  margin-bottom: 6px;
  color: var(--brand);
  font-size: 12px;
  font-weight: 900;
}

.roadmap p,
.disclaimer,
#executiveSummary {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.disclaimer {
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

/* Portada: datos generales del diagnostico */
.report-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px 18px;
  margin: 0 0 18px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--soft);
}

.report-meta dt {
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.report-meta dd {
  margin: 2px 0 0;
  font-size: 13px;
  font-weight: 600;
}

/* Analisis visual */
.visual-analysis {
  display: grid;
  gap: 20px;
}

.visual-block h4 {
  margin: 0 0 10px;
  font-size: 13px;
  color: var(--muted);
  font-weight: 600;
}

.bar-chart {
  width: 100%;
  height: auto;
  overflow: visible;
}

.bar-chart .bar-track {
  fill: rgba(214, 215, 217, 0.13);
}

.bar-chart .bar-label,
.bar-chart .bar-value {
  fill: var(--ink);
  font-size: 9px;
  font-weight: 700;
  font-family: inherit;
}

.bar-chart .bar-caption {
  fill: var(--muted);
  font-size: 8px;
  font-family: inherit;
}

.bar-chart .bar-target {
  stroke: var(--brand-2);
  stroke-width: 1.4;
  stroke-dasharray: 3 3;
}

.global-progress {
  display: grid;
  gap: 10px;
}

.global-progress-track {
  position: relative;
  height: 14px;
  border-radius: 999px;
  background: rgba(214, 215, 217, 0.13);
  overflow: hidden;
}

.global-progress-track span {
  display: block;
  height: 100%;
  border-radius: 999px;
}

.global-progress-target {
  position: absolute;
  top: -3px;
  bottom: -3px;
  width: 2px;
  background: var(--brand-2);
}

.global-progress-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 14px;
  font-size: 12px;
  color: var(--muted);
}

.global-progress-meta strong {
  color: var(--ink);
  font-size: 16px;
}

/* Seccion final: proximos pasos, nota y contacto */
.final-subtitle {
  margin: 18px 0 8px;
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

.final-subtitle:first-of-type {
  margin-top: 0;
}

.final-contact {
  border-top: 1px solid var(--line);
  padding-top: 14px;
  font-size: 13px;
}

.contact-cta {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.contact-channels {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 6px 18px;
}

.contact-channels li {
  display: flex;
  gap: 8px;
}

.contact-channels span {
  color: var(--muted);
}

@media (max-width: 1000px) {
  .intro,
  .shell {
    grid-template-columns: 1fr;
  }

  .maturity-orbit {
    max-width: 520px;
  }

  .report-panel {
    position: static;
    max-height: none;
  }
}

@media (max-width: 680px) {
  .topbar,
  .section-title {
    display: grid;
  }

  .topbar {
    position: static;
    grid-template-columns: minmax(0, 1fr);
    width: 100%;
  }

  .brand {
    display: grid;
    grid-template-columns: 104px minmax(0, 1fr);
    align-items: start;
    width: 100%;
  }

  .brand img {
    width: 104px;
  }

  .brand h1 {
    max-width: 210px;
    font-size: 12px;
    overflow-wrap: anywhere;
  }

  .intro-copy h2 {
    max-width: 340px;
    font-size: 21px;
    line-height: 1.04;
    overflow-wrap: anywhere;
  }

  .intro-copy p {
    max-width: 340px;
    font-size: 16px;
  }

  .actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    justify-content: stretch;
    width: 100%;
  }

  .actions button {
    min-width: 0;
    padding: 0 10px;
    font-size: 14px;
  }

  .actions .primary-action,
  .actions .audit-action {
    grid-column: 1 / -1;
  }

  .intro {
    padding-top: 28px;
    min-height: auto;
    overflow: hidden;
  }

  .intro-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .company-grid,
  .scale,
  .score-hero,
  .insight-grid,
  .split-insights,
  .domain-row,
  .audit-row {
    grid-template-columns: 1fr;
  }

  .wizard-nav {
    display: grid;
    grid-template-columns: 1fr;
  }

  .maturity-orbit {
    min-height: 240px;
  }

  .maturity-orbit::before {
    width: 230px;
    height: 230px;
  }

  .maturity-orbit::after {
    width: 170px;
    height: 170px;
  }

  .orbit-meta {
    position: static;
    margin-top: 14px;
  }

  .mini-bar {
    grid-column: 1;
  }

  .scale {
    border-radius: 8px;
  }

  .scale span {
    border-radius: 7px;
  }

  .shell,
  .intro {
    padding-left: 12px;
    padding-right: 12px;
  }

}

@media print {
  body {
    background: #fff;
    color: #111;
  }

  .topbar,
  .intro,
  .form-panel {
    display: none;
  }

  .shell {
    display: block;
    padding: 0;
  }

  .report-panel {
    position: static;
    max-height: none;
    border: none;
    background: #fff;
    box-shadow: none;
    color: #111;
    padding: 0;
  }

  .print-brand {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    border-bottom: 2px solid #1560bd;
    margin-bottom: 22px;
    padding-bottom: 16px;
  }

  .print-brand img {
    width: 178px;
    height: auto;
  }

  .print-brand div {
    display: grid;
    gap: 4px;
    text-align: right;
  }

  .print-brand strong {
    font-size: 16px;
  }

  .print-brand span,
  .score-copy p,
  .domain-row small,
  .priority-card p,
  .roadmap p,
  .disclaimer,
  #executiveSummary {
    color: #374145;
  }

  .section-title .eyebrow,
  .domain-score,
  .roadmap span {
    color: #1560bd;
  }

  .section-title {
    border-bottom: 1px solid #d6d7d9;
    padding-bottom: 12px;
  }

  .pill,
  .score-hero,
  .domain-row,
  .priority-card,
  .disclaimer {
    border-color: #d6d7d9;
  }

  .score-hero {
    background: #f6f8f9;
  }

  .score-ring {
    color: #fff;
  }

  .maturity-track,
  .mini-bar span,
  .domain-signal,
  .score-ring,
  .bar-chart,
  .global-progress-track,
  .global-progress-track span {
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact;
  }

  .report-meta {
    background: #f6f8f9;
    border-color: #d6d7d9;
  }

  .report-meta dt,
  .contact-cta,
  .contact-channels span,
  .final-subtitle,
  .bar-chart .bar-caption {
    color: #4a4f50;
  }

  .report-meta dd,
  .bar-chart .bar-label,
  .bar-chart .bar-value {
    color: #111;
    fill: #111;
  }

  .bar-chart .bar-track {
    fill: #e4e7e8;
  }

  .global-progress-track {
    background: #e4e7e8;
  }

  .final-contact {
    border-color: #d6d7d9;
  }

  /* La seccion final no debe partirse entre paginas. */
  .final-section,
  .visual-block {
    break-inside: avoid;
    page-break-inside: avoid;
  }
}
