.srOnly {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.hero {
  position: relative;
  color: #fff;
  background:
    radial-gradient(circle at 86% 0%, rgba(23, 103, 232, .28), transparent 46%),
    linear-gradient(160deg, var(--navy), var(--navy2) 130%);
  padding: 16px clamp(14px, 2.4vw, 28px) 22px;
  border-bottom: 2px solid var(--cyan);
}

.boundaryNote {
  margin: 14px 0 0;
  padding: 10px 12px;
  border-left: 3px solid var(--red);
  border-radius: 6px;
  background: #fff6f2;
  color: #6f4038;
  font-size: 12px;
  line-height: 1.45;
}

.hero > * {
  position: relative;
  z-index: 1;
}

.top {
  max-width: none;
  margin: 0 0 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
  font-size: 12px;
  color: #d3f3ff;
}

.brandMark {
  width: 28px;
  height: auto;
  flex: 0 0 auto;
  filter: drop-shadow(0 5px 12px rgba(0, 0, 0, .16));
}

.dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 6px rgba(105, 217, 255, .15);
}

.lockup {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 12px 8px 9px;
  border: 1px solid rgba(255, 255, 255, .24);
  border-radius: 10px;
  background: rgba(255, 255, 255, .08);
  backdrop-filter: blur(14px);
  font-weight: 700;
}

.cmapMark {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background:
    linear-gradient(135deg, rgba(105, 217, 255, .96), rgba(23, 103, 232, .78)),
    var(--cyan);
  color: #061b38;
  box-shadow: 0 10px 22px rgba(0, 0, 0, .18);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: -.02em;
}

.lockupText {
  display: grid;
  gap: 1px;
  color: #fff;
  line-height: 1;
}

.lockupText small {
  display: block;
  color: #bbebff;
  font-size: 10px;
  letter-spacing: .18em;
  text-transform: uppercase;
  margin-top: 1px;
}

.heroGrid {
  max-width: none;
  margin: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) clamp(400px, 36vw, 620px);
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
}

.heroCopy {
  max-width: min(100%, 920px);
}

.eyebrow {
  margin: 0 0 10px;
  font-size: 12px;
  letter-spacing: .18em;
  text-transform: uppercase;
  font-weight: 700;
  color: #86e8ff;
}

h1 {
  margin: 0;
  max-width: min(100%, 25ch);
  font-size: clamp(28px, 3.4vw, 40px);
  line-height: 1.04;
  letter-spacing: -.035em;
  font-weight: 900;
}

.sub {
  margin: 12px 0 0;
  max-width: 82ch;
  color: rgba(236, 247, 255, .84);
  font-size: 14px;
  line-height: 1.48;
}

.heroLead {
  font-size: clamp(16px, 1.8vw, 20px);
  line-height: 1.2;
  color: #f4fbff;
  font-weight: 700;
  max-width: 72ch;
  margin: 10px 0 0;
}

.panel {
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .26);
  border-radius: var(--rad);
  padding: 13px 15px;
  min-width: 0;
}

.panel h2 {
  margin: 0 0 7px;
  font-size: 18px;
  letter-spacing: -.035em;
}

.panel p {
  margin: 0;
  color: rgba(239, 249, 255, .86);
  font-size: 12px;
  line-height: 1.36;
}

.heroGrid:has(.panel[hidden]) {
  grid-template-columns: 1fr;
}

.industryPulse[hidden] {
  display: none;
}

.industryPulseHead {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin: 0 0 8px;
}

.industryPulse .industryPulseLabel {
  display: block;
  color: #69d9ff;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin: 0;
}

.industryPulseTag {
  flex-shrink: 0;
  color: #07183f;
  background: #69d9ff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .02em;
  padding: 2px 9px;
  border-radius: 999px;
  white-space: nowrap;
}

.industryPulseTag:empty {
  display: none;
}

.industryPulse p {
  margin: 0;
  color: rgba(239, 249, 255, .86);
  font-size: 13px;
  line-height: 1.45;
}

.industryPulse .industryPulseUpdated {
  color: #9fc3d9;
  font-size: 12px;
  white-space: nowrap;
}

.industryPulseUpdated span {
  color: #ceefff;
  font-weight: 700;
}

main {
  max-width: var(--max);
  margin: 0 auto;
  padding: 30px clamp(15px, 3vw, 22px) 76px;
}

.section {
  margin: 26px 0;
}

.head {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(260px, .68fr) 154px;
  align-items: start;
  gap: 18px;
  width: 100%;
  margin-bottom: 15px;
}

.head h2 {
  margin: 0;
  font-size: clamp(21px, 2.2vw, 27px);
  line-height: 1.12;
  letter-spacing: -.025em;
  font-weight: 900;
}

.head p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
  max-width: 64ch;
}

.sectionEyebrow {
  color: var(--blue);
  font-size: 14px;
}

.grid {
  display: grid;
  gap: 16px;
}

.g2 {
  grid-template-columns: repeat(2, 1fr);
}

.g4 {
  grid-template-columns: repeat(4, 1fr);
}

.chip {
  position: relative;
  display: inline-flex;
  margin-top: 18px;
  background: #eef6ff;
  color: var(--navy);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 12px;
  font-weight: 700;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .07em;
}

.bars {
  display: grid;
  gap: clamp(7px, 0.8vw, 11px);
}

.bar {
  display: grid;
  grid-template-columns: minmax(150px, 1.18fr) minmax(76px, .34fr) minmax(120px, .8fr) minmax(36px, .18fr);
  gap: clamp(8px, 1vw, 14px);
  align-items: center;
  min-width: 0;
}

.bar strong {
  font-size: clamp(14px, 1vw, 17px);
  color: var(--navy);
  line-height: 1.15;
  min-width: 0;
  overflow-wrap: anywhere;
}

.bar small {
  display: block;
  color: var(--muted);
  font-size: clamp(11px, .86vw, 13px);
  font-weight: 700;
  white-space: nowrap;
}

.track {
  height: 13px;
  background: #e8f0fb;
  border-radius: 999px;
  overflow: hidden;
}

.fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--blue), var(--cyan));
  width: var(--w);
}

.domainBar[data-domain-tone="blocked"] .fill {
  background: linear-gradient(90deg, var(--r0), #e86d55);
}

.domainBar[data-domain-tone="weak"] .fill {
  background: linear-gradient(90deg, var(--r1), #efb45d);
}

.domainBar[data-domain-tone="developing"] .fill {
  background: linear-gradient(90deg, var(--r2), #d7a71b);
}

.domainBar[data-domain-tone="strong"] .fill {
  background: linear-gradient(90deg, var(--r3), var(--r4));
}

.domainBar[data-domain-tone="unscored"] .fill {
  background: #cdd9eb;
}

.domainBar > span {
  color: var(--navy);
  font-size: clamp(14px, 1vw, 17px);
  font-weight: 700;
  text-align: right;
  white-space: nowrap;
}

.scale {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: repeat(5, minmax(0, 1fr));
  gap: 8px;
  height: 100%;
  align-content: stretch;
}

.score {
  display: grid;
  grid-template-columns: 36px minmax(100px, .55fr) minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-height: 0;
  padding: 9px 12px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid var(--line);
}

.score b {
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 9px;
  color: #fff;
  background: var(--c);
  margin-bottom: 0;
}

.score strong {
  display: block;
  font-size: 14px;
  color: var(--navy);
}

.score span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.36;
}

.assessmentGrid {
  grid-template-columns: minmax(560px, 1.55fr) minmax(300px, .75fr);
  align-items: stretch;
}

.domainCard {
  display: grid;
  grid-template-rows: auto 1fr;
  min-width: 0;
  overflow: hidden;
}

.domainCard .bars {
  align-content: space-between;
}

.evidenceScaleCard {
  display: grid;
  grid-template-rows: auto 1fr;
}

.pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 10px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line);
  font-weight: 700;
  font-size: 12px;
  color: var(--navy);
  cursor: pointer;
}

.pill::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 0 4px rgba(23, 103, 232, .10);
}

.pill:hover,
.pill:focus-visible {
  border-color: var(--blue);
  color: var(--blue);
}

.cspPill::before {
  background: var(--r4);
  box-shadow: 0 0 0 4px rgba(69, 111, 143, .10);
}

.referenceLauncher {
  padding: 18px;
}

.referenceLauncher .pills {
  gap: 10px;
}

.releaseCountStrip {
  display: flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, .78);
  color: var(--muted);
  padding: 7px 10px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  white-space: nowrap;
}

.releaseCountStrip strong {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(23, 103, 232, .28);
  border-radius: 999px;
  color: var(--navy);
  background: rgba(237, 246, 255, .9);
  padding: 3px 8px;
  font-weight: 700;
}

.releaseCountStrip b {
  color: var(--navy);
  font-size: 13px;
  letter-spacing: 0;
}

.discoveryWhy {
  display: block;
  margin-top: 7px;
  padding: 8px 10px;
  border-left: 3px solid rgba(69, 111, 143, .32);
  border-radius: 9px;
  background: #f3f7fa;
  color: #405468;
  font-size: 12px;
  line-height: 1.42;
}

.discoveryWhy b {
  color: #2f4054;
  font-weight: 700;
}

.sowTraceabilityTable {
  width: 100%;
  min-width: 0;
  table-layout: fixed;
}

.sowTraceabilityTable th,
.sowTraceabilityTable td {
  vertical-align: top;
  text-align: left;
  font-size: clamp(10px, .74vw, 11px);
  line-height: 1.35;
  overflow-wrap: anywhere;
  word-break: normal;
  hyphens: auto;
}

.sowTraceabilityTable thead th {
  writing-mode: horizontal-tb;
  transform: none;
  height: auto;
}

.sowTraceabilityTable tbody th {
  width: 86px;
  color: var(--blue);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.sowMatrixTable th:nth-child(1),
.sowMatrixTable td:nth-child(1) {
  width: 8%;
}

.sowMatrixTable th:nth-child(2),
.sowMatrixTable td:nth-child(2) {
  width: 20%;
}

.sowMatrixTable th:nth-child(3),
.sowMatrixTable td:nth-child(3) {
  width: 12%;
}

.sowMatrixTable th:nth-child(4),
.sowMatrixTable td:nth-child(4) {
  width: 20%;
}

.sowMatrixTable th:nth-child(5),
.sowMatrixTable td:nth-child(5) {
  width: 16%;
}

.sowMatrixTable th:nth-child(6),
.sowMatrixTable td:nth-child(6) {
  width: 10%;
}

.sowMatrixTable th:nth-child(7),
.sowMatrixTable td:nth-child(7) {
  width: 14%;
}

.sowScenarioTable th:nth-child(1),
.sowScenarioTable td:nth-child(1) {
  width: 18%;
}

.sowScenarioTable th:nth-child(2),
.sowScenarioTable td:nth-child(2) {
  width: 32%;
}

.sowScenarioTable th:nth-child(3),
.sowScenarioTable td:nth-child(3) {
  width: 30%;
}

.sowScenarioTable th:nth-child(4),
.sowScenarioTable td:nth-child(4) {
  width: 20%;
}



.footer {
  margin-top: 28px;
  border-radius: var(--rad);
  padding: 25px;
  background: linear-gradient(135deg, var(--navy), var(--blue));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  box-shadow: var(--shadow);
}

.footer h2 {
  margin: 0;
  font-size: 28px;
  letter-spacing: -.04em;
}

.footer p {
  margin: 6px 0 0;
  color: #cfeeff;
}

.footer a {
  background: #fff;
  color: var(--navy);
  border-radius: 10px;
  padding: 12px 16px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.workbench {
  padding: 0;
  overflow: hidden;
}

.nextActionDetail {
  position: relative;
  display: grid;
  gap: 8px;
  margin-top: 22px;
  max-width: 760px;
  padding: 16px;
  background: rgba(255, 255, 255, .78);
  border: 1px solid var(--line);
  border-left: 4px solid var(--blue);
  border-radius: var(--r4);
}

.nextActionDetail strong {
  color: var(--navy);
  font-size: 15px;
}

.nextActionDetail p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.nextActionDetail .chip {
  margin-top: 0;
  justify-self: start;
}

.metricCards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border-bottom: 1px solid var(--line);
}

.hiddenSection {
  display: none;
}

.workflowSection {
  padding: 16px;
  border-bottom: 1px solid var(--line);
}

.miniHead {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.miniHead h3 {
  margin: 0;
  color: var(--navy);
  font-size: 18px;
}

.miniHead p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.validationQueuePanel {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 255, 255, .78);
  box-shadow: var(--sm);
}

.validationQueueHeader {
  display: block;
}

.validationQueueHeader span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.validationQueueHeader h3 {
  margin: 4px 0 5px;
  color: var(--navy);
  font-size: clamp(24px, 3vw, 42px);
  letter-spacing: 0;
  line-height: .98;
}

.validationQueueHeader p {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.distributedCollectionPanel {
  display: grid;
  gap: 16px;
  margin-top: 16px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 255, 255, .82);
  box-shadow: var(--sm);
}

.distributedCollectionHeader {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: start;
}

.distributedCollectionHeader span,
.distributedCollectionReview > h4 {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.distributedCollectionHeader h3 {
  margin: 4px 0 5px;
  color: var(--navy);
  font-size: clamp(22px, 2.4vw, 34px);
  line-height: 1.05;
}

.distributedCollectionHeader p,
.distributedCollectionGrid p,
.distributedCollectionEmpty span,
.distributedReviewRow p,
.distributedReviewSummary span {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.distributedCollectionActions {
  justify-content: flex-end;
}

.distributedCollectionGrid,
.distributedReviewGrid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 12px;
}

.distributedCollectionGrid article,
.distributedCollectionEmpty,
.distributedReviewRow,
.distributedReviewSummary {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, .74);
}

.distributedCollectionGrid strong,
.distributedCollectionEmpty strong,
.distributedReviewSummary strong {
  display: block;
  color: var(--navy);
  font-size: 20px;
  line-height: 1.1;
}

.distributedCollectionGrid span {
  display: block;
  margin: 5px 0 8px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.distributedCollectionReview {
  display: grid;
  gap: 10px;
}

.distributedCollectionReview > h4 {
  margin: 0;
}

.distributedReviewRow {
  display: grid;
  gap: 10px;
  border-top: 3px solid var(--blue);
}

.distributedReviewRow[data-tone="caution"] {
  border-top-color: #a77b34;
}

.distributedReviewRow[data-tone="risk"] {
  border-top-color: #b75252;
}

.distributedReviewRow h4 {
  margin: 3px 0 0;
  color: var(--navy);
  font-size: 16px;
  line-height: 1.2;
}

.distributedReviewRow > div > span {
  color: var(--blue);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.distributedReviewRow dl {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
}

.distributedReviewRow dt {
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.distributedReviewRow dd {
  margin: 3px 0 0;
  color: var(--navy);
  font-size: 13px;
  font-weight: 700;
  overflow-wrap: anywhere;
}

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

  .distributedCollectionActions {
    justify-content: flex-start;
  }

  .distributedReviewRow dl {
    grid-template-columns: 1fr;
  }
}

.metricCards > div {
  background: #fff;
  padding: 15px 16px;
}

.metricCards strong {
  display: block;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.metricCards b {
  display: block;
  margin-top: 5px;
  color: var(--navy);
  font-size: 24px;
}

.summaryGrid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.summaryTile {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 10px;
}

.summaryTile strong {
  display: block;
  color: var(--muted);
  font-size: 10.5px;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.summaryTile b {
  display: block;
  margin-top: 2px;
  color: var(--navy);
  font-size: 16px;
  line-height: 1.15;
  overflow-wrap: anywhere;
}


.scoreBadge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 5px 8px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  white-space: nowrap;
}

.scoreBadge {
  background: var(--soft);
  color: var(--navy);
}

.emptyState {
  background: #fff;
  border: 1px dashed var(--line);
  border-radius: 10px;
  padding: 28px;
  color: var(--muted);
  text-align: center;
  font-weight: 700;
}

.launchRequestGrid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.atLaunchExportRow {
  margin-top: 14px;
}

.launchRequestCard {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 16px 18px;
}

.launchRequestCard h4 {
  margin: 0 0 10px;
  color: var(--navy);
  font-size: 14px;
  letter-spacing: -.01em;
}

.launchRequestCard ul {
  margin: 0;
  padding-left: 18px;
}

.launchRequestCard li {
  font-size: 12.5px;
  line-height: 1.45;
  color: #33445e;
  margin-bottom: 6px;
}

.launchRequestCard li:last-child {
  margin-bottom: 0;
}

@media (max-width: 940px) {
  .g2,
  .g4,
  .recGrid {
    grid-template-columns: minmax(0, 1fr);
  }

  .bar {
    grid-template-columns: 1fr;
  }

  .scale {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .metricCards {
    grid-template-columns: 1fr;
  }

  .wideField {
    grid-column: auto;
  }

  .summaryGrid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

}

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

}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: .001ms !important;
    animation-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
}

@media (forced-colors: active) {
  :focus,
  :focus-visible {
    outline: 2px solid ButtonText !important;
    outline-offset: 2px;
  }
}

/* ============================================================
   Workbench shell — structural layer.
   New selectors only (nav brand, demo switch, phase spine, section
   metrics). Overrides of earlier rules live in those base rules;
   do not re-declare base selectors below this line. */
.heroGrid > div {
  display: grid;
  align-content: center;
  grid-template-columns: minmax(0, 1fr);
}

.head > p {
  align-self: center;
}

@media (max-width: 820px) {
  .heroGrid,
  .head {
    grid-template-columns: 1fr;
  }

}

/* ============================================================
   Refinement layer — additive polish only (selection, text-wrap,
   zebra rows, motion, scrollbars, tabular numerals). Reduced-motion
   and forced-colors blocks above still win via !important. */

::selection {
  background: rgba(105, 217, 255, .45);
  color: var(--navy);
}

h1,
.head h2 {
  text-wrap: balance;
}

.head p {
  text-wrap: pretty;
}

/* Quiet motion on interactive surfaces. */
.pill {
  transition: background-color .16s ease, color .16s ease, border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}

.pill:hover {
  transform: translateY(-1px);
}

.pill:active {
  transform: translateY(0);
}

/* Numeric alignment for status figures. */
.stat b {
  font-variant-numeric: tabular-nums;
}


@media (max-width: 940px) {
  .launchRequestGrid { grid-template-columns: minmax(0, 1fr); }
}

/* Visual improvement pass: stronger hierarchy and graphical cues without
   changing the assessment model or adding decorative clutter. */
.hero {
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(105, 217, 255, .10) 1px, transparent 1px),
    linear-gradient(180deg, rgba(105, 217, 255, .08) 1px, transparent 1px);
  background-size: 42px 42px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 22%, #000 86%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 22%, #000 86%, transparent);
  opacity: .35;
}

.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--red) 0 11%, var(--blue) 11% 100%);
}

.hero h1 {
  max-width: 800px;
}

.industryPulse {
  border-color: rgba(105, 217, 255, .42);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .10), rgba(255, 255, 255, .045)),
    linear-gradient(180deg, rgba(23, 103, 232, .12), rgba(7, 24, 63, .10));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .16), 0 18px 40px rgba(0, 0, 0, .14);
}

.section {
  scroll-margin-top: 76px;
}

.launchRequestCard,
.summaryTile {
  box-shadow: 0 1px 2px rgba(7, 24, 63, .05), 0 12px 30px rgba(23, 103, 232, .045);
}

.launchRequestCard {
  position: relative;
  overflow: hidden;
}

.launchRequestCard::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, var(--blue), rgba(105, 217, 255, .62));
}

/* Codex cMAP Design branch overhaul
   A lighter field-workbench treatment for the distributed collection architecture. */
body {
  background:
    radial-gradient(circle at 82% -12%, rgba(107, 132, 150, .16), transparent 36%),
    radial-gradient(circle at 8% 20%, rgba(177, 137, 108, .08), transparent 28%),
    linear-gradient(180deg, #fcfbf8, #f7f8f8 42%, #fff);
}

.wrap {
  min-height: 100vh;
}

.hero {
  overflow: hidden;
  color: var(--ink);
  background:
    linear-gradient(115deg, rgba(255, 255, 255, .96) 0%, rgba(249, 250, 250, .9) 52%, rgba(231, 238, 242, .76) 100%),
    linear-gradient(135deg, rgba(63, 83, 106, .12), rgba(177, 137, 108, .10));
  border-bottom: 1px solid rgba(63, 83, 106, .16);
  padding: clamp(18px, 3vw, 34px);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .42;
  pointer-events: none;
  background:
    linear-gradient(105deg, transparent 0 42%, rgba(69, 111, 143, .10) 42.2% 42.8%, transparent 43% 100%),
    repeating-linear-gradient(105deg, transparent 0 82px, rgba(38, 50, 65, .052) 83px 84px);
}

.top {
  align-items: center;
  margin-bottom: clamp(24px, 4vw, 44px);
}

.brand {
  color: var(--hz1t);
  letter-spacing: .12em;
}

.dot {
  background: var(--hz4);
  box-shadow: 0 0 0 7px rgba(69, 111, 143, .11);
}

.lockup {
  color: var(--ink);
  background: rgba(255, 255, 255, .72);
  border-color: rgba(63, 83, 106, .16);
  box-shadow: 0 12px 30px rgba(34, 42, 52, .07);
}

.lockupText {
  color: var(--ink);
}

.lockupText small {
  color: var(--muted);
}

.cmapMark {
  background:
    linear-gradient(135deg, #f9fbfc, #dde7ec),
    #edf3f6;
  color: var(--navy);
  box-shadow: inset 0 0 0 1px rgba(38, 50, 65, .08);
}

.heroGrid {
  grid-template-columns: minmax(0, 1fr) minmax(320px, 440px);
  gap: clamp(22px, 4vw, 58px);
}

h1 {
  max-width: 14ch;
  font-size: clamp(38px, 6vw, 76px);
  line-height: .98;
  color: var(--ink);
  letter-spacing: -.045em;
}

.heroLead {
  max-width: 58ch;
  color: #263241;
  font-weight: 700;
}

.sub {
  max-width: 72ch;
  color: var(--muted);
  font-size: 15px;
}

.industryPulse {
  border-color: rgba(69, 111, 143, .24);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .82), rgba(243, 247, 249, .76)),
    linear-gradient(180deg, rgba(69, 111, 143, .14), rgba(177, 137, 108, .06));
  box-shadow: 0 18px 40px rgba(34, 42, 52, .07);
}

.industryPulse .industryPulseLabel {
  color: var(--blue);
}

.industryPulseTag {
  border: 1px solid rgba(69, 111, 143, .18);
  background: rgba(69, 111, 143, .12);
  color: var(--hz1t);
}

.industryPulse p {
  color: #405468;
}

.industryPulse .industryPulseUpdated {
  color: #4f5a61;
}

.industryPulseUpdated span {
  color: #456f8f;
}

main {
  width: min(100%, var(--max));
  padding: clamp(22px, 3vw, 34px) clamp(18px, 3.2vw, 34px) 86px;
}

.section {
  scroll-margin-top: 86px;
  margin: 0 0 clamp(22px, 3.8vw, 42px);
}

.head {
  grid-template-columns: minmax(0, 1fr) minmax(240px, .58fr) minmax(124px, 150px);
  padding: clamp(18px, 2.4vw, 26px);
  border: 1px solid rgba(63, 83, 106, .14);
  border-radius: 22px;
  background: rgba(255, 255, 255, .78);
  box-shadow: var(--sm);
}

.head h2 {
  font-size: clamp(24px, 2.4vw, 34px);
  color: var(--ink);
  letter-spacing: -.035em;
}

.sectionEyebrow,
.eyebrow {
  color: var(--hz3t);
}

.summaryTile,
.launchRequestCard,
.metricCards > div {
  border-color: rgba(63, 83, 106, .14);
  border-radius: 20px;
  background: rgba(255, 255, 255, .86);
  box-shadow: 0 14px 34px rgba(34, 42, 52, .055);
}

.miniHead h3 {
  color: var(--ink);
}

.grid.g2,
.assessmentGrid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid.g4,
.metricCards,
.distributedCollectionGrid,
.launchRequestGrid,
.prelaunchSampleGrid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
}

.pill,
.chip,
.tag,
.releaseCountStrip strong {
  border-color: rgba(63, 83, 106, .16);
  border-radius: 999px;
  background: rgba(255, 255, 255, .82);
  color: var(--ink);
}

.pill::before {
  background: var(--hz3);
  box-shadow: 0 0 0 4px rgba(69, 111, 143, .10);
}

.score {
  grid-template-columns: 34px minmax(92px, .48fr) minmax(0, 1fr);
  border-radius: 16px;
  background: rgba(255, 255, 255, .84);
}

.score b {
  border-radius: 999px;
}

.track,
.barTrack,
.progressTrack {
  background: rgba(63, 83, 106, .09);
}

.fill {
  background: linear-gradient(90deg, var(--hz1), var(--blue));
}

.bar {
  grid-template-columns: minmax(160px, 1.05fr) minmax(74px, .32fr) minmax(130px, .8fr) minmax(40px, .2fr);
}

.synthesisCockpitSection {
  scroll-margin-top: 92px;
}

.synthesisCockpitGrid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.synthesisCockpitTile {
  display: grid;
  align-content: start;
  gap: 10px;
  min-width: 0;
  padding: clamp(18px, 2vw, 24px);
  border: 1px solid rgba(63, 83, 106, .14);
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .92), rgba(248, 250, 251, .86)),
    rgba(255, 255, 255, .88);
  box-shadow: 0 14px 34px rgba(34, 42, 52, .055);
}

.synthesisCockpitTile span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 30px;
  border: 1px solid rgba(63, 83, 106, .16);
  border-radius: 999px;
  color: var(--hz1t);
  background: rgba(238, 244, 247, .84);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .05em;
}

.synthesisCockpitTile h3 {
  margin: 0;
}

.synthesisCockpitTile p {
  margin: 0;
  color: var(--muted);
}

.footer {
  border-radius: 24px;
  border: 1px solid rgba(69, 111, 143, .18);
  border-top: 3px solid rgba(69, 111, 143, .36);
  background:
    linear-gradient(120deg, rgba(255, 255, 255, .90), rgba(238, 244, 247, .84)),
    linear-gradient(180deg, rgba(69, 111, 143, .12), rgba(69, 111, 143, .04));
  color: var(--ink);
}

.footer h2 {
  color: var(--ink);
}

.footer p {
  color: var(--muted);
}

.footer a {
  border: 1px solid rgba(69, 111, 143, .18);
  background: rgba(255, 255, 255, .9);
  color: var(--hz1t);
  box-shadow: 0 10px 22px rgba(34, 42, 52, .055);
}

@media (min-width: 981px) and (max-width: 1280px) {
  .heroGrid {
    grid-template-columns: 1fr;
  }

  .head {
    grid-template-columns: 1fr;
  }

  .assessmentGrid,
  .grid.g2 {
    grid-template-columns: 1fr;
  }

  .synthesisCockpitGrid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

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

  .distributedCollectionActions {
    justify-content: flex-start;
  }
}

/* Tablet landscape keeps the desktop rail, but the distributed-collection
   action shelf must move below its message before it compresses the headline. */
@media (min-width: 1181px) and (max-width: 1320px) {
  .distributedCollectionHeader {
    grid-template-columns: 1fr;
  }

  .distributedCollectionActions {
    justify-content: flex-start;
  }
}

@media (max-width: 980px) {
  .heroGrid,
  .assessmentGrid,
  .grid.g2 {
    grid-template-columns: 1fr;
  }

  h1 {
    max-width: 16ch;
    font-size: clamp(34px, 9vw, 58px);
  }

  .head {
    grid-template-columns: 1fr;
  }

  .synthesisCockpitGrid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .grid.g4,
  .metricCards,
  .distributedCollectionGrid,
  .launchRequestGrid,
  .prelaunchSampleGrid {
    grid-template-columns: 1fr;
  }

  .bar {
    grid-template-columns: 1fr;
  }

  .domainBar > span,
  .bar small {
    text-align: left;
    white-space: normal;
  }

  .score {
    grid-template-columns: 32px minmax(0, 1fr);
  }

  .score span {
    grid-column: 2;
  }
}

@media (max-width: 620px) {
  .evidenceScaleCard {
    grid-template-rows: auto auto;
  }

  .evidenceScaleCard .scale {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: none;
    height: auto;
    align-content: start;
  }

  .evidenceScaleCard .score {
    min-height: 96px;
  }

  .evidenceScaleCard .score:last-child {
    grid-column: 1 / -1;
  }

  .distributedCollectionGrid {
    gap: 10px;
  }

  .distributedCollectionGrid article {
    padding: 11px 13px;
  }

  .distributedCollectionGrid strong {
    font-size: 18px;
  }

  .distributedCollectionGrid p {
    font-size: 13px;
  }

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

  .synthesisCockpitTile {
    grid-template-columns: 32px minmax(0, 1fr);
    align-items: start;
    gap: 8px;
    padding: 12px;
    border-radius: 16px;
  }

  .synthesisCockpitTile span {
    grid-column: 1;
    grid-row: 1;
    width: 32px;
    height: 27px;
  }

  .synthesisCockpitTile h3 {
    grid-column: 2;
    grid-row: 1;
    align-self: center;
    font-size: 15px;
    line-height: 1.16;
  }

  .synthesisCockpitTile p {
    grid-column: 1 / -1;
    font-size: 12px;
    line-height: 1.36;
  }

}

@media (max-width: 390px) {
  .synthesisCockpitGrid,
  .evidenceScaleCard .scale {
    grid-template-columns: 1fr;
  }

  .evidenceScaleCard .score:last-child {
    grid-column: auto;
  }
}

/* Product-family first-read treatment: posture, boundary, and release action. */
.synthesisCockpitSection {
  border-top: 3px solid var(--blue);
  background: var(--card);
  box-shadow: none;
}

.cockpitDecisionSurface {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  margin: 0 0 16px;
  padding: 16px;
  border-left: 3px solid var(--blue);
  background: var(--soft);
}

.cockpitDecisionSurface h3 {
  margin: 0;
  color: var(--navy);
  font-size: 18px;
  line-height: 1.2;
}

.cockpitDecisionSurface p {
  max-width: 72ch;
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.42;
}

.cockpitDecisionSignal {
  min-width: 164px;
  padding: 10px 12px;
  border: 1px solid rgba(69, 111, 143, .24);
  background: var(--card);
}

.cockpitDecisionSignal strong,
.cockpitDecisionSignal span {
  display: block;
}

.cockpitDecisionSignal strong {
  color: var(--navy);
  font-size: 14px;
}

.cockpitDecisionSignal span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
}

.synthesisCockpitGrid {
  gap: 10px;
}

.synthesisCockpitTile {
  border-radius: 10px;
  box-shadow: none;
}

@media (max-width: 620px) {
  .cockpitDecisionSurface {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .cockpitDecisionSignal {
    justify-self: start;
  }
}

.track { background: #e8eeef; }
.domainBar[data-domain-tone="blocked"] .fill { background: var(--r0); }
.domainBar[data-domain-tone="weak"] .fill { background: var(--r1); }
.domainBar[data-domain-tone="developing"] .fill { background: var(--r2); }
.domainBar[data-domain-tone="strong"] .fill { background: linear-gradient(90deg, var(--r3), var(--r4)); }

.workflowLocationNote {
  align-self: center;
  color: var(--muted);
  font-size: 9.5px;
  font-weight: 700;
  line-height: 1.35;
}

.section {
  scroll-margin-top: 86px;
}

/* White-ledger visual system.
   Reading copy uses the workbench sans face, metadata alone uses uppercase,
   and editable values use a blue monospaced entry face on ruled paper. */
body {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.5;
}

body :is(h1, h2, h3, h4, h5, h6, button, label, legend, th) {
  letter-spacing: normal !important;
  text-transform: none !important;
}

body :is(h1, h2, h3, h4, h5, h6, button, label, legend, th) { font-weight: 700 !important; }
body :is(strong, b) { font-weight: 700; }

body :is(.eyebrow, .sectionEyebrow, .brand, .lockupText small) {
  font-weight: 700 !important;
  letter-spacing: .1em !important;
  text-transform: uppercase !important;
}

.wrap { background: rgba(255, 255, 255, .68); }

.hero {
  color: var(--ink);
  background: rgba(255, 255, 255, .96);
  border-bottom: 1px solid var(--line);
  padding-bottom: 30px;
}

.brand { color: var(--navy); }
.dot {
  background: var(--cyan);
  box-shadow: 0 0 0 5px rgba(180, 138, 73, .12);
}

.lockup {
  border-color: var(--line);
  border-radius: 7px;
  background: #fff;
  box-shadow: var(--sm);
  backdrop-filter: none;
}

.cmapMark {
  border: 1px solid #ccd3da;
  border-radius: 6px;
  background: #f1f3f5;
  color: var(--navy);
  box-shadow: none;
}

.lockupText { color: var(--ink); }
.lockupText small { color: var(--muted); }
.eyebrow,
.sectionEyebrow { color: var(--blue); }
.heroLead,
.sub { color: #4b5864; }

.sourceBlock,
.nextActionDetail { background: #f7f8f6; }

/* Paper hierarchy: clay identifies major title bands, gray carries supporting
   explanation, white holds reading content, and ivory/blue remains exclusive
   to editable values. */
.section > .head {
  align-items: center;
  border: 1px solid var(--clay-line);
  border-left: 4px solid var(--clay);
  border-radius: 8px;
  background: linear-gradient(90deg, var(--clay-soft), rgba(255, 255, 255, .82) 64%, rgba(255, 255, 255, .48));
  padding: 14px 16px;
}

.section > .head h2 {
  color: var(--navy);
  font-size: clamp(21px, 2.15vw, 27px);
  line-height: 1.16;
}

.section > .head .sectionEyebrow { color: #795440; }

.section > .head > p {
  color: #65717a;
  font-size: 13.5px;
  line-height: 1.48;
}

:is(.miniHead, .validationQueueHeader, .distributedCollectionHeader) {
  border-bottom: 1px solid var(--line);
  padding-bottom: 12px;
}

:is(.miniHead, .validationQueueHeader, .distributedCollectionHeader)
  :is(h2, h3, h4) {
  color: var(--navy);
}

:is(.miniHead, .validationQueueHeader, .distributedCollectionHeader)
  :is(p, small) {
  color: var(--muted);
  font-weight: 400;
}

@media (max-width: 620px) {
  .section > .head {
    align-items: start;
    padding: 12px 13px;
  }
}

@media (min-width: 821px) {
  .section > .head {
    grid-template-columns: minmax(0, 1.05fr) minmax(240px, .65fr) minmax(124px, 150px);
  }
}

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

/* Optional National Security presentation themes. These original, logo-free
   scenes are decorative only and never alter the assessment model. */
body[data-natsec-theme] {
  --natsec-image: none;
  --natsec-position: center;
}

body[data-natsec-theme="joint"],
body[data-natsec-theme="fourth-estate"] { --natsec-image: url("../assets/natsec/joint.jpg"); }
body[data-natsec-theme="army"] { --natsec-image: url("../assets/natsec/army.jpg"); }
body[data-natsec-theme="navy"] { --natsec-image: url("../assets/natsec/navy.jpg"); }
body[data-natsec-theme="marine-corps"] { --natsec-image: url("../assets/natsec/marine-corps.jpg"); }
body[data-natsec-theme="air-force"] {
  --natsec-image: url("../assets/natsec/air-force.jpg");
  --natsec-position: right 35%;
}
body[data-natsec-theme="space-force"] { --natsec-image: url("../assets/natsec/space-force.jpg"); }
body[data-natsec-theme="coast-guard"] { --natsec-image: url("../assets/natsec/coast-guard.jpg"); }
body[data-natsec-theme="intelligence-community"] { --natsec-image: url("../assets/natsec/intelligence-community.jpg"); }

body[data-natsec-theme]:not([data-natsec-theme="none"]) .hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(90deg, rgba(255, 255, 255, .84) 0%, rgba(255, 255, 255, .76) 34%, rgba(255, 255, 255, .58) 70%, rgba(255, 255, 255, .64) 100%),
    linear-gradient(180deg, rgba(255, 255, 255, .16), rgba(255, 255, 255, .52)),
    var(--natsec-image);
  background-position: center, center, var(--natsec-position);
  background-repeat: no-repeat;
  background-size: cover;
  filter: saturate(.72) contrast(.96);
  opacity: 1;
  pointer-events: none;
}

body[data-natsec-theme]:not([data-natsec-theme="none"]) .hero {
  padding-bottom: 22px;
}

body[data-natsec-theme]:not([data-natsec-theme="none"]) .hero .top {
  margin-bottom: 16px;
}

body[data-natsec-theme]:not([data-natsec-theme="none"]) .section > .head:is(
  :has(#engagementSetupTitle),
  :has(#synthesisTitle),
  :has(#deliverTitle)
) {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

body[data-natsec-theme]:not([data-natsec-theme="none"]) .section > .head:is(
  :has(#engagementSetupTitle),
  :has(#synthesisTitle),
  :has(#deliverTitle)
)::after {
  content: "";
  position: absolute;
  z-index: 0;
  inset: 0 0 0 auto;
  width: min(42%, 520px);
  background-image:
    linear-gradient(90deg, rgba(251, 248, 244, 1), rgba(251, 248, 244, .76) 48%, rgba(251, 248, 244, .9)),
    var(--natsec-image);
  background-position: center;
  background-size: cover;
  filter: grayscale(.42) saturate(.48);
  opacity: .28;
  pointer-events: none;
}

body[data-natsec-theme]:not([data-natsec-theme="none"]) .section > .head:is(
  :has(#engagementSetupTitle),
  :has(#synthesisTitle),
  :has(#deliverTitle)
) > * {
  position: relative;
  z-index: 1;
}

/* Compact ledger rhythm: reduce repeated chrome while preserving content and
   touch targets inside each work surface. */
main { padding-top: 22px; }
.section { margin-bottom: clamp(16px, 2.6vw, 28px); }
.section > .head {
  margin-bottom: 10px;
  padding: 12px 15px;
}

@media (max-width: 620px) {
  main { padding-top: 16px; }
  .section { margin-bottom: 16px; }
  .section > .head { margin-bottom: 8px; }

  body[data-natsec-theme]:not([data-natsec-theme="none"]) .section > .head:is(
    :has(#engagementSetupTitle),
    :has(#synthesisTitle),
    :has(#deliverTitle)
  )::after { display: none; }
}

@media print {
  body[data-natsec-theme] .hero::before,
  body[data-natsec-theme] .section > .head::after { display: none; }
}

/* Import safety review: all supported imports pause here before state changes. */
.importPreviewDialog {
  width: min(720px, calc(100vw - 28px));
  max-height: min(86vh, 820px);
  margin: auto;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0;
  color: var(--ink);
  background: #fff;
  box-shadow: 0 24px 80px rgba(22, 56, 77, .24);
}

.importPreviewDialog::backdrop {
  background: rgba(22, 56, 77, .44);
  backdrop-filter: blur(3px);
}

.importPreviewPanel {
  display: grid;
  gap: 0;
  max-height: inherit;
  overflow: auto;
}

.importPreviewHead {
  position: sticky;
  z-index: 1;
  top: 0;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
  border-bottom: 1px solid var(--line);
  padding: 20px 22px 16px;
  background: rgba(255, 255, 255, .97);
}

.importPreviewHead .eyebrow { margin: 0 0 5px; }
.importPreviewHead h2 {
  margin: 0;
  color: var(--navy);
  font-size: clamp(22px, 4vw, 31px);
  line-height: 1.08;
  letter-spacing: -.025em;
}

.importPreviewSummary {
  margin: 0;
  border-bottom: 1px solid var(--line);
  padding: 15px 22px;
  color: var(--muted);
  line-height: 1.55;
}

.importPreviewSection { padding: 16px 22px 4px; }
.importPreviewSection h3 {
  margin: 0 0 9px;
  color: var(--navy);
  font-size: 14px;
}
.importPreviewSection ul {
  display: grid;
  gap: 7px;
  margin: 0;
  padding-left: 19px;
}
.importPreviewSection li {
  color: var(--ink);
  font-size: 12px;
  line-height: 1.45;
}
.importPreviewSection.caution {
  margin: 12px 22px 0;
  border: 1px solid #eadfc7;
  border-left: 4px solid var(--attention);
  border-radius: 8px;
  padding: 13px 15px 9px;
  background: #fffaf0;
}
.importPreviewSection.caution li { color: #5e4a28; }

.importPreviewActions {
  position: sticky;
  bottom: 0;
  display: flex;
  justify-content: flex-end;
  gap: 9px;
  margin-top: 18px;
  border-top: 1px solid var(--line);
  padding: 14px 22px;
  background: rgba(255, 255, 255, .97);
}

@media (max-width: 620px) {
  .importPreviewDialog { width: calc(100vw - 16px); max-height: 92vh; }
  .importPreviewHead { padding: 16px; }
  .importPreviewSummary,
  .importPreviewSection { padding-left: 16px; padding-right: 16px; }
  .importPreviewSection.caution { margin-left: 16px; margin-right: 16px; }
  .importPreviewActions { align-items: stretch; flex-direction: column; padding: 12px 16px; }
  .importPreviewActions .actionBtn { width: 100%; }
}

@media print {
  .importPreviewDialog { display: none; }
}

/* Build v28: compact, image-forward engagement hero. The selected National
   Security scene remains decorative; translucent ledger surfaces preserve the
   workbench hierarchy and contrast without covering most of the photograph. */
body[data-natsec-theme]:not([data-natsec-theme="none"]) .hero::before {
  background-image:
    linear-gradient(90deg, rgba(255, 255, 255, .70) 0%, rgba(255, 255, 255, .57) 34%, rgba(255, 255, 255, .36) 70%, rgba(255, 255, 255, .46) 100%),
    linear-gradient(180deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, .25)),
    var(--natsec-image);
  filter: saturate(.86) contrast(1.01);
}

body[data-natsec-theme]:not([data-natsec-theme="none"]) .hero {
  padding-top: clamp(14px, 2vw, 22px);
  padding-bottom: 16px;
}

body[data-natsec-theme]:not([data-natsec-theme="none"]) .hero .top {
  margin-bottom: 10px;
}

body[data-natsec-theme]:not([data-natsec-theme="none"]) .hero .lockup {
  background: rgba(255, 255, 255, .72);
  -webkit-backdrop-filter: blur(7px) saturate(1.08);
  backdrop-filter: blur(7px) saturate(1.08);
}

@media (max-width: 760px) {
  body[data-natsec-theme]:not([data-natsec-theme="none"]) .hero {
    padding-bottom: 14px;
  }
}

/* Build v29: let the restrained grayscale branch artwork carry the hero.
   Only a light contrast veil remains; foreground workpapers stay translucent. */
body[data-natsec-theme]:not([data-natsec-theme="none"]) .hero {
  background: transparent;
}

body[data-natsec-theme]:not([data-natsec-theme="none"]) .hero::before {
  background-image:
    linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, .06) 38%, rgba(255, 255, 255, .16) 100%),
    var(--natsec-image);
  background-position: center, var(--natsec-position);
  background-size: cover;
  filter: saturate(.86) contrast(1.02);
  -webkit-mask-image: none;
  mask-image: none;
}

body[data-natsec-theme]:not([data-natsec-theme="none"]) .hero .lockup {
  background: rgba(255, 255, 255, .56);
}

/* Carry a small, subdued crop of the selected branch image through every
   major workbench banner. Text remains above the decorative layer. */
body[data-natsec-theme]:not([data-natsec-theme="none"]) .section > .head {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: rgba(251, 248, 244, .84);
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
}

body[data-natsec-theme]:not([data-natsec-theme="none"]) .section > .head::after,
body[data-natsec-theme]:not([data-natsec-theme="none"]) .section > .head:is(
  :has(#engagementSetupTitle),
  :has(#synthesisTitle),
  :has(#deliverTitle)
)::after {
  content: "";
  position: absolute;
  z-index: 0;
  inset: 0 0 0 auto;
  width: min(38%, 470px);
  background-image:
    linear-gradient(90deg, rgba(251, 248, 244, 1), rgba(251, 248, 244, .36) 42%, rgba(251, 248, 244, .58)),
    var(--natsec-image);
  background-position: center, var(--natsec-position);
  background-size: cover;
  filter: grayscale(.26) saturate(.72) contrast(.98);
  opacity: .44;
  pointer-events: none;
}

body[data-natsec-theme]:not([data-natsec-theme="none"]) .section > .head > * {
  position: relative;
  z-index: 1;
}

@media (max-width: 620px) {
  body[data-natsec-theme]:not([data-natsec-theme="none"]) .section > .head::after,
  body[data-natsec-theme]:not([data-natsec-theme="none"]) .section > .head:is(
    :has(#engagementSetupTitle),
    :has(#synthesisTitle),
    :has(#deliverTitle)
  )::after {
    display: block;
    width: 48%;
    opacity: .24;
  }
}

body[data-natsec-theme]:not([data-natsec-theme="none"]) .hero .top {
  justify-content: flex-start;
  margin-bottom: 4px;
}

body[data-natsec-theme] {
  --natsec-banner-position: var(--natsec-position);
  --natsec-banner-size: cover;
}

body[data-natsec-theme="air-force"] {
  --natsec-banner-position: 47% 26%;
  --natsec-banner-size: auto 225%;
}

body[data-natsec-theme]:not([data-natsec-theme="none"]) .section > .head::after,
body[data-natsec-theme]:not([data-natsec-theme="none"]) .section > .head:is(
  :has(#engagementSetupTitle),
  :has(#synthesisTitle),
  :has(#deliverTitle)
)::after {
  background-position: center, var(--natsec-banner-position);
  background-size: auto, var(--natsec-banner-size);
}
