:root {
  color-scheme: light;
  --canvas: #edf0f1;
  --surface: #ffffff;
  --surface-muted: #f5f7f8;
  --ink: #14191d;
  --muted: #59646c;
  --faint: #77828a;
  --line: #d3d9dd;
  --line-strong: #aeb8bf;
  --charcoal: #111a21;
  --charcoal-soft: #202b33;
  --blue: #1d67a1;
  --blue-dark: #154d79;
  --blue-soft: #e7f1f8;
  --red: #c6293d;
  --red-soft: #fbe9ec;
  --green: #147853;
  --green-soft: #e4f3ec;
  --amber: #986000;
  --amber-soft: #fff2d8;
  --font-display: "Archivo", ui-sans-serif, system-ui, sans-serif;
  --font-body: "IBM Plex Sans", ui-sans-serif, system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;
  --shadow: 0 14px 38px rgba(21, 31, 38, 0.1);
}

* {
  box-sizing: border-box;
  min-width: 0;
  letter-spacing: 0;
}

html {
  background: var(--canvas);
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
}

button,
input,
textarea {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 3px solid rgba(29, 103, 161, 0.3);
  outline-offset: 2px;
}

a {
  color: var(--blue-dark);
}

p,
li,
dd,
small,
code,
span,
h1,
h2,
h3 {
  overflow-wrap: anywhere;
}

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 100;
  transform: translateY(-160%);
  border-radius: 4px;
  padding: 10px 14px;
  background: var(--charcoal);
  color: #fff;
}

.skip-link:focus {
  transform: translateY(0);
}

.app-shell {
  width: min(1200px, calc(100% - 40px));
  margin: 0 auto;
  padding: 0 0 64px;
}

.product-header {
  display: flex;
  min-height: 68px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid var(--line-strong);
}

.product-wordmark {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 800;
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
}

.product-context {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 0;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.76rem;
  text-transform: uppercase;
}

.product-context strong {
  color: var(--ink);
}

.product-header-meta {
  display: flex;
  align-items: center;
  gap: 14px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
  align-items: end;
  padding: 28px 0 22px;
}

.hero-compact {
  grid-template-columns: minmax(0, 1fr) minmax(250px, 320px);
  padding-top: 30px;
}

.hero-copy-block {
  max-width: 920px;
}

.hero h1,
.panel h2,
.outcome-band h2 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
}

.hero h1 {
  max-width: 960px;
  font-size: 2.6rem;
  line-height: 1.08;
}

.hero-compact h1 {
  font-size: 2.7rem;
}

.hero-copy {
  max-width: 720px;
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.6;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--blue-dark);
  font-family: var(--font-mono);
  font-size: 0.73rem;
  font-weight: 600;
  text-transform: uppercase;
}

.workspace-status {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  border-left: 4px solid var(--red);
  padding: 6px 0 6px 18px;
}

.workspace-status div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
}

.registry-panel {
  overflow: hidden;
}

.registry-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 22px 0;
  border: 1px solid var(--line);
}

.registry-summary > div {
  min-width: 0;
  padding: 14px 16px;
  border-right: 1px solid var(--line);
}

.registry-summary > div:last-child {
  border-right: 0;
}

.registry-summary dt,
.registry-summary dd {
  margin: 0;
}

.registry-summary dt {
  color: var(--muted);
  font-size: 0.76rem;
  text-transform: uppercase;
}

.registry-summary dd {
  margin-top: 5px;
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 800;
}

.registry-table {
  border: 1px solid var(--line);
}

.registry-row {
  display: grid;
  grid-template-columns: minmax(190px, 1.25fr) minmax(120px, 0.65fr) minmax(240px, 1.5fr) minmax(150px, 0.8fr);
  gap: 16px;
  align-items: center;
  min-height: 78px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
}

.registry-row:last-child {
  border-bottom: 0;
}

.registry-row > div {
  display: grid;
  min-width: 0;
  gap: 4px;
}

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

.registry-heading {
  min-height: 42px;
  background: var(--surface-muted);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
}

.registry-state {
  width: fit-content;
  border: 1px solid var(--line-strong);
  padding: 5px 8px;
  color: var(--charcoal-soft);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
}

.registry-state-secured,
.registry-state-delivered {
  border-color: var(--blue);
  background: var(--blue-soft);
  color: var(--blue-dark);
}

.candidate-evidence p {
  margin: 6px 0 10px;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.45;
}

.candidate-source-list {
  display: grid;
  gap: 8px;
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
}

.candidate-source-list li {
  display: grid;
  gap: 2px;
}

.agent-timeline {
  margin-bottom: 18px;
  border: 1px solid var(--line-strong);
  background: var(--surface);
}

.agent-timeline > summary {
  display: flex;
  min-height: 52px;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 16px;
  cursor: pointer;
  list-style: none;
}

.agent-timeline > summary::-webkit-details-marker {
  display: none;
}

.agent-timeline > summary > span:first-child {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

.agent-pulse {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 0 5px var(--blue-soft);
}

.agent-latest {
  border-top: 1px solid var(--line);
  padding: 10px 16px;
  background: var(--surface-muted);
  color: var(--charcoal-soft);
}

.agent-event-list {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0 16px 14px;
  list-style: none;
}

.agent-event-list > li {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.agent-event-list > li:last-child {
  border-bottom: 0;
}

.agent-event-index {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border: 1px solid var(--line-strong);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.68rem;
}

.agent-event-list details summary {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
}

.agent-event-list time {
  flex: 0 0 auto;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.72rem;
}

.agent-event-list p {
  margin: 8px 0;
  color: var(--muted);
}


.workspace-status span {
  color: var(--faint);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
}

.workspace-status strong {
  font-size: 0.9rem;
}

.journey {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: var(--surface);
  overflow: hidden;
}

.journey-step {
  display: flex;
  min-height: 70px;
  align-items: center;
  gap: 12px;
  border-right: 1px solid var(--line);
  padding: 12px 16px;
  color: var(--faint);
}

button.journey-step {
  width: 100%;
  border-top: 0;
  border-bottom: 0;
  border-left: 0;
  background: transparent;
  font: inherit;
  text-align: left;
}

button.journey-step.is-reachable {
  cursor: pointer;
}

button.journey-step.is-reachable:hover {
  box-shadow: inset 0 -4px 0 var(--blue);
  color: var(--ink);
}

button.journey-step.is-reachable:focus-visible {
  position: relative;
  z-index: 1;
  outline: 3px solid rgba(29, 103, 161, 0.3);
  outline-offset: -3px;
}

.journey-step:last-child {
  border-right: 0;
}

.journey-step.is-current {
  box-shadow: inset 0 -4px 0 var(--blue);
  color: var(--ink);
}

.journey-step.is-complete {
  background: var(--green-soft);
  color: var(--green);
}

.journey-step.is-workflow-current {
  color: var(--ink);
}

.journey-number {
  display: grid;
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-family: var(--font-mono);
  font-size: 0.75rem;
}

.journey-step strong,
.journey-step small {
  display: block;
}

.journey-step strong {
  font-family: var(--font-display);
  font-size: 0.95rem;
}

.journey-step small {
  margin-top: 3px;
  font-size: 0.78rem;
}

.banner {
  display: flex;
  min-height: 50px;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  border: 1px solid var(--line);
  border-left-width: 4px;
  border-radius: 4px;
  padding: 11px 14px;
  background: var(--surface);
  color: var(--muted);
}

.banner.is-loading {
  border-left-color: var(--blue);
}

.banner.is-error {
  border-left-color: var(--red);
  background: var(--red-soft);
  color: #7b1726;
}

.banner.is-success {
  border-left-color: var(--green);
  background: var(--green-soft);
  color: #0b5d3e;
}

.spinner {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  border: 2px solid #b9d2e5;
  border-top-color: var(--blue);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.workspace {
  margin-top: 22px;
}

.view-stack {
  display: grid;
  gap: 26px;
}

.panel {
  padding: 4px 0;
}

.intake-form,
.recommendation-panel,
.alternatives,
.terminal-panel,
.selection-panel,
.payment-panel,
.deployment-summary,
.speed-receipt,
.unavailable-panel,
.loading-skeleton {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 28px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.panel-heading,
.recommendation-heading,
.structure-result-heading,
.payment-heading,
.deployment-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 22px;
}

.panel-heading h2,
.recommendation-heading h2,
.payment-heading h2,
.deployment-heading h2 {
  font-size: 1.75rem;
  line-height: 1.15;
}

.panel-heading p,
.payment-heading p,
.deployment-heading p {
  max-width: 740px;
}

.demo-utilities,
.outcome-actions,
.secondary-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.button {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 4px;
  padding: 10px 16px;
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}

.button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.button-primary {
  border-color: var(--blue-dark);
  background: var(--blue);
  color: #fff;
  box-shadow: 0 5px 12px rgba(29, 103, 161, 0.2);
}

.button-primary:hover:not(:disabled) {
  background: var(--blue-dark);
}

.button-secondary {
  border-color: var(--line-strong);
  background: var(--surface);
  color: var(--ink);
}

.button-secondary:hover {
  border-color: var(--blue);
  color: var(--blue-dark);
}

.button-quiet {
  border-color: var(--line);
  background: var(--surface-muted);
  color: var(--charcoal-soft);
}

.button-large {
  min-height: 50px;
  padding: 13px 20px;
}

.button-small {
  min-height: 34px;
  padding: 7px 11px;
  font-size: 0.82rem;
}

.text-button {
  border: 0;
  padding: 6px;
  background: transparent;
  color: var(--blue-dark);
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
}

.mode-switch {
  display: inline-grid;
  grid-template-columns: repeat(2, 1fr);
  margin-bottom: 24px;
  border: 1px solid var(--line-strong);
  border-radius: 5px;
  padding: 3px;
  background: var(--surface-muted);
}

.mode-switch button {
  min-width: 150px;
  border: 0;
  border-radius: 3px;
  padding: 9px 14px;
  background: transparent;
  color: var(--muted);
  font-weight: 700;
  cursor: pointer;
}

.mode-switch button.is-active {
  background: var(--charcoal);
  color: #fff;
}

.intake-section {
  border-top: 1px solid var(--line);
  padding: 24px 0;
}

.intake-problem {
  border-top: 0;
  padding-top: 4px;
}

.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 14px;
}

.section-heading > div {
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-heading h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.08rem;
}

.section-number {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 4px;
  background: var(--charcoal);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 0.72rem;
}

.boundary-label,
.optional-label {
  border-radius: 99px;
  padding: 5px 9px;
  background: var(--blue-soft);
  color: var(--blue-dark);
  font-size: 0.72rem;
  font-weight: 700;
}

.optional-label {
  background: var(--surface-muted);
  color: var(--muted);
}

.field {
  display: grid;
  align-content: start;
  gap: 7px;
}

.field > span {
  color: var(--charcoal-soft);
  font-size: 0.82rem;
  font-weight: 700;
}

.field small {
  color: var(--faint);
  font-size: 0.78rem;
  line-height: 1.4;
}

.field input,
.field textarea {
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  padding: 11px 12px;
  background: var(--surface);
  color: var(--ink);
  line-height: 1.45;
}

.field textarea {
  min-height: 150px;
  resize: vertical;
}

.field input:hover,
.field textarea:hover {
  border-color: #8c9ba4;
}

.field input:focus,
.field textarea:focus {
  border-color: var(--blue);
}

.required-mark {
  margin-left: 5px;
  color: var(--red);
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
}

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

.file-control {
  display: grid;
  gap: 5px;
  border: 1px dashed var(--line-strong);
  border-radius: 5px;
  padding: 16px;
  background: var(--surface-muted);
  cursor: pointer;
}

.file-control:hover {
  border-color: var(--blue);
  background: var(--blue-soft);
}

.file-control-title {
  color: var(--ink);
  font-weight: 700;
}

.file-control > span:not(.file-control-title) {
  color: var(--muted);
  font-size: 0.82rem;
}

.file-control input {
  width: 100%;
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.8rem;
}

.evidence-list {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.evidence-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 11px;
  align-items: center;
  border-top: 1px solid var(--line);
  padding-top: 10px;
}

.evidence-item strong,
.evidence-item small {
  display: block;
}

.evidence-item small {
  margin-top: 2px;
  color: var(--faint);
}

.file-kind {
  min-width: 48px;
  border-radius: 3px;
  padding: 6px 7px;
  background: var(--charcoal);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  text-align: center;
}

.quiet-note {
  margin: 10px 0 0;
  color: var(--faint);
  font-size: 0.83rem;
}

.intake-explainer {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  border-left: 4px solid var(--blue);
  padding: 12px 14px;
  background: var(--blue-soft);
  color: var(--muted);
}

.intake-explainer strong {
  color: var(--blue-dark);
}

.structure-result {
  border-top: 1px solid var(--line);
  padding: 24px 0 4px;
}

.structure-result-heading {
  margin-bottom: 14px;
}

.structure-result h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.25rem;
}

.source-stack {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 7px;
}

.source-badge,
.confidence,
.response-count,
.payment-state,
.secured-badge {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  border: 1px solid transparent;
  border-radius: 99px;
  padding: 5px 9px;
  font-size: 0.72rem;
  font-weight: 700;
}

.source-badge.is-live,
.source-badge.is-api {
  border-color: #a8d2bf;
  background: var(--green-soft);
  color: var(--green);
}

.source-badge.is-fixture {
  border-color: #e2c98e;
  background: var(--amber-soft);
  color: var(--amber);
}

.confidence {
  border-color: var(--line);
  background: var(--surface-muted);
  color: var(--muted);
}

.missing-strip,
.complete-strip,
.warning-strip {
  display: grid;
  grid-template-columns: minmax(170px, auto) minmax(0, 1fr);
  gap: 14px;
  border-left: 4px solid var(--amber);
  padding: 12px 14px;
  background: var(--amber-soft);
  color: #6a4400;
}

.complete-strip {
  border-left-color: var(--green);
  background: var(--green-soft);
  color: #0b5d3e;
}

.warning-strip {
  margin: 16px 0;
}

.historical-view-notice {
  margin-top: 18px;
}

.manual-fields {
  margin-top: 20px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.manual-fields > summary,
.alternatives > summary,
.developer-utility > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 0;
  cursor: pointer;
  list-style: none;
}

.manual-fields > summary::-webkit-details-marker,
.alternatives > summary::-webkit-details-marker,
.developer-utility > summary::-webkit-details-marker {
  display: none;
}

.manual-fields summary strong,
.manual-fields summary small,
.alternatives summary strong,
.alternatives summary small {
  display: block;
}

.manual-fields summary small,
.alternatives summary small {
  margin-top: 3px;
  color: var(--faint);
}

.summary-status {
  flex: 0 0 auto;
  color: var(--blue-dark);
  font-size: 0.78rem;
  font-weight: 700;
  white-space: nowrap;
}

.manual-fields-body {
  padding: 4px 0 24px;
}

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

.priority-fieldset {
  margin: 24px 0 0;
  border: 0;
  padding: 0;
}

.priority-fieldset legend {
  margin-bottom: 10px;
  color: var(--charcoal-soft);
  font-size: 0.82rem;
  font-weight: 700;
}

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

.priority-option {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 4px 8px;
  align-items: center;
  min-height: 82px;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 10px;
  background: var(--surface);
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}

.priority-option small {
  grid-column: 2;
  color: var(--faint);
  line-height: 1.25;
}

.priority-option.is-selected {
  border-color: var(--blue);
  background: var(--blue-soft);
  box-shadow: inset 0 0 0 1px var(--blue);
}

.priority-radio {
  width: 14px;
  height: 14px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: #fff;
}

.priority-option.is-selected .priority-radio {
  border: 4px solid var(--blue);
}

.primary-action-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 24px;
  border-top: 1px solid var(--line);
  padding-top: 20px;
}

.primary-action-row > div:first-child {
  display: grid;
  gap: 4px;
}

.primary-action-row span {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.45;
}

.action-band {
  margin-top: 0;
  border: 1px solid var(--line);
  border-left: 5px solid var(--blue);
  border-radius: 5px;
  padding: 20px 22px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.need-report {
  --surface: #ffffff;
  --surface-muted: #f5f7f8;
  --ink: #14191d;
  --muted: #59646c;
  --faint: #77828a;
  --line: #d3d9dd;
  --line-strong: #aeb8bf;
  --charcoal: #111a21;
  --charcoal-soft: #202b33;
  --blue: #1d67a1;
  --blue-dark: #154d79;
  --blue-soft: #e7f1f8;
  --red: #c6293d;
  --red-soft: #fbe9ec;
  --green: #147853;
  --green-soft: #e4f3ec;
  --amber: #986000;
  --amber-soft: #fff2d8;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 3px;
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow);
}

.report-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid var(--line);
  padding: 18px 28px;
  background: var(--surface-muted);
}

.report-heading > div:first-child {
  display: flex;
  align-items: baseline;
  gap: 14px;
}

.report-heading p {
  margin: 0;
  color: var(--faint);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
}

.report-wordmark {
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 800;
  text-transform: uppercase;
}

.report-title {
  padding: 32px 28px 24px;
}

.report-title h2 {
  max-width: 900px;
  margin: 0;
  font-family: var(--font-display);
  font-size: 2rem;
  line-height: 1.12;
}

.report-title > p:last-child {
  max-width: 860px;
  margin: 13px 0 0;
  color: var(--muted);
  line-height: 1.6;
}

body[data-theme="buyer"] .need-report .need-profile {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  box-shadow: none;
}

body[data-theme="buyer"] .need-report .eyebrow,
body[data-theme="buyer"] .need-report a {
  color: var(--blue-dark);
}

body[data-theme="buyer"] .need-report .tag-list span {
  background: var(--surface-muted);
}

body[data-theme="buyer"] .need-report .source-badge.is-live,
body[data-theme="buyer"] .need-report .source-badge.is-api {
  border-color: #a8d2bf;
  background: var(--green-soft);
  color: var(--green);
}

body[data-theme="buyer"] .need-report .source-badge.is-fixture {
  border-color: #e2c98e;
  background: var(--amber-soft);
  color: var(--amber);
}

body[data-theme="buyer"] .need-report .confidence {
  border-color: var(--line);
  background: var(--surface-muted);
  color: var(--muted);
}

body[data-theme="buyer"] .need-report .safety-boundary {
  background: var(--red-soft);
  color: #721827;
}

.solution-report,
.report-evidence {
  padding: 30px 28px;
}

.solution-report-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.solution-report-heading h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.5rem;
}

.solution-count,
.selection-count {
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 99px;
  padding: 6px 10px;
  background: var(--surface-muted);
  color: var(--muted);
  font-size: 0.73rem;
  font-weight: 700;
}

.solution-report .section-intro {
  margin: 10px 0 20px;
}

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

.solution-option {
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--surface);
  overflow: hidden;
}

.solution-option.is-selected {
  border-color: var(--blue);
  box-shadow: 0 0 0 2px rgba(29, 103, 161, 0.18);
}

.solution-choice {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  min-height: 218px;
  padding: 18px;
  cursor: pointer;
}

.solution-choice > input {
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  accent-color: var(--blue);
}

.solution-choice-copy,
.solution-option-meta {
  display: flex;
}

.solution-choice-copy {
  flex-direction: column;
  gap: 11px;
}

.solution-option-meta {
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--faint);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  text-transform: uppercase;
}

.recommended-label {
  color: var(--blue-dark);
}

.solution-title {
  font-family: var(--font-display);
  font-size: 1.02rem;
  line-height: 1.3;
}

.solution-summary {
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.5;
}

.solution-details {
  border-top: 1px solid var(--line);
}

.solution-details > summary {
  padding: 13px 18px;
  color: var(--blue-dark);
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
}

.solution-details > .rationale,
.solution-details > .approach-grid,
.solution-details > .inline-citations {
  margin-right: 18px;
  margin-left: 18px;
}

.solution-details > .rationale {
  font-size: 0.84rem;
}

.solution-details .approach-grid {
  grid-template-columns: 1fr;
  gap: 16px;
}

.selected-scope {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
  margin-top: 16px;
  border-left: 4px solid var(--blue);
  padding: 12px 14px;
  background: var(--blue-soft);
}

.selected-scope span {
  color: var(--blue-dark);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
}

.selected-scope strong {
  text-align: right;
}

.report-evidence {
  border-top: 1px solid var(--line);
  background: var(--surface-muted);
}

.report-outcomes .outcome-actions {
  flex: 0 0 auto;
}

.need-profile {
  border-top: 4px solid var(--charcoal);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.need-profile-main {
  padding: 24px 26px 20px;
}

.profile-label {
  color: var(--faint);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
}

.need-profile-main h3 {
  margin: 7px 0 10px;
  font-family: var(--font-display);
  font-size: 1.45rem;
}

.need-profile-main p {
  max-width: 880px;
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.profile-facts,
.selection-summary,
.payment-summary,
.deployment-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.profile-facts > div,
.selection-summary > div,
.payment-summary > div,
.deployment-facts > div {
  min-height: 76px;
  border-right: 1px solid var(--line);
  padding: 14px 18px;
}

.profile-facts > div:nth-child(3n),
.selection-summary > div:last-child,
.payment-summary > div:last-child,
.deployment-facts > div:last-child {
  border-right: 0;
}

dt {
  color: var(--faint);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
}

dd {
  margin: 7px 0 0;
  font-weight: 700;
  line-height: 1.4;
}

dl .is-missing dd,
.missing-value {
  color: var(--red);
}

.profile-lists {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  padding: 20px 26px;
}

.profile-lists > div > span,
.provenance-row > span {
  display: block;
  margin-bottom: 8px;
  color: var(--faint);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag-list span {
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 5px 7px;
  background: var(--surface-muted);
  color: var(--charcoal-soft);
  font-size: 0.75rem;
}

.provenance-row {
  border-top: 1px solid var(--line);
  padding: 15px 26px;
}

.provenance-row strong,
.provenance-row small {
  display: block;
}

.provenance-row small {
  margin-top: 4px;
  color: var(--muted);
}

.recommendation-panel {
  border-top: 5px solid var(--blue);
}

.recommendation-heading {
  margin-bottom: 15px;
}

.score-badge,
.match-score {
  display: grid;
  min-width: 64px;
  min-height: 42px;
  place-items: center;
  border-radius: 4px;
  background: var(--charcoal);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 700;
}

.recommendation-summary {
  max-width: 880px;
  margin: 0;
  color: var(--ink);
  font-size: 1.12rem;
  line-height: 1.55;
}

.rationale {
  max-width: 880px;
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.55;
}

.approach-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 28px;
  margin-top: 24px;
  border-top: 1px solid var(--line);
  padding-top: 20px;
}

.approach-grid h3 {
  margin: 0 0 9px;
  font-family: var(--font-display);
  font-size: 0.95rem;
}

.approach-grid ul,
.check-list {
  margin: 0;
  padding-left: 19px;
  color: var(--muted);
}

.approach-grid li,
.check-list li {
  margin: 6px 0;
  line-height: 1.45;
}

.inline-citations {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  align-items: center;
  margin-top: 20px;
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

.inline-citations span {
  color: var(--faint);
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
}

.inline-citations a {
  font-size: 0.8rem;
  font-weight: 700;
}

.alternatives {
  box-shadow: none;
}

.alternatives > summary {
  padding: 0;
}

.alternative-list {
  display: grid;
  gap: 22px;
  margin-top: 20px;
  border-top: 1px solid var(--line);
  padding-top: 20px;
}

.alternative + .alternative {
  border-top: 1px solid var(--line);
  padding-top: 22px;
}

.alternative > div:first-child {
  display: flex;
  justify-content: space-between;
  gap: 18px;
}

.alternative h3 {
  margin: 0;
  font-family: var(--font-display);
}

.alternative > p {
  color: var(--muted);
  line-height: 1.55;
}

.evidence-columns {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 40px;
}

.evidence-columns h3 {
  margin: 0 0 14px;
  font-family: var(--font-display);
}

.missing-list li::marker {
  color: var(--amber);
}

.positive-copy {
  color: var(--green);
  font-weight: 700;
}

.citation-list {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.citation-list li {
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

.citation-list a {
  font-weight: 700;
}

.citation-list span {
  display: block;
  margin-top: 4px;
  color: var(--faint);
  font-size: 0.72rem;
  text-transform: uppercase;
}

.citation-list p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.45;
}

.safety-boundary,
.payment-boundary {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 15px;
  margin-top: 24px;
  border-left: 4px solid var(--red);
  padding: 13px 15px;
  background: var(--red-soft);
  color: #721827;
}

.safety-boundary p {
  margin: 0;
  line-height: 1.5;
}

.outcome-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  border: 1px solid var(--line);
  border-left: 5px solid var(--red);
  border-radius: 5px;
  padding: 24px;
  background: var(--charcoal);
  color: #fff;
  box-shadow: var(--shadow);
}

.outcome-band .eyebrow {
  color: #88bce3;
}

.outcome-band h2 {
  font-size: 1.5rem;
}

.outcome-band p:not(.eyebrow) {
  max-width: 620px;
  margin-bottom: 0;
  color: #b8c2c9;
}

.terminal-panel,
.selection-panel,
.payment-panel,
.deployment-summary,
.speed-receipt {
  max-width: 1040px;
  margin: 0 auto;
}

.terminal-panel h2,
.selection-panel h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 2rem;
}

.terminal-copy {
  max-width: 740px;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.55;
}

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

.candidate-card,
.response-card,
.outreach-item {
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--surface);
  box-shadow: 0 8px 24px rgba(21, 31, 38, 0.07);
}

.candidate-card {
  position: relative;
  padding: 20px;
  overflow: hidden;
}

.candidate-card.is-selected {
  border-color: var(--blue);
  box-shadow: 0 0 0 2px rgba(29, 103, 161, 0.2);
}

.candidate-rank {
  position: absolute;
  top: 0;
  right: 0;
  min-width: 42px;
  padding: 6px 8px;
  background: var(--charcoal);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  text-align: center;
}

.candidate-select {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 30px;
  margin: 0 42px 14px 0;
  color: var(--blue-dark);
  font-size: 0.76rem;
  font-weight: 700;
  cursor: pointer;
}

.candidate-select input {
  width: 17px;
  height: 17px;
  accent-color: var(--blue);
}

.candidate-heading,
.outreach-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.candidate-heading h3,
.outreach-heading h3 {
  margin: 0;
  padding-right: 36px;
  font-family: var(--font-display);
  font-size: 1.05rem;
}

.candidate-heading > div > span,
.outreach-heading > div > span {
  display: block;
  margin-top: 4px;
  color: var(--faint);
  font-size: 0.78rem;
}

.candidate-heading .match-score {
  margin-top: 0;
}

.candidate-provenance {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 13px;
}

.candidate-provenance > span:last-child {
  color: var(--faint);
  font-size: 0.72rem;
}

.candidate-section {
  margin-top: 18px;
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

.candidate-section > strong {
  font-size: 0.78rem;
  text-transform: uppercase;
}

.candidate-section ul {
  margin: 9px 0 0;
  padding-left: 18px;
  color: var(--muted);
  font-size: 0.84rem;
}

.candidate-section li {
  margin: 5px 0;
  line-height: 1.4;
}

.match-more {
  margin-top: 9px;
  border-top: 1px solid var(--line);
  padding-top: 8px;
}

.match-more summary {
  color: var(--blue-dark);
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
}

.candidate-footer {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  color: var(--muted);
  font-size: 0.78rem;
}

.status-chip {
  display: inline-flex;
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 99px;
  padding: 4px 8px;
  font-size: 0.7rem;
  font-weight: 700;
}

.status-chip.is-ready {
  background: var(--surface-muted);
  color: var(--muted);
}

.status-chip.is-sent,
.status-chip.is-viewed {
  border-color: #a8c9e1;
  background: var(--blue-soft);
  color: var(--blue-dark);
}

.status-chip.is-responded {
  border-color: #a8d2bf;
  background: var(--green-soft);
  color: var(--green);
}

.status-chip.is-failed {
  border-color: #efb8c0;
  background: var(--red-soft);
  color: var(--red);
}

.response-count {
  border-color: #e2c98e;
  background: var(--amber-soft);
  color: var(--amber);
}

.response-count.is-ready {
  border-color: #a8d2bf;
  background: var(--green-soft);
  color: var(--green);
}

.outreach-approval {
  padding: 22px;
}

.outreach-approval-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.outreach-approval-heading h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.35rem;
}

.outreach-modes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
  margin: 18px 0 0;
  border: 0;
  padding: 0;
}

.outreach-modes legend {
  margin-bottom: 9px;
  color: var(--faint);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
}

.outreach-mode {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  min-height: 78px;
  align-items: start;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 13px;
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
}

.outreach-mode.is-selected {
  border-color: var(--blue);
  background: var(--blue-soft);
  box-shadow: inset 0 0 0 1px var(--blue);
}

.outreach-mode.is-unavailable {
  background: var(--surface-muted);
  color: var(--muted);
}

.outreach-mode.is-unavailable:not(.is-selected) {
  cursor: not-allowed;
  opacity: 0.72;
}

.outreach-mode input {
  width: 17px;
  height: 17px;
  margin: 2px 0 0;
  accent-color: var(--blue);
}

.outreach-mode strong,
.outreach-mode small {
  display: block;
}

.outreach-mode small {
  margin-top: 4px;
  color: var(--muted);
  line-height: 1.35;
}

.section-intro {
  max-width: 820px;
  margin: -7px 0 22px;
  color: var(--muted);
  line-height: 1.55;
}

.separate-link-notice {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 16px;
  margin-bottom: 18px;
  border-left: 4px solid var(--blue);
  padding: 13px 15px;
  background: var(--blue-soft);
  color: var(--muted);
}

.separate-link-notice strong {
  color: var(--blue-dark);
}

.outreach-list {
  display: grid;
  gap: 14px;
}

.outreach-item {
  padding: 20px;
}

.outreach-heading h3 {
  padding-right: 0;
}

.delivery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 16px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.delivery-row {
  min-height: 90px;
  border-right: 1px solid var(--line);
  padding: 13px;
}

.delivery-row:last-child {
  border-right: 0;
}

.delivery-row span,
.delivery-row strong,
.delivery-row small {
  display: block;
}

.delivery-row span {
  color: var(--faint);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
}

.delivery-row strong {
  margin-top: 6px;
}

.delivery-row small {
  margin-top: 4px;
  color: var(--muted);
}

.text-danger {
  color: var(--red);
}

.secure-link-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 16px;
}

.secure-link-row code {
  display: block;
  max-width: 520px;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.75rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.secure-link-row > div {
  display: flex;
  flex: 0 0 auto;
  gap: 8px;
}

.response-signal {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 0.84rem;
}

.response-signal strong {
  color: var(--green);
}

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

.response-card {
  overflow: hidden;
}

.response-card.is-selected {
  border-color: var(--blue);
  box-shadow: 0 0 0 2px var(--blue), var(--shadow);
}

.response-card.is-declined {
  opacity: 0.75;
}

.response-select {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 11px;
  align-items: center;
  min-height: 76px;
  border-bottom: 1px solid var(--line);
  padding: 14px 16px;
  background: var(--surface-muted);
  cursor: pointer;
}

.response-select input {
  width: 18px;
  height: 18px;
  accent-color: var(--blue);
}

.response-select strong,
.response-select small {
  display: block;
}

.response-select small {
  margin-top: 3px;
  color: var(--muted);
}

.response-select .match-score {
  min-width: 52px;
  min-height: 36px;
}

.comparison-facts {
  display: grid;
  margin: 0;
}

.comparison-facts > div {
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr);
  gap: 14px;
  border-bottom: 1px solid var(--line);
  padding: 13px 16px;
}

.comparison-facts > div:last-child {
  border-bottom: 0;
}

.comparison-facts dd {
  margin: 0;
  font-size: 0.86rem;
  font-weight: 500;
}

.selection-summary,
.payment-summary,
.deployment-facts {
  margin-top: 24px;
}

.payment-heading p,
.deployment-heading p {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.5;
}

.payment-state {
  border-color: #e2c98e;
  background: var(--amber-soft);
  color: var(--amber);
}

.payment-boundary {
  align-items: center;
  margin-top: 20px;
  border-left-color: var(--amber);
  background: var(--amber-soft);
  color: #6a4400;
}

.payment-evidence {
  margin-top: 20px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding-top: 18px;
}

.payment-evidence-pending {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 15px;
  border: 0;
  border-left: 4px solid var(--blue);
  padding: 13px 15px;
  background: var(--blue-soft);
  color: #174f72;
}

.payment-evidence-heading h3 {
  margin: 4px 0 0;
  font-size: 1rem;
}

.payment-evidence-facts {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 14px;
  border-bottom: 0;
}

.service-fee-disclosure {
  margin: 14px 0 0;
  border-left: 3px solid var(--blue);
  padding: 10px 13px;
  background: var(--blue-soft);
  color: #174f72;
  font-size: 0.82rem;
  line-height: 1.5;
}

.secondary-actions {
  justify-content: flex-end;
  margin-top: 12px;
}

.developer-utility {
  margin-top: 20px;
  border-top: 1px solid var(--line);
}

.developer-utility > summary {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.developer-utility p {
  max-width: 720px;
  color: var(--muted);
  font-size: 0.82rem;
}

.secured-badge {
  background: var(--green);
  color: #fff;
}

.project-current {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(180px, 0.5fr);
  gap: 1px;
  margin-top: 24px;
  background: var(--line);
}

.project-current > div {
  display: grid;
  gap: 5px;
  padding: 18px;
  background: var(--charcoal);
  color: #fff;
}

.project-current span,
.project-current small {
  color: #b8c2c9;
}

.project-current span {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
}

.project-current strong {
  font-family: var(--font-display);
  font-size: 1.1rem;
}

.project-update {
  margin-top: 18px;
  border-top: 1px solid var(--line);
}

.project-update > summary {
  padding: 15px 0;
  color: var(--blue-dark);
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
}

.project-update .milestone-update-form {
  margin-top: 0;
}

.progress-summary {
  margin-top: 24px;
}

.progress-summary > div:first-child {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 9px;
}

.progress-track {
  height: 10px;
  border-radius: 99px;
  background: #dce2e5;
  overflow: hidden;
}

.progress-track span {
  display: block;
  height: 100%;
  background: var(--green);
}

.milestone-list {
  display: grid;
  gap: 0;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.milestone-list li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 13px;
  align-items: center;
  min-height: 66px;
  border-top: 1px solid var(--line);
  padding: 10px 0;
}

.milestone-index {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.72rem;
}

.milestone-list li.is-funded .milestone-index,
.milestone-list li.is-in_progress .milestone-index,
.milestone-list li.is-completed .milestone-index {
  border-color: var(--green);
  background: var(--green-soft);
  color: var(--green);
}

.milestone-list strong,
.milestone-list small {
  display: block;
}

.milestone-list small {
  margin-top: 3px;
  color: var(--muted);
}

.milestone-progress {
  font-family: var(--font-mono);
  font-size: 0.78rem;
}

.milestone-evidence {
  display: block;
  width: fit-content;
  margin-top: 7px;
  border-left: 3px solid var(--line-strong);
  padding: 5px 9px;
  background: var(--surface-muted);
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.4;
}

.milestone-evidence.is-authoritative {
  border-left-color: var(--green);
  background: var(--green-soft);
  color: var(--green);
}

.milestone-evidence.is-pending {
  border-left-color: var(--amber);
  background: var(--amber-soft);
  color: #6a4400;
}

.milestone-evidence.is-local-demo {
  border-left-color: var(--blue);
  background: var(--blue-soft);
  color: #174f72;
}

.milestone-funding-panel {
  margin-top: 24px;
  border: 1px solid var(--line-strong);
  border-left: 4px solid var(--blue);
  border-radius: 5px;
  padding: 20px;
  background: #fff;
}

.milestone-funding-heading {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: flex-start;
}

.milestone-funding-heading h3 {
  margin: 4px 0 0;
  font-size: 1.15rem;
}

.milestone-funding-heading p:last-child {
  max-width: 720px;
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.5;
}

.milestone-funding-facts {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 16px;
}

.milestone-funding-action {
  margin-top: 18px;
}

.milestone-payment-utilities {
  flex-wrap: wrap;
  gap: 8px;
}

.milestone-update-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px 18px;
  align-items: end;
  margin-top: 18px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--blue);
  border-radius: 5px;
  padding: 16px 18px;
  background: var(--surface-muted);
}

.milestone-update-heading {
  display: flex;
  grid-column: 1 / -1;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.milestone-update-heading .eyebrow {
  margin: 0 0 3px;
}

.milestone-update-heading h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1rem;
}

.milestone-update-form .field textarea {
  min-height: 92px;
}

.milestone-update-form > .button {
  margin-bottom: 26px;
  white-space: nowrap;
}

.milestone-update-unavailable {
  margin-top: 18px;
}

.speed-receipt {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 28px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.speed-receipt-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}

.speed-receipt-heading h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.65rem;
}

.speed-receipt-heading p:not(.eyebrow) {
  margin: 7px 0 0;
  color: var(--muted);
}

.speed-baseline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 20px;
  padding: 13px 15px;
  background: var(--charcoal);
  color: #fff;
}

.speed-baseline span {
  color: #b8c2c9;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
}

.speed-receipt-events {
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.speed-receipt-events li {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
  border-top: 1px solid var(--line);
  padding: 12px 0;
}

.speed-receipt-events li:first-child {
  border-top: 0;
}

.receipt-marker {
  width: 12px;
  height: 12px;
  margin-top: 3px;
  border: 2px solid var(--line-strong);
  border-radius: 50%;
  background: var(--surface);
}

.speed-receipt-events li.is-complete .receipt-marker {
  border-color: var(--green);
  background: var(--green);
  box-shadow: inset 0 0 0 2px #fff;
}

.speed-receipt-events li.is-failed .receipt-marker {
  border-color: var(--red);
  background: var(--red);
}

.speed-receipt-events strong,
.speed-receipt-events p {
  display: block;
}

.speed-receipt-events p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.4;
}

.speed-receipt-events time,
.receipt-pending-label {
  color: var(--faint);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  white-space: nowrap;
}

.speed-receipt-events li.is-failed .receipt-pending-label {
  color: var(--red);
}

.speed-receipt-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 12px;
  border-top: 1px solid var(--line);
  padding-top: 16px;
}

.inline-empty,
.unavailable-panel {
  text-align: center;
}

.inline-empty {
  border: 1px dashed var(--line-strong);
  border-radius: 5px;
  padding: 28px;
  color: var(--muted);
}

.inline-empty p {
  margin-bottom: 0;
}

.unavailable-panel {
  max-width: 720px;
  margin: 0 auto;
}

.unavailable-panel h2 {
  font-size: 1.7rem;
}

.unavailable-panel p:not(.eyebrow) {
  color: var(--muted);
  line-height: 1.55;
}

.unavailable-panel .button {
  margin-top: 12px;
}

.loading-skeleton {
  display: grid;
  gap: 14px;
}

.loading-skeleton span {
  height: 22px;
  border-radius: 3px;
  background: #e0e5e8;
  animation: pulse 1.2s ease-in-out infinite alternate;
}

.loading-skeleton span:nth-child(1) {
  width: 34%;
}

.loading-skeleton span:nth-child(2) {
  width: 78%;
}

.loading-skeleton span:nth-child(3) {
  width: 92%;
}

.loading-skeleton span:nth-child(4) {
  width: 62%;
}

@keyframes pulse {
  to {
    opacity: 0.45;
  }
}

@media (max-width: 900px) {
  .hero-compact {
    grid-template-columns: 1fr;
  }

  .hero h1,
  .hero-compact h1 {
    font-size: 2.35rem;
  }

  .workspace-status {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border-top: 4px solid var(--red);
    border-left: 0;
    padding: 12px 0 0;
  }

  .workspace-status div {
    display: grid;
    gap: 4px;
  }

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

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

  .profile-facts,
  .selection-summary,
  .payment-summary,
  .deployment-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .profile-facts > div:nth-child(3n),
  .selection-summary > div,
  .payment-summary > div,
  .deployment-facts > div {
    border-right: 1px solid var(--line);
  }

  .profile-facts > div:nth-child(2n),
  .selection-summary > div:nth-child(2n),
  .payment-summary > div:nth-child(2n),
  .deployment-facts > div:nth-child(2n) {
    border-right: 0;
  }

  .profile-lists {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .app-shell {
    width: min(calc(100% - 24px), 1200px);
    padding-bottom: 36px;
  }

  .product-header {
    min-height: 58px;
  }

  .product-context span {
    display: none;
  }

  .product-header-meta {
    gap: 8px;
  }

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

  .registry-summary > div:nth-child(2) {
    border-right: 0;
  }

  .registry-summary > div:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

  .registry-row {
    grid-template-columns: 1fr;
  }

  .registry-heading {
    display: none;
  }

  .hero,
  .hero-compact {
    padding: 28px 0 22px;
  }

  .hero h1,
  .hero-compact h1 {
    font-size: 2rem;
    line-height: 1.08;
  }

  .hero-compact {
    padding: 20px 0 18px;
  }

  .hero-compact h1 {
    font-size: 1.65rem;
  }

  .hero-compact .hero-copy {
    display: none;
  }

  .hero-copy {
    font-size: 0.96rem;
  }

  .workspace-status {
    grid-template-columns: 1fr;
  }

  .journey-step {
    min-height: 58px;
    justify-content: center;
    gap: 7px;
    padding: 8px 5px;
  }

  .journey-number {
    width: 25px;
    height: 25px;
    flex-basis: 25px;
  }

  .journey-step small {
    display: none;
  }

  .journey-step strong {
    font-size: 0.78rem;
  }

  .intake-form,
  .recommendation-panel,
  .alternatives,
  .terminal-panel,
  .selection-panel,
  .payment-panel,
  .deployment-summary,
  .speed-receipt,
  .unavailable-panel,
  .loading-skeleton {
    padding: 18px;
  }

  .panel-heading,
  .recommendation-heading,
  .structure-result-heading,
  .payment-heading,
  .deployment-heading,
  .speed-receipt-heading {
    display: grid;
    gap: 12px;
  }

  .panel-heading h2,
  .recommendation-heading h2,
  .payment-heading h2,
  .deployment-heading h2 {
    font-size: 1.45rem;
  }

  .report-heading,
  .solution-report-heading,
  .selected-scope,
  .outreach-approval-heading {
    display: grid;
    gap: 10px;
  }

  .report-heading,
  .report-title,
  .solution-report,
  .report-evidence {
    padding-right: 18px;
    padding-left: 18px;
  }

  .report-heading > div:first-child {
    display: grid;
    gap: 4px;
  }

  .report-title {
    padding-top: 24px;
  }

  .report-title h2 {
    font-size: 1.55rem;
  }

  .solution-grid,
  .outreach-modes,
  .project-current {
    grid-template-columns: 1fr;
  }

  .solution-choice {
    min-height: auto;
  }

  .selected-scope strong {
    text-align: left;
  }

  .demo-utilities,
  .demo-utilities .button {
    width: 100%;
  }

  .mode-switch {
    width: 100%;
  }

  .mode-switch button {
    min-width: 0;
  }

  .section-heading {
    align-items: flex-start;
  }

  .boundary-label,
  .optional-label {
    max-width: 120px;
    text-align: center;
  }

  .file-grid,
  .form-grid,
  .priority-grid,
  .candidate-grid,
  .response-grid,
  .evidence-columns,
  .approach-grid,
  .delivery-grid,
  .profile-facts,
  .selection-summary,
  .payment-summary,
  .deployment-facts {
    grid-template-columns: 1fr;
  }

  .evidence-item {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .evidence-item .text-button {
    grid-column: 2;
    justify-self: start;
  }

  .intake-explainer,
  .missing-strip,
  .complete-strip,
  .warning-strip,
  .separate-link-notice,
  .safety-boundary,
  .payment-boundary,
  .payment-evidence-pending {
    grid-template-columns: 1fr;
  }

  .source-stack {
    justify-content: flex-start;
  }

  .primary-action-row,
  .outcome-band {
    display: grid;
    gap: 18px;
  }

  .primary-action-row .button,
  .primary-action-row a.button,
  .outcome-actions,
  .outcome-actions .button {
    width: 100%;
  }

  .milestone-update-form {
    grid-template-columns: 1fr;
  }

  .milestone-update-form > .button {
    width: 100%;
    margin-bottom: 0;
  }

  .milestone-update-heading {
    align-items: flex-start;
  }

  .milestone-funding-heading {
    display: grid;
  }

  .milestone-funding-facts {
    grid-template-columns: 1fr;
  }

  .outcome-actions {
    display: grid;
  }

  .report-outcomes .outcome-actions {
    width: 100%;
  }

  .profile-facts > div,
  .selection-summary > div,
  .payment-summary > div,
  .deployment-facts > div,
  .profile-facts > div:nth-child(3n),
  .profile-facts > div:nth-child(2n),
  .selection-summary > div:nth-child(2n),
  .payment-summary > div:nth-child(2n),
  .deployment-facts > div:nth-child(2n) {
    min-height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .profile-facts > div:last-child,
  .selection-summary > div:last-child,
  .payment-summary > div:last-child,
  .deployment-facts > div:last-child {
    border-bottom: 0;
  }

  .profile-lists,
  .need-profile-main,
  .provenance-row {
    padding-right: 18px;
    padding-left: 18px;
  }

  .delivery-row,
  .delivery-row:last-child {
    min-height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .delivery-row:last-child {
    border-bottom: 0;
  }

  .secure-link-row {
    display: grid;
  }

  .secure-link-row code {
    max-width: 100%;
    white-space: normal;
  }

  .secure-link-row > div {
    display: grid;
    grid-template-columns: 1fr;
  }

  .comparison-facts > div {
    grid-template-columns: 1fr;
    gap: 5px;
  }

  .milestone-list li {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .milestone-progress {
    grid-column: 2;
  }

  .speed-baseline {
    display: grid;
  }

  .speed-receipt-events li {
    grid-template-columns: 18px minmax(0, 1fr);
  }

  .speed-receipt-events time,
  .receipt-pending-label {
    grid-column: 2;
  }
}

@media (max-width: 440px) {
  .product-context {
    display: none;
  }
}

@media print {
  @page {
    size: A4;
    margin: 14mm;
  }

  body {
    background: #fff;
  }

  body * {
    visibility: hidden !important;
  }

  .speed-receipt,
  .speed-receipt * {
    visibility: visible !important;
  }

  .speed-receipt {
    position: absolute;
    inset: 0 auto auto 0;
    width: 100%;
    max-width: none;
    border: 0;
    padding: 0;
    box-shadow: none;
  }

  .speed-receipt-events li {
    break-inside: avoid;
    padding: 7px 0;
  }

  .speed-receipt-actions {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* ============================================================
   VELTACT WORKSPACE V5
   Responsive port of the authoritative Light/Dark workspace
   prototypes onto the production buyer workflow.
   ============================================================ */

body[data-theme="buyer"] {
  --canvas: var(--v5-canvas, #e9f0f7);
  --surface: var(--v5-surface, #f7fafd);
  --surface-muted: var(--v5-surface-raised, #fbfdff);
  --ink: var(--v5-text, #12263c);
  --muted: var(--v5-muted, #4a627a);
  --faint: var(--v5-faint-readable, #537089);
  --line: var(--v5-line, rgba(18, 38, 60, 0.1));
  --line-strong: var(--v5-line-strong, rgba(18, 38, 60, 0.22));
  --charcoal: var(--v5-primary-bg, #12263c);
  --charcoal-soft: var(--v5-text, #12263c);
  --blue: var(--v5-blue, #1d5a8a);
  --blue-dark: var(--v5-blue, #1d5a8a);
  --blue-soft: var(--v5-blue-soft, rgba(46, 100, 158, 0.1));
  --red: var(--v5-red-text, #c22f3a);
  --red-soft: var(--v5-red-soft, rgba(194, 47, 58, 0.09));
  --green: var(--v5-success-text, #256b42);
  --green-soft: var(--v5-success-soft, rgba(46, 125, 79, 0.1));
  --amber: var(--v5-warning-text, #755f22);
  --amber-soft: var(--v5-warning-soft, rgba(156, 117, 20, 0.1));
  --surface-raised: var(--v5-surface-raised, #fbfdff);
  --font-display: var(--v5-font-display, "Chakra Petch", ui-sans-serif, sans-serif);
  --font-body: var(--v5-font-body, "Instrument Sans", ui-sans-serif, system-ui, sans-serif);
  --font-mono: var(--v5-font-mono, "Geist Mono", ui-monospace, monospace);
  --shadow: 0 20px 48px -36px rgba(9, 22, 38, 0.56);
  min-height: 100vh;
  background-color: var(--canvas);
  background-image: var(--v5-page-ambient);
  background-attachment: fixed;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.5;
}

html[data-workspace-theme="dark"] body[data-theme="buyer"] {
  --shadow: 0 22px 52px -34px rgba(0, 0, 0, 0.86);
}

body[data-theme="buyer"] *,
body[data-theme="buyer"] *::before,
body[data-theme="buyer"] *::after {
  letter-spacing: normal;
}

body[data-theme="buyer"] ::selection {
  background: var(--v5-selection, rgba(140, 185, 230, 0.55));
  color: var(--ink);
}

body[data-theme="buyer"] a {
  color: var(--blue);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

body[data-theme="buyer"] a:hover {
  color: var(--ink);
}

body[data-theme="buyer"] button,
body[data-theme="buyer"] input,
body[data-theme="buyer"] textarea,
body[data-theme="buyer"] select {
  color-scheme: inherit;
  font-family: inherit;
}

body[data-theme="buyer"] button {
  transition:
    transform 220ms ease,
    border-color 220ms ease,
    background-color 220ms ease,
    color 220ms ease,
    opacity 220ms ease,
    box-shadow 220ms ease;
}

body[data-theme="buyer"] button:focus-visible,
body[data-theme="buyer"] a:focus-visible,
body[data-theme="buyer"] input:focus-visible,
body[data-theme="buyer"] textarea:focus-visible,
body[data-theme="buyer"] select:focus-visible,
body[data-theme="buyer"] summary:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 3px;
}

body[data-theme="buyer"] .skip-link {
  z-index: 120;
  border: 1px solid var(--v5-header-line, rgba(216, 56, 63, 0.35));
  border-radius: 99px;
  background: var(--v5-header-bg-solid, #38202c);
  color: #f2f7fc;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
}

body[data-theme="buyer"] .app-shell {
  width: min(1160px, calc(100% - 64px));
  min-height: 100vh;
  margin-inline: auto;
  padding-bottom: 110px;
}

/* The product bar mirrors the 62px burgundy glass prototype header. */
body[data-theme="buyer"] .product-header {
  position: sticky;
  top: 0;
  z-index: 50;
  width: 100vw;
  min-height: 62px;
  margin-left: calc(50% - 50vw);
  padding-inline:
    max(22px, calc((100vw - 1160px) / 2 + 32px));
  border: 0;
  border-bottom: 1px solid var(--v5-header-line, rgba(216, 56, 63, 0.35));
  background-color: var(--v5-header-fallback, rgba(40, 26, 38, 0.76));
  background-image: var(--v5-header-background);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.09);
  color: #f2f7fc;
  backdrop-filter: blur(18px) saturate(1.25);
  -webkit-backdrop-filter: blur(18px) saturate(1.25);
}

body[data-theme="buyer"] .product-wordmark {
  gap: 12px;
  color: #f2f7fc;
  font-family: var(--v5-font-brand, "Chakra Petch", var(--font-display));
  font-size: 1.03125rem;
  font-weight: 600;
  letter-spacing: 4px;
  text-transform: uppercase;
}

body[data-theme="buyer"] .product-wordmark:hover {
  color: #fff;
}

body[data-theme="buyer"] .product-context {
  align-items: center;
  gap: 8px;
  color: #a9bbcd;
  font-family: var(--font-body);
  font-size: 0.8125rem;
  text-transform: none;
}

body[data-theme="buyer"] .product-context strong {
  color: #f2f7fc;
  font-weight: 500;
}

body[data-theme="buyer"] .product-header-meta {
  gap: 12px;
}

body[data-theme="buyer"] .product-phase-nav {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: 2px;
  padding: 2px;
  border: 1px solid rgba(242, 247, 252, 0.18);
  border-radius: 99px;
  background: rgba(8, 18, 31, 0.2);
}

body[data-theme="buyer"] .product-phase-nav :where(button, span) {
  display: inline-grid;
  min-width: 62px;
  min-height: 44px;
  place-items: center;
  border: 0;
  border-radius: 99px;
  padding: 0 13px;
  color: #9fb3c7;
  background: transparent;
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
}

body[data-theme="buyer"] .product-phase-nav button {
  color: #dce8f3;
  cursor: pointer;
}

body[data-theme="buyer"] .product-phase-nav button:hover {
  color: #fff;
  background: rgba(242, 247, 252, 0.1);
}

body[data-theme="buyer"] .product-phase-nav .is-current {
  color: #fff;
  background: rgba(242, 247, 252, 0.14);
  box-shadow: inset 0 0 0 1px rgba(242, 247, 252, 0.08);
}

body[data-theme="buyer"] .product-header .button {
  min-height: 44px;
  border-color: rgba(242, 247, 252, 0.2);
  background: rgba(242, 247, 252, 0.08);
  color: #f2f7fc;
}

body[data-theme="buyer"] .product-header .button:hover:not(:disabled) {
  border-color: rgba(242, 247, 252, 0.42);
  background: rgba(242, 247, 252, 0.14);
  color: #fff;
}

/* Page title and compact status header. */
body[data-theme="buyer"] .hero {
  gap: 24px;
  padding: 68px 0 30px;
}

body[data-theme="buyer"] .hero-compact {
  grid-template-columns: minmax(0, 1fr) minmax(250px, 330px);
  align-items: end;
  padding-top: 48px;
}

body[data-theme="buyer"] .hero-copy-block {
  max-width: 900px;
}

body[data-theme="buyer"] .hero h1 {
  max-width: 920px;
  font-family: var(--font-body);
  font-size: clamp(2.5rem, 4vw, 2.625rem);
  font-weight: 500;
  letter-spacing: -1px;
  line-height: 1.1;
}

body[data-theme="buyer"] .hero-compact h1 {
  font-size: clamp(2rem, 3.4vw, 2.5rem);
}

body[data-theme="buyer"] .hero-copy {
  max-width: 620px;
  margin-top: 14px;
  color: var(--muted);
  font-size: 1.03125rem;
  line-height: 1.6;
}

body[data-theme="buyer"] .eyebrow {
  margin-bottom: 14px;
  color: var(--v5-red-text, var(--red));
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
}

body[data-theme="buyer"] .workspace-status {
  gap: 10px;
  border: 0;
  border-left: 1px solid var(--line-strong);
  padding: 2px 0 2px 22px;
}

body[data-theme="buyer"] .workspace-status div {
  gap: 16px;
}

body[data-theme="buyer"] .workspace-status span {
  color: var(--faint);
  font-family: var(--font-body);
  font-size: 0.75rem;
  text-transform: none;
}

body[data-theme="buyer"] .workspace-status strong {
  color: var(--ink);
  font-size: 0.875rem;
  font-weight: 600;
}

/* Three-card journey stepper. */
body[data-theme="buyer"] .journey {
  gap: 14px;
  margin: 0;
  border: 0;
  border-radius: 0;
  padding: 18px 0;
  background: transparent;
  overflow: visible;
}

body[data-theme="buyer"] .journey-step,
body[data-theme="buyer"] button.journey-step {
  min-height: 72px;
  gap: 12px;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  padding: 13px 18px;
  background-color: color-mix(in srgb, var(--surface-raised, var(--surface)) 74%, transparent);
  color: var(--faint);
  text-align: left;
}

body[data-theme="buyer"] button.journey-step {
  border: 1px solid var(--line-strong);
}

body[data-theme="buyer"] .journey-step:last-child {
  border-right: 1px solid var(--line-strong);
}

body[data-theme="buyer"] button.journey-step.is-reachable:hover {
  border-color: color-mix(in srgb, var(--blue) 60%, transparent);
  box-shadow: 0 12px 24px -16px rgba(9, 22, 38, 0.5);
  color: var(--ink);
  transform: translateY(-1px);
}

body[data-theme="buyer"] button.journey-step.is-reachable:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 3px;
}

body[data-theme="buyer"] .journey-step.is-workflow-current,
body[data-theme="buyer"] button.journey-step.is-workflow-current {
  border-color: var(--v5-step-current-border, #0e2138);
  background:
    radial-gradient(120% 180% at 0% 0%, rgba(120, 170, 215, 0.28) 0%, transparent 55%),
    var(--v5-step-current-bg, #0e2138);
  box-shadow: none;
  color: var(--v5-step-current-text, #f2f7fc);
}

/* Viewing an earlier stage: outline treatment, never a second "Now" fill. */
body[data-theme="buyer"] .journey-step.is-current:not(.is-workflow-current),
body[data-theme="buyer"] button.journey-step.is-current:not(.is-workflow-current) {
  border-color: color-mix(in srgb, var(--blue) 55%, transparent);
  background: var(--surface);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--blue) 55%, transparent);
  color: var(--ink);
}

body[data-theme="buyer"] .journey-step.is-complete:not(.is-current):not(.is-workflow-current),
body[data-theme="buyer"] button.journey-step.is-complete:not(.is-current):not(.is-workflow-current) {
  border-color: var(--line);
  background: var(--surface);
  color: var(--ink);
}

body[data-theme="buyer"] .journey-tag {
  margin-left: auto;
  color: var(--faint);
  font-size: 0.78125rem;
  font-weight: 600;
  white-space: nowrap;
}

body[data-theme="buyer"] .journey-step.is-workflow-current .journey-tag.is-now {
  color: #e97c84;
}

body[data-theme="buyer"] .journey-tag.is-done {
  color: var(--green);
}

/*
 * Canon dark stepper is a minimal dot rail (v5 Dark), not the light card
 * grid: transparent, chromeless, dot + label + muted sub.
 */
html[data-workspace-theme="dark"] body[data-theme="buyer"] .journey {
  border-bottom: 1px solid rgba(232, 240, 249, 0.07);
  background: transparent;
}

html[data-workspace-theme="dark"] body[data-theme="buyer"] .journey-step,
html[data-workspace-theme="dark"] body[data-theme="buyer"] button.journey-step {
  min-height: 44px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  box-shadow: none;
  color: #6b8199;
}

html[data-workspace-theme="dark"] body[data-theme="buyer"] .journey-step.is-workflow-current,
html[data-workspace-theme="dark"] body[data-theme="buyer"] button.journey-step.is-workflow-current {
  color: #e8f0f9;
}

html[data-workspace-theme="dark"] body[data-theme="buyer"] .journey-step.is-complete:not(.is-workflow-current),
html[data-workspace-theme="dark"] body[data-theme="buyer"] button.journey-step.is-complete:not(.is-workflow-current) {
  background: transparent;
  color: #9db2c8;
}

html[data-workspace-theme="dark"] body[data-theme="buyer"] .journey-step.is-current:not(.is-workflow-current),
html[data-workspace-theme="dark"] body[data-theme="buyer"] button.journey-step.is-current:not(.is-workflow-current) {
  border: 0;
  background: transparent;
  box-shadow: inset 0 -2px 0 color-mix(in srgb, var(--blue) 70%, transparent);
  color: #e8f0f9;
}

html[data-workspace-theme="dark"] body[data-theme="buyer"] button.journey-step.is-reachable:hover {
  border: 0;
  background: rgba(232, 240, 249, 0.05);
  box-shadow: none;
  color: #e8f0f9;
  transform: none;
}

html[data-workspace-theme="dark"] body[data-theme="buyer"] .journey-number {
  width: 7px;
  height: 7px;
  flex-basis: 7px;
  background: rgba(232, 240, 249, 0.18);
}

html[data-workspace-theme="dark"] body[data-theme="buyer"] .journey-step.is-workflow-current .journey-number {
  background: #d8383f;
}

html[data-workspace-theme="dark"] body[data-theme="buyer"] .journey-step.is-complete:not(.is-workflow-current) .journey-number {
  background: #79c99a;
}

html[data-workspace-theme="dark"] body[data-theme="buyer"] .journey-step:is(.is-current, .is-workflow-current) small {
  color: #6b8199;
}

body[data-theme="buyer"] .journey-number {
  width: 10px;
  height: 10px;
  flex-basis: 10px;
  border: 0;
  border-radius: 50%;
  background: color-mix(in srgb, var(--ink) 20%, transparent);
  color: transparent;
  font-size: 0;
}

body[data-theme="buyer"] .journey-step.is-current .journey-number,
body[data-theme="buyer"] .journey-step.is-workflow-current .journey-number {
  background: var(--red);
}

body[data-theme="buyer"] .journey-step.is-complete:not(.is-current):not(.is-workflow-current) .journey-number {
  background: var(--green);
}

body[data-theme="buyer"] .journey-step strong {
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 600;
}

body[data-theme="buyer"] .journey-step small {
  margin-top: 1px;
  color: inherit;
  font-size: 0.78125rem;
  opacity: 0.8;
}

body[data-theme="buyer"] .journey-step:is(.is-current, .is-workflow-current) small {
  color: var(--v5-step-current-sub, #b9c9d8);
  opacity: 1;
}

body[data-theme="buyer"] .workspace {
  margin-top: 6px;
}

body[data-theme="buyer"] .view-stack {
  gap: 30px;
}

/* Atmospheric card language shared throughout every buyer state. */
body[data-theme="buyer"] .intake-form,
body[data-theme="buyer"] .recommendation-panel,
body[data-theme="buyer"] .alternatives,
body[data-theme="buyer"] .terminal-panel,
body[data-theme="buyer"] .selection-panel,
body[data-theme="buyer"] .payment-panel,
body[data-theme="buyer"] .deployment-summary,
body[data-theme="buyer"] .speed-receipt,
body[data-theme="buyer"] .unavailable-panel,
body[data-theme="buyer"] .loading-skeleton,
body[data-theme="buyer"] .action-band,
body[data-theme="buyer"] .registry-panel {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 30px;
  background-color: var(--surface);
  background-image: var(--v5-card-background);
  box-shadow: var(--shadow);
}

body[data-theme="buyer"] .panel {
  padding-block: 0;
}

body[data-theme="buyer"] .panel-heading,
body[data-theme="buyer"] .recommendation-heading,
body[data-theme="buyer"] .structure-result-heading,
body[data-theme="buyer"] .payment-heading,
body[data-theme="buyer"] .deployment-heading {
  margin-bottom: 26px;
}

body[data-theme="buyer"] .panel-heading h2,
body[data-theme="buyer"] .recommendation-heading h2,
body[data-theme="buyer"] .payment-heading h2,
body[data-theme="buyer"] .deployment-heading h2,
body[data-theme="buyer"] .speed-receipt-heading h2 {
  font-family: var(--font-body);
  font-size: clamp(1.75rem, 3vw, 1.875rem);
  font-weight: 500;
  letter-spacing: -0.6px;
}

body[data-theme="buyer"] .panel-heading p,
body[data-theme="buyer"] .payment-heading p,
body[data-theme="buyer"] .deployment-heading p,
body[data-theme="buyer"] .section-intro {
  color: var(--muted);
}

/* Pill controls and the prototype's red-to-blue primary treatment. */
body[data-theme="buyer"] .button {
  min-height: var(--v5-control-height, 46px);
  border-radius: 99px;
  padding: 10px 22px;
  font-family: var(--font-body);
  font-size: 0.90625rem;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.25;
  text-transform: none;
}

body[data-theme="buyer"] .button-large {
  min-height: 46px;
  padding: 11px 30px;
}

body[data-theme="buyer"] .button-small {
  min-height: 44px;
  padding: 7px 15px;
  font-size: 0.8125rem;
}

body[data-theme="buyer"] .button-primary {
  border: 0;
  background: var(--v5-primary-background);
  color: var(--v5-primary-text, #f2f7fc);
  box-shadow: 0 12px 28px -20px rgba(9, 22, 38, 0.8);
}

body[data-theme="buyer"] .button-primary:hover:not(:disabled) {
  background: var(--v5-primary-hover);
  color: var(--v5-primary-text, #f2f7fc);
  box-shadow: 0 16px 30px -20px rgba(9, 22, 38, 0.82);
  transform: translateY(-1px);
}

body[data-theme="buyer"] .button-primary:active:not(:disabled) {
  transform: translateY(0);
}

body[data-theme="buyer"] .button-secondary,
body[data-theme="buyer"] .button-quiet {
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--ink);
  box-shadow: none;
}

body[data-theme="buyer"] .button-secondary:hover:not(:disabled),
body[data-theme="buyer"] .button-quiet:hover:not(:disabled) {
  border-color: var(--blue);
  background: var(--blue-soft);
  color: var(--ink);
}

body[data-theme="buyer"] .button:disabled {
  border-color: var(--line);
  background: color-mix(in srgb, var(--surface) 76%, var(--canvas));
  color: var(--v5-disabled-text, #405d77);
  box-shadow: none;
  cursor: not-allowed;
  opacity: 1;
}

body[data-theme="buyer"] .text-button {
  min-width: 44px;
  min-height: 44px;
  color: var(--blue);
  font-size: 0.8125rem;
  font-weight: 600;
}

body[data-theme="buyer"] .mode-switch {
  margin-bottom: 28px;
  border: 1px solid var(--line-strong);
  border-radius: 99px;
  padding: 4px;
  background: color-mix(in srgb, var(--surface) 80%, transparent);
}

body[data-theme="buyer"] .mode-switch button {
  min-height: 40px;
  border-radius: 99px;
  color: var(--muted);
  font-weight: 600;
}

body[data-theme="buyer"] .mode-switch button.is-active {
  background: var(--charcoal);
  color: #f2f7fc;
}

/* Intake. */
body[data-theme="buyer"] .intake-section {
  border-color: var(--line);
  padding-block: 26px;
}

body[data-theme="buyer"] .intake-problem {
  padding-top: 0;
}

body[data-theme="buyer"] .section-heading {
  margin-bottom: 16px;
}

body[data-theme="buyer"] .section-heading h3 {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
}

body[data-theme="buyer"] .section-number {
  width: auto;
  height: auto;
  border-radius: 0;
  background: transparent;
  color: var(--v5-red-text, var(--red));
  font-family: var(--font-mono);
  font-size: 0.75rem;
}

body[data-theme="buyer"] .boundary-label,
body[data-theme="buyer"] .optional-label {
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface-raised, var(--surface)) 76%, transparent);
  color: var(--faint);
  font-size: 0.75rem;
  font-weight: 500;
}

body[data-theme="buyer"] .field {
  gap: 8px;
}

body[data-theme="buyer"] .field > span {
  color: var(--muted);
  font-size: 0.84375rem;
  font-weight: 500;
}

body[data-theme="buyer"] .field small {
  color: var(--faint);
  font-size: 0.78125rem;
}

body[data-theme="buyer"] .field input,
body[data-theme="buyer"] .field textarea,
body[data-theme="buyer"] .field select {
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 13px 16px;
  background: color-mix(in srgb, var(--ink) 5%, transparent);
  box-shadow: none;
  color: var(--ink);
  font-size: 1rem;
}

body[data-theme="buyer"] .field textarea {
  min-height: 126px;
  line-height: 1.6;
}

body[data-theme="buyer"] .field input:hover,
body[data-theme="buyer"] .field textarea:hover,
body[data-theme="buyer"] .field select:hover {
  border-color: var(--line-strong);
}

body[data-theme="buyer"] .field input:focus,
body[data-theme="buyer"] .field textarea:focus,
body[data-theme="buyer"] .field select:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--blue) 16%, transparent);
}

body[data-theme="buyer"] .required-mark {
  color: var(--v5-red-text, var(--red));
}

body[data-theme="buyer"] .file-grid {
  gap: 12px;
}

body[data-theme="buyer"] .file-control {
  min-height: 90px;
  border-color: var(--line-strong);
  border-radius: 12px;
  padding: 16px 18px;
  background: transparent;
}

body[data-theme="buyer"] .file-control:hover {
  border-color: var(--blue);
  background: var(--blue-soft);
}

body[data-theme="buyer"] .file-control-title {
  font-size: 0.90625rem;
  font-weight: 600;
}

body[data-theme="buyer"] .file-control > span:not(.file-control-title),
body[data-theme="buyer"] .file-control input,
body[data-theme="buyer"] .quiet-note {
  color: var(--faint);
  font-size: 0.8125rem;
}

body[data-theme="buyer"] .evidence-item {
  border-color: var(--line);
  padding: 12px 0 2px;
}

body[data-theme="buyer"] .file-kind {
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: transparent;
  color: var(--ink);
}

body[data-theme="buyer"] .intake-explainer,
body[data-theme="buyer"] .separate-link-notice {
  border: 1px solid color-mix(in srgb, var(--blue) 28%, transparent);
  border-radius: 12px;
  padding: 14px 18px;
  background: var(--blue-soft);
  color: var(--muted);
}

body[data-theme="buyer"] .intake-explainer strong,
body[data-theme="buyer"] .separate-link-notice strong {
  color: var(--blue);
}

body[data-theme="buyer"] .structure-result {
  border-color: var(--line);
  padding-top: 28px;
}

body[data-theme="buyer"] .structure-result h3 {
  font-family: var(--font-body);
  font-size: 1.3125rem;
  font-weight: 600;
}

/* Truthfulness and operational state chips remain textually and chromatically distinct. */
body[data-theme="buyer"] .source-badge,
body[data-theme="buyer"] .confidence,
body[data-theme="buyer"] .response-count,
body[data-theme="buyer"] .payment-state,
body[data-theme="buyer"] .secured-badge,
body[data-theme="buyer"] .status-chip {
  min-height: 28px;
  border-radius: 99px;
  padding: 5px 11px;
  font-size: 0.75rem;
  font-weight: 600;
}

body[data-theme="buyer"] .source-badge.is-live,
body[data-theme="buyer"] .source-badge.is-api,
body[data-theme="buyer"] .secured-badge,
body[data-theme="buyer"] .status-chip.is-responded,
body[data-theme="buyer"] .status-chip.is-completed {
  border-color: color-mix(in srgb, var(--green) 38%, transparent);
  background: var(--green-soft);
  color: var(--green);
}

body[data-theme="buyer"] .source-badge.is-fixture,
body[data-theme="buyer"] .response-count,
body[data-theme="buyer"] .payment-state,
body[data-theme="buyer"] .status-chip.is-pending {
  border-color: color-mix(in srgb, var(--amber) 40%, transparent);
  background: var(--amber-soft);
  color: var(--amber);
}

body[data-theme="buyer"] .source-badge.is-local-demo,
body[data-theme="buyer"] .status-chip.is-sent,
body[data-theme="buyer"] .status-chip.is-viewed,
body[data-theme="buyer"] .status-chip.is-funded,
body[data-theme="buyer"] .status-chip.is-in_progress {
  border-color: color-mix(in srgb, var(--blue) 36%, transparent);
  background: var(--blue-soft);
  color: var(--blue);
}

body[data-theme="buyer"] .status-chip.is-failed,
body[data-theme="buyer"] .status-chip.is-declined,
body[data-theme="buyer"] .status-chip.is-cannot_help {
  border-color: color-mix(in srgb, var(--red) 38%, transparent);
  background: var(--red-soft);
  color: var(--v5-danger-text, #b5232e);
}

body[data-theme="buyer"] .confidence,
body[data-theme="buyer"] .status-chip.is-ready {
  border-color: var(--line);
  background: color-mix(in srgb, var(--surface-raised, var(--surface)) 76%, transparent);
  color: var(--muted);
}

body[data-theme="buyer"] .response-count.is-ready {
  border-color: color-mix(in srgb, var(--green) 38%, transparent);
  background: var(--green-soft);
  color: var(--green);
}

body[data-theme="buyer"] .missing-strip,
body[data-theme="buyer"] .complete-strip,
body[data-theme="buyer"] .warning-strip,
body[data-theme="buyer"] .safety-boundary,
body[data-theme="buyer"] .payment-boundary,
body[data-theme="buyer"] .payment-evidence-pending {
  border: 1px solid color-mix(in srgb, var(--amber) 36%, transparent);
  border-radius: 12px;
  padding: 14px 18px;
  background: var(--amber-soft);
  color: var(--v5-warning-text, var(--amber));
}

body[data-theme="buyer"] .complete-strip {
  border-color: color-mix(in srgb, var(--green) 36%, transparent);
  background: var(--green-soft);
  color: var(--v5-success-text, var(--green));
}

body[data-theme="buyer"] .safety-boundary {
  border-color: color-mix(in srgb, var(--red) 34%, transparent);
  background: var(--red-soft);
  color: var(--v5-danger-text, #b5232e);
}

body[data-theme="buyer"] .payment-evidence-pending {
  border-color: color-mix(in srgb, var(--blue) 32%, transparent);
  background: var(--blue-soft);
  color: var(--blue);
}

body[data-theme="buyer"] .manual-fields {
  border-color: var(--line);
}

body[data-theme="buyer"] .manual-fields > summary,
body[data-theme="buyer"] .alternatives > summary,
body[data-theme="buyer"] .developer-utility > summary,
body[data-theme="buyer"] .project-update > summary {
  min-height: 48px;
  color: var(--ink);
}

body[data-theme="buyer"] .summary-status,
body[data-theme="buyer"] .match-more summary,
body[data-theme="buyer"] .solution-details > summary,
body[data-theme="buyer"] .project-update > summary {
  color: var(--blue);
}

body[data-theme="buyer"] .priority-grid {
  gap: 10px;
}

body[data-theme="buyer"] .priority-option,
body[data-theme="buyer"] .outreach-mode {
  position: relative;
  min-height: 82px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 15px 16px;
  background-color: var(--surface);
  background-image: var(--v5-card-background);
  color: var(--ink);
}

body[data-theme="buyer"] .priority-option:hover,
body[data-theme="buyer"] .outreach-mode:hover {
  border-color: color-mix(in srgb, var(--blue) 48%, transparent);
}

body[data-theme="buyer"] .outreach-mode.is-selected {
  border-color: var(--v5-selected-border, var(--blue));
  background-image: var(--v5-card-background-strong);
  box-shadow: none;
  color: var(--v5-selected-text, var(--ink));
}

body[data-theme="buyer"] .priority-option.is-selected {
  border-color: var(--v5-priority-selected-border, #0e2138);
  background: var(
    --v5-priority-selected-background,
    linear-gradient(150deg, #23394f, #0e1f33)
  );
  box-shadow: none;
  color: var(--v5-priority-selected-text, #f2f7fc);
}

body[data-theme="buyer"] .priority-option.is-selected small {
  color: var(--v5-priority-selected-muted, #9db6cf);
}

body[data-theme="buyer"] .priority-radio {
  width: 12px;
  height: 12px;
  flex: 0 0 12px;
  margin: 0 3px;
  border: 2px solid var(--v5-diamond-border-off, #22364d);
  border-radius: 1px;
  background: transparent;
  transform: rotate(45deg);
  transition:
    border-color 0.22s ease,
    background-color 0.22s ease;
}

body[data-theme="buyer"] .priority-option.is-selected .priority-radio {
  border-color: var(--v5-diamond-border-on, #a81f2a);
  background: var(--v5-diamond-fill-on, #a81f2a);
}

/*
 * Canon V5 selection mark: a 12px diamond (rotated square). The native
 * input is kept for semantics and keyboard support; only its paint is
 * replaced. Checked state fills with the red gradient per the canon.
 */
body[data-theme="buyer"] .solution-choice > input,
body[data-theme="buyer"] .candidate-select input,
body[data-theme="buyer"] .outreach-mode input,
body[data-theme="buyer"] .response-select input {
  width: 12px;
  height: 12px;
  flex: 0 0 12px;
  margin: 5px 4px 0;
  appearance: none;
  -webkit-appearance: none;
  border: 2px solid var(--v5-diamond-border-off, #22364d);
  border-radius: 1px;
  background: transparent;
  transform: rotate(45deg);
  cursor: pointer;
  transition:
    border-color 0.22s ease,
    background-color 0.22s ease;
}

body[data-theme="buyer"] .solution-choice > input:checked,
body[data-theme="buyer"] .candidate-select input:checked,
body[data-theme="buyer"] .outreach-mode input:checked,
body[data-theme="buyer"] .response-select input:checked {
  border-color: var(--v5-diamond-border-on, #a81f2a);
  background: var(--v5-diamond-fill-on, #a81f2a);
}

body[data-theme="buyer"] .solution-choice > input:focus-visible,
body[data-theme="buyer"] .candidate-select input:focus-visible,
body[data-theme="buyer"] .outreach-mode input:focus-visible,
body[data-theme="buyer"] .response-select input:focus-visible {
  outline: 1px solid var(--red);
  outline-offset: 4px;
}

body[data-theme="buyer"] .solution-choice > input:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

body[data-theme="buyer"] .primary-action-row {
  margin-top: 28px;
  border-color: var(--line);
  padding-top: 26px;
}

body[data-theme="buyer"] .primary-action-row span {
  color: var(--faint);
  font-size: 0.84375rem;
}

body[data-theme="buyer"] .action-band {
  border-left: 1px solid var(--line);
  padding: 24px 26px;
}

/* Buyer-reviewed Need Profile and solution pathways. */
body[data-theme="buyer"] .need-report {
  --surface: var(--v5-surface, #f7fafd);
  --surface-muted: var(--v5-surface-raised, #fbfdff);
  --ink: var(--v5-text, #12263c);
  --muted: var(--v5-muted, #4a627a);
  --faint: var(--v5-faint-readable, #537089);
  --line: var(--v5-line, rgba(18, 38, 60, 0.1));
  --line-strong: var(--v5-line-strong, rgba(18, 38, 60, 0.22));
  --charcoal: var(--v5-primary-bg, #12263c);
  --charcoal-soft: var(--v5-text, #12263c);
  --blue: var(--v5-blue, #1d5a8a);
  --blue-dark: var(--v5-blue, #1d5a8a);
  --blue-soft: var(--v5-blue-soft, rgba(46, 100, 158, 0.1));
  --red: var(--v5-red-text, #c22f3a);
  --red-soft: var(--v5-red-soft, rgba(194, 47, 58, 0.09));
  --green: var(--v5-success-text, #256b42);
  --green-soft: var(--v5-success-soft, rgba(46, 125, 79, 0.1));
  --amber: var(--v5-warning-text, #755f22);
  --amber-soft: var(--v5-warning-soft, rgba(156, 117, 20, 0.1));
  border: 1px solid var(--line);
  border-radius: 18px;
  background-color: var(--surface);
  background-image: var(--v5-card-background-strong);
  color: var(--ink);
  box-shadow: var(--shadow);
}

body[data-theme="buyer"] .report-heading {
  border-color: var(--line);
  padding: 20px 34px;
  background: color-mix(in srgb, var(--surface-raised, var(--surface)) 60%, transparent);
}

body[data-theme="buyer"] .report-wordmark {
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 3px;
}

body[data-theme="buyer"] .report-heading p {
  color: var(--faint);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: none;
}

body[data-theme="buyer"] .report-title {
  padding: 32px 34px 30px;
}

body[data-theme="buyer"] .report-title h2 {
  max-width: 800px;
  font-family: var(--font-body);
  font-size: clamp(1.75rem, 3vw, 2rem);
  font-weight: 500;
  letter-spacing: -0.5px;
  line-height: 1.22;
}

body[data-theme="buyer"] .solution-report,
body[data-theme="buyer"] .report-evidence {
  padding: 32px 34px;
}

body[data-theme="buyer"] .solution-report-heading h2 {
  font-family: var(--font-body);
  font-size: 1.875rem;
  font-weight: 500;
  letter-spacing: -0.6px;
}

body[data-theme="buyer"] .solution-count,
body[data-theme="buyer"] .selection-count {
  border: 1px solid var(--line);
  border-radius: 99px;
  background: transparent;
  color: var(--faint);
  font-weight: 500;
}

body[data-theme="buyer"] .solution-grid {
  gap: 14px;
  margin-top: 28px;
}

body[data-theme="buyer"] .solution-option,
body[data-theme="buyer"] .candidate-card,
body[data-theme="buyer"] .response-card,
body[data-theme="buyer"] .outreach-item {
  border: 1px solid var(--line);
  border-radius: 16px;
  background-color: var(--surface);
  background-image: var(--v5-card-background);
  box-shadow: none;
}

body[data-theme="buyer"] .solution-option.is-selected,
body[data-theme="buyer"] .candidate-card.is-selected,
body[data-theme="buyer"] .response-card.is-selected {
  border-color: var(--v5-selected-border, var(--blue));
  background-image: var(--v5-card-background-strong);
  box-shadow: none;
}

body[data-theme="buyer"] .solution-choice {
  min-height: 234px;
  gap: 14px;
  padding: 24px 22px 16px;
}

body[data-theme="buyer"] .solution-option-meta {
  color: var(--faint);
  font-family: var(--font-body);
  font-size: 0.8125rem;
  text-transform: none;
}

body[data-theme="buyer"] .recommended-label {
  color: var(--v5-red-text, var(--red));
}

body[data-theme="buyer"] .solution-title {
  font-family: var(--font-body);
  font-size: 1.03125rem;
  font-weight: 600;
  line-height: 1.35;
}

body[data-theme="buyer"] .solution-summary {
  color: var(--muted);
  font-size: 0.84375rem;
  line-height: 1.6;
}

body[data-theme="buyer"] .solution-details {
  border-color: var(--line);
}

body[data-theme="buyer"] .solution-details > summary {
  min-height: 44px;
  padding: 12px 22px 14px;
  font-size: 0.84375rem;
  font-weight: 500;
}

body[data-theme="buyer"] .selected-scope {
  margin-top: 24px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 18px;
  background: color-mix(in srgb, var(--surface-raised, var(--surface)) 70%, transparent);
}

body[data-theme="buyer"] .selected-scope span {
  color: var(--faint);
  font-size: 0.75rem;
}

body[data-theme="buyer"] .report-evidence {
  border-color: var(--line);
  background: color-mix(in srgb, var(--surface-raised, var(--surface)) 60%, transparent);
}

body[data-theme="buyer"] .need-profile {
  border: 1px solid var(--line);
  border-radius: 16px;
  background-color: var(--surface);
  background-image: var(--v5-card-background);
  box-shadow: none;
  overflow: hidden;
}

body[data-theme="buyer"] .profile-label,
body[data-theme="buyer"] dt,
body[data-theme="buyer"] .profile-lists > div > span,
body[data-theme="buyer"] .provenance-row > span {
  color: var(--faint);
  font-family: var(--font-body);
  font-size: 0.78125rem;
  font-weight: 500;
  text-transform: none;
}

body[data-theme="buyer"] .need-profile-main h3 {
  font-family: var(--font-body);
  font-size: 1.625rem;
  font-weight: 500;
  letter-spacing: -0.4px;
}

body[data-theme="buyer"] .profile-facts,
body[data-theme="buyer"] .selection-summary,
body[data-theme="buyer"] .payment-summary,
body[data-theme="buyer"] .deployment-facts {
  border-color: var(--line);
}

body[data-theme="buyer"] .profile-facts > div,
body[data-theme="buyer"] .selection-summary > div,
body[data-theme="buyer"] .payment-summary > div,
body[data-theme="buyer"] .deployment-facts > div {
  border-color: var(--line);
  padding: 15px 18px;
}

body[data-theme="buyer"] dd {
  font-size: 0.9375rem;
  font-weight: 600;
}

body[data-theme="buyer"] .tag-list span {
  border-color: var(--line);
  border-radius: 99px;
  background: color-mix(in srgb, var(--surface-raised, var(--surface)) 72%, transparent);
  color: var(--muted);
}

body[data-theme="buyer"] .inline-citations,
body[data-theme="buyer"] .citation-list li,
body[data-theme="buyer"] .alternative-list,
body[data-theme="buyer"] .alternative + .alternative,
body[data-theme="buyer"] .provenance-row,
body[data-theme="buyer"] .approach-grid {
  border-color: var(--line);
}

body[data-theme="buyer"] .inline-citations span,
body[data-theme="buyer"] .citation-list span {
  color: var(--faint);
}

body[data-theme="buyer"] .outcome-band {
  border: 0;
  border-radius: 18px;
  padding: 28px 30px;
  background: var(--v5-primary-background);
  color: var(--v5-primary-text, #f2f7fc);
}

body[data-theme="buyer"] .outcome-band .eyebrow {
  color: var(--v5-primary-accent, #ff8d92);
}

body[data-theme="buyer"] .outcome-band h2 {
  font-family: var(--font-body);
  font-size: 1.75rem;
  font-weight: 500;
}

body[data-theme="buyer"] .outcome-band p:not(.eyebrow) {
  color: var(--v5-primary-muted, #b9c9d8);
}

/* Candidate matching, outreach and comparison. */
body[data-theme="buyer"] .candidate-grid {
  gap: 14px;
}

body[data-theme="buyer"] .candidate-card {
  padding: 24px 22px;
}

body[data-theme="buyer"] .candidate-card:hover {
  border-color: color-mix(in srgb, var(--blue) 48%, transparent);
  transform: translateY(-2px);
}

body[data-theme="buyer"] .candidate-rank {
  top: 18px;
  right: 18px;
  min-width: auto;
  padding: 0;
  background: transparent;
  color: var(--faint);
  font-size: 0.75rem;
}

body[data-theme="buyer"] .candidate-select {
  min-height: 44px;
  margin-bottom: 10px;
  color: var(--blue);
  font-size: 0.8125rem;
  font-weight: 600;
}

body[data-theme="buyer"] .candidate-heading h3,
body[data-theme="buyer"] .outreach-heading h3 {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  font-weight: 600;
}

body[data-theme="buyer"] .match-score {
  min-width: 62px;
  min-height: auto;
  place-items: start;
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 2.125rem;
  font-weight: 600;
}

body[data-theme="buyer"] .candidate-heading .match-score {
  color: var(--v5-red-text, var(--red));
}

body[data-theme="buyer"] .candidate-section,
body[data-theme="buyer"] .match-more {
  border-color: var(--line);
}

body[data-theme="buyer"] .candidate-section > strong {
  color: var(--faint);
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: none;
}

body[data-theme="buyer"] .candidate-section ul,
body[data-theme="buyer"] .outreach-mode small,
body[data-theme="buyer"] .section-intro,
body[data-theme="buyer"] .delivery-row small,
body[data-theme="buyer"] .response-signal {
  color: var(--muted);
}

body[data-theme="buyer"] .outreach-approval {
  padding: 26px;
}

body[data-theme="buyer"] .outreach-approval-heading h2 {
  font-family: var(--font-body);
  font-size: 1.5rem;
  font-weight: 500;
}

body[data-theme="buyer"] .outreach-modes {
  gap: 10px;
}

body[data-theme="buyer"] .outreach-mode.is-unavailable {
  background: color-mix(in srgb, var(--surface) 76%, var(--canvas));
  color: var(--muted);
}

body[data-theme="buyer"] .outreach-mode.is-unavailable:not(.is-selected) {
  opacity: 1;
}

body[data-theme="buyer"] .outreach-item {
  padding: 22px 24px;
}

body[data-theme="buyer"] .delivery-grid {
  border-color: var(--line);
}

body[data-theme="buyer"] .delivery-row {
  border-color: var(--line);
}

body[data-theme="buyer"] .delivery-row span {
  color: var(--faint);
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: none;
}

body[data-theme="buyer"] .secure-link-row code {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.75rem;
}

body[data-theme="buyer"] .response-signal strong {
  color: var(--green);
}

body[data-theme="buyer"] .response-grid {
  gap: 14px;
}

body[data-theme="buyer"] .response-card {
  opacity: 1;
}

body[data-theme="buyer"] .response-card.is-declined,
body[data-theme="buyer"] .response-card.is-invalid {
  border-style: dashed;
  background-image: none;
  background-color: color-mix(in srgb, var(--surface) 76%, var(--canvas));
  opacity: 1;
}

body[data-theme="buyer"] .response-select {
  min-height: 80px;
  border-color: var(--line);
  padding: 16px 20px;
  background: transparent;
}

body[data-theme="buyer"] .response-select .match-score {
  min-width: 52px;
  min-height: auto;
  font-size: 1.25rem;
}

body[data-theme="buyer"] .comparison-facts > div {
  border-color: var(--line);
  padding: 13px 20px;
}

body[data-theme="buyer"] .comparison-facts dd {
  color: var(--ink);
  font-weight: 500;
}

/* Selection, payment, delivery and receipt. */
body[data-theme="buyer"] .terminal-panel h2,
body[data-theme="buyer"] .selection-panel h2 {
  font-family: var(--font-body);
  font-size: clamp(2rem, 4vw, 2.5rem);
  font-weight: 500;
  letter-spacing: -0.8px;
}

body[data-theme="buyer"] .terminal-copy {
  color: var(--muted);
  line-height: 1.6;
}

body[data-theme="buyer"] .payment-panel,
body[data-theme="buyer"] .deployment-summary {
  position: relative;
  overflow: hidden;
}

body[data-theme="buyer"] .payment-panel {
  background-image:
    var(--v5-noise-strong),
    var(--v5-glow-red),
    var(--v5-card-gradient);
}

body[data-theme="buyer"] .payment-heading p,
body[data-theme="buyer"] .deployment-heading p {
  color: var(--muted);
}

body[data-theme="buyer"] .payment-evidence {
  border-color: var(--line);
}

body[data-theme="buyer"] .payment-evidence-heading h3,
body[data-theme="buyer"] .milestone-funding-heading h3,
body[data-theme="buyer"] .milestone-update-heading h3 {
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 600;
}

body[data-theme="buyer"] .service-fee-disclosure {
  border: 1px solid color-mix(in srgb, var(--blue) 28%, transparent);
  border-radius: 10px;
  background: var(--blue-soft);
  color: var(--blue);
}

body[data-theme="buyer"] .developer-utility {
  border-color: var(--line);
}

body[data-theme="buyer"] .secured-badge {
  background: var(--green-soft);
}

body[data-theme="buyer"] .project-current {
  gap: 14px;
  background: transparent;
}

body[data-theme="buyer"] .project-current > div {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 24px 28px;
  background-color: var(--surface);
  background-image: var(--v5-card-background);
  color: var(--ink);
}

body[data-theme="buyer"] .project-current > div:first-child {
  background-image:
    var(--v5-noise-strong),
    radial-gradient(80% 120% at 0% 100%, rgba(120, 170, 215, 0.3) 0%, transparent 65%),
    var(--v5-card-gradient);
}

body[data-theme="buyer"] .project-current span,
body[data-theme="buyer"] .project-current small {
  color: var(--faint);
}

body[data-theme="buyer"] .project-current strong {
  font-family: var(--font-body);
  font-size: 1.3125rem;
  font-weight: 600;
}

body[data-theme="buyer"] .progress-track {
  height: 4px;
  background: color-mix(in srgb, var(--ink) 10%, transparent);
}

body[data-theme="buyer"] .progress-track span {
  background: var(--red);
}

body[data-theme="buyer"] .milestone-list li {
  border-color: var(--line);
  padding-block: 17px;
}

body[data-theme="buyer"] .milestone-index {
  width: 32px;
  height: 32px;
  border-color: var(--line-strong);
  color: var(--faint);
}

body[data-theme="buyer"] .milestone-list li.is-funded .milestone-index,
body[data-theme="buyer"] .milestone-list li.is-in_progress .milestone-index,
body[data-theme="buyer"] .milestone-list li.is-completed .milestone-index {
  border-color: var(--green);
  background: var(--green-soft);
  color: var(--green);
}

body[data-theme="buyer"] .milestone-evidence {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: color-mix(in srgb, var(--surface-raised, var(--surface)) 76%, transparent);
}

body[data-theme="buyer"] .milestone-evidence.is-authoritative {
  border-color: color-mix(in srgb, var(--green) 36%, transparent);
  background: var(--green-soft);
  color: var(--green);
}

body[data-theme="buyer"] .milestone-evidence.is-pending {
  border-color: color-mix(in srgb, var(--amber) 36%, transparent);
  background: var(--amber-soft);
  color: var(--amber);
}

body[data-theme="buyer"] .milestone-evidence.is-local-demo {
  border-color: color-mix(in srgb, var(--blue) 34%, transparent);
  background: var(--blue-soft);
  color: var(--blue);
}

body[data-theme="buyer"] .milestone-funding-panel,
body[data-theme="buyer"] .milestone-update-form {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 20px;
  background-color: var(--surface);
  background-image: var(--v5-card-background);
}

body[data-theme="buyer"] .milestone-update-form {
  border-radius: 14px;
}

body[data-theme="buyer"] .speed-receipt {
  border-radius: 18px;
}

body[data-theme="buyer"] .speed-baseline {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: color-mix(in srgb, var(--ink) 6%, transparent);
  color: var(--ink);
}

body[data-theme="buyer"] .speed-baseline span {
  color: var(--faint);
}

body[data-theme="buyer"] .speed-receipt-events li {
  border-color: var(--line);
}

body[data-theme="buyer"] .receipt-marker {
  border-color: var(--line-strong);
  background: var(--surface);
}

body[data-theme="buyer"] .speed-receipt-events li.is-complete .receipt-marker {
  border-color: var(--green);
  background: var(--green);
  box-shadow: inset 0 0 0 2px var(--surface);
}

body[data-theme="buyer"] .speed-receipt-events time,
body[data-theme="buyer"] .receipt-pending-label {
  color: var(--faint);
  font-family: var(--font-mono);
  font-size: 0.75rem;
}

/* Activity, banners, empty/error/loading and supplier registry. */
body[data-theme="buyer"] .agent-timeline {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: color-mix(in srgb, var(--surface) 76%, transparent);
  box-shadow: none;
}

body[data-theme="buyer"] .agent-timeline > summary {
  min-height: 52px;
  border-radius: 16px;
  padding: 14px 18px;
}

body[data-theme="buyer"] .agent-pulse {
  background: var(--red);
  box-shadow: 0 0 0 5px color-mix(in srgb, var(--red) 14%, transparent);
}

body[data-theme="buyer"] .agent-latest {
  border-color: var(--line);
  background: transparent;
  color: var(--muted);
}

body[data-theme="buyer"] .agent-event-list > li {
  border-color: var(--line);
}

body[data-theme="buyer"] .agent-event-index {
  border-color: var(--line-strong);
  background: transparent;
  color: var(--faint);
}

body[data-theme="buyer"] .banner {
  min-height: 52px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 16px;
  background: var(--surface);
  color: var(--muted);
}

body[data-theme="buyer"] .banner.is-loading {
  border-color: color-mix(in srgb, var(--blue) 34%, transparent);
  background: var(--blue-soft);
}

body[data-theme="buyer"] .banner.is-error {
  border-color: color-mix(in srgb, var(--red) 38%, transparent);
  background: var(--red-soft);
  color: var(--v5-danger-text, #b5232e);
}

body[data-theme="buyer"] .banner.is-success {
  border-color: color-mix(in srgb, var(--green) 38%, transparent);
  background: var(--green-soft);
  color: var(--v5-success-text, var(--green));
}

body[data-theme="buyer"] .spinner {
  border-color: color-mix(in srgb, var(--blue) 22%, transparent);
  border-top-color: var(--blue);
}

body[data-theme="buyer"] .loading-skeleton span {
  border-radius: 10px;
  background: color-mix(in srgb, var(--ink) 10%, transparent);
}

body[data-theme="buyer"] .inline-empty {
  min-height: 140px;
  border-color: var(--line-strong);
  border-radius: 16px;
  padding: 34px;
  background: color-mix(in srgb, var(--surface) 58%, transparent);
}

body[data-theme="buyer"] .registry-summary {
  gap: 14px;
  border: 0;
}

body[data-theme="buyer"] .registry-summary > div {
  min-height: 88px;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px 18px;
  background: color-mix(in srgb, var(--surface-raised, var(--surface)) 72%, transparent);
}

body[data-theme="buyer"] .registry-summary > div:last-child {
  border-right: 1px solid var(--line);
}

body[data-theme="buyer"] .registry-summary dt {
  color: var(--faint);
  font-size: 0.75rem;
  text-transform: none;
}

body[data-theme="buyer"] .registry-summary dd {
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.5rem;
  font-weight: 600;
}

body[data-theme="buyer"] .registry-table {
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
}

body[data-theme="buyer"] .registry-row {
  border-color: var(--line);
  background: color-mix(in srgb, var(--surface-raised, var(--surface)) 44%, transparent);
}

body[data-theme="buyer"] .registry-heading {
  background: color-mix(in srgb, var(--ink) 5%, transparent);
  color: var(--faint);
  font-weight: 500;
}

body[data-theme="buyer"] .registry-state {
  border-radius: 99px;
}

body[data-theme="buyer"] .registry-state-delivered {
  border-color: color-mix(in srgb, var(--green) 36%, transparent);
  background: var(--green-soft);
  color: var(--green);
}

/* Company marks stay restrained inside comparison and registry layouts. */
body[data-theme="buyer"] .company-identity {
  display: inline-flex;
  max-width: 100%;
  align-items: center;
  gap: 10px;
  vertical-align: middle;
}

body[data-theme="buyer"] .company-logo-shell {
  display: grid;
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 50%;
  padding: 4px;
  background: #f7fafd;
}

body[data-theme="buyer"] .company-logo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

body[data-theme="buyer"] .company-identity.is-compact .company-logo-shell {
  width: 34px;
  height: 34px;
  flex-basis: 34px;
}

@media (max-width: 960px) {
  body[data-theme="buyer"] .app-shell {
    width: min(100% - 40px, 1160px);
  }

  body[data-theme="buyer"] .hero-compact {
    grid-template-columns: 1fr;
  }

  body[data-theme="buyer"] .workspace-status {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border-top: 1px solid var(--line-strong);
    border-left: 0;
    padding: 16px 0 0;
  }

  body[data-theme="buyer"] .priority-grid,
  body[data-theme="buyer"] .candidate-grid,
  body[data-theme="buyer"] .solution-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body[data-theme="buyer"] .solution-option:last-child,
  body[data-theme="buyer"] .candidate-card:last-child {
    grid-column: 1 / -1;
  }

  body[data-theme="buyer"] .profile-lists,
  body[data-theme="buyer"] .outreach-modes {
    grid-template-columns: 1fr;
  }

  body[data-theme="buyer"] .payment-evidence-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  body[data-theme="buyer"] {
    font-size: 15px;
  }

  body[data-theme="buyer"] .app-shell {
    width: min(100% - 28px, 1160px);
    padding-bottom: 90px;
  }

  body[data-theme="buyer"] .product-header {
    min-height: 62px;
    padding-inline: 18px;
  }

  body[data-theme="buyer"] .product-context {
    display: none;
  }

  body[data-theme="buyer"] .product-wordmark {
    font-size: 0.9375rem;
    letter-spacing: 3px;
  }

  body[data-theme="buyer"] .product-header-meta {
    gap: 8px;
  }

  body[data-theme="buyer"] .product-phase-nav :where(button, span) {
    min-width: 44px;
    padding-inline: 9px;
    font-size: 0.75rem;
  }

  body[data-theme="buyer"] .hero,
  body[data-theme="buyer"] .hero-compact {
    padding: 42px 0 24px;
  }

  body[data-theme="buyer"] .hero h1,
  body[data-theme="buyer"] .hero-compact h1 {
    font-size: clamp(2rem, 10vw, 2.4rem);
  }

  body[data-theme="buyer"] .hero-copy {
    font-size: 0.96875rem;
  }

  body[data-theme="buyer"] .workspace-status {
    grid-template-columns: 1fr;
  }

  body[data-theme="buyer"] .journey {
    gap: 8px;
    padding: 12px 0 18px;
  }

  body[data-theme="buyer"] .journey-step,
  body[data-theme="buyer"] button.journey-step {
    min-height: 60px;
    justify-content: flex-start;
    gap: 8px;
    border-radius: 12px;
    padding: 10px;
  }

  body[data-theme="buyer"] .journey-number {
    width: 8px;
    height: 8px;
    flex-basis: 8px;
  }

  body[data-theme="buyer"] .journey-step strong {
    font-size: 0.8125rem;
  }

  body[data-theme="buyer"] .journey-step small {
    display: none;
  }

  body[data-theme="buyer"] .intake-form,
  body[data-theme="buyer"] .recommendation-panel,
  body[data-theme="buyer"] .alternatives,
  body[data-theme="buyer"] .terminal-panel,
  body[data-theme="buyer"] .selection-panel,
  body[data-theme="buyer"] .payment-panel,
  body[data-theme="buyer"] .deployment-summary,
  body[data-theme="buyer"] .speed-receipt,
  body[data-theme="buyer"] .unavailable-panel,
  body[data-theme="buyer"] .loading-skeleton,
  body[data-theme="buyer"] .action-band,
  body[data-theme="buyer"] .registry-panel {
    border-radius: 16px;
    padding: 22px 18px;
  }

  body[data-theme="buyer"] .panel-heading,
  body[data-theme="buyer"] .recommendation-heading,
  body[data-theme="buyer"] .structure-result-heading,
  body[data-theme="buyer"] .payment-heading,
  body[data-theme="buyer"] .deployment-heading,
  body[data-theme="buyer"] .speed-receipt-heading,
  body[data-theme="buyer"] .report-heading,
  body[data-theme="buyer"] .solution-report-heading,
  body[data-theme="buyer"] .selected-scope,
  body[data-theme="buyer"] .outreach-approval-heading,
  body[data-theme="buyer"] .milestone-funding-heading,
  body[data-theme="buyer"] .milestone-update-heading {
    display: grid;
    gap: 12px;
  }

  body[data-theme="buyer"] .panel-heading h2,
  body[data-theme="buyer"] .recommendation-heading h2,
  body[data-theme="buyer"] .payment-heading h2,
  body[data-theme="buyer"] .deployment-heading h2 {
    font-size: 1.625rem;
  }

  body[data-theme="buyer"] .demo-utilities,
  body[data-theme="buyer"] .demo-utilities .button,
  body[data-theme="buyer"] .outcome-actions,
  body[data-theme="buyer"] .outcome-actions .button {
    width: 100%;
  }

  body[data-theme="buyer"] .mode-switch {
    width: 100%;
  }

  body[data-theme="buyer"] .mode-switch button {
    min-width: 0;
  }

  body[data-theme="buyer"] .section-heading {
    align-items: flex-start;
  }

  body[data-theme="buyer"] .boundary-label,
  body[data-theme="buyer"] .optional-label {
    max-width: 130px;
    text-align: center;
  }

  body[data-theme="buyer"] .file-grid,
  body[data-theme="buyer"] .form-grid,
  body[data-theme="buyer"] .priority-grid,
  body[data-theme="buyer"] .candidate-grid,
  body[data-theme="buyer"] .response-grid,
  body[data-theme="buyer"] .solution-grid,
  body[data-theme="buyer"] .evidence-columns,
  body[data-theme="buyer"] .approach-grid,
  body[data-theme="buyer"] .delivery-grid,
  body[data-theme="buyer"] .profile-facts,
  body[data-theme="buyer"] .selection-summary,
  body[data-theme="buyer"] .payment-summary,
  body[data-theme="buyer"] .deployment-facts,
  body[data-theme="buyer"] .project-current {
    grid-template-columns: 1fr;
  }

  body[data-theme="buyer"] .solution-option:last-child,
  body[data-theme="buyer"] .candidate-card:last-child {
    grid-column: auto;
  }

  body[data-theme="buyer"] .report-heading,
  body[data-theme="buyer"] .report-title,
  body[data-theme="buyer"] .solution-report,
  body[data-theme="buyer"] .report-evidence {
    padding-right: 18px;
    padding-left: 18px;
  }

  body[data-theme="buyer"] .report-title h2 {
    font-size: 1.625rem;
  }

  body[data-theme="buyer"] .solution-choice {
    min-height: auto;
  }

  body[data-theme="buyer"] .source-stack {
    justify-content: flex-start;
  }

  body[data-theme="buyer"] .primary-action-row,
  body[data-theme="buyer"] .outcome-band {
    display: grid;
    gap: 18px;
  }

  body[data-theme="buyer"] .primary-action-row .button,
  body[data-theme="buyer"] .primary-action-row a.button {
    width: 100%;
  }

  body[data-theme="buyer"] .missing-strip,
  body[data-theme="buyer"] .complete-strip,
  body[data-theme="buyer"] .warning-strip,
  body[data-theme="buyer"] .safety-boundary,
  body[data-theme="buyer"] .payment-boundary,
  body[data-theme="buyer"] .payment-evidence-pending,
  body[data-theme="buyer"] .intake-explainer,
  body[data-theme="buyer"] .separate-link-notice {
    grid-template-columns: 1fr;
  }

  body[data-theme="buyer"] .profile-facts > div,
  body[data-theme="buyer"] .selection-summary > div,
  body[data-theme="buyer"] .payment-summary > div,
  body[data-theme="buyer"] .deployment-facts > div,
  body[data-theme="buyer"] .profile-facts > div:nth-child(2n),
  body[data-theme="buyer"] .selection-summary > div:nth-child(2n),
  body[data-theme="buyer"] .payment-summary > div:nth-child(2n),
  body[data-theme="buyer"] .deployment-facts > div:nth-child(2n) {
    min-height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  body[data-theme="buyer"] .profile-facts > div:last-child,
  body[data-theme="buyer"] .selection-summary > div:last-child,
  body[data-theme="buyer"] .payment-summary > div:last-child,
  body[data-theme="buyer"] .deployment-facts > div:last-child {
    border-bottom: 0;
  }

  body[data-theme="buyer"] .delivery-row,
  body[data-theme="buyer"] .delivery-row:last-child {
    min-height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  body[data-theme="buyer"] .delivery-row:last-child {
    border-bottom: 0;
  }

  body[data-theme="buyer"] .secure-link-row {
    display: grid;
  }

  body[data-theme="buyer"] .secure-link-row code {
    max-width: 100%;
    white-space: normal;
  }

  body[data-theme="buyer"] .secure-link-row > div {
    display: grid;
    grid-template-columns: 1fr;
  }

  body[data-theme="buyer"] .comparison-facts > div {
    grid-template-columns: 1fr;
    gap: 5px;
  }

  body[data-theme="buyer"] .milestone-update-form {
    grid-template-columns: 1fr;
  }

  body[data-theme="buyer"] .milestone-update-form > .button {
    width: 100%;
    margin-bottom: 0;
  }

  body[data-theme="buyer"] .milestone-list li {
    grid-template-columns: auto minmax(0, 1fr);
  }

  body[data-theme="buyer"] .milestone-progress {
    grid-column: 2;
  }

  body[data-theme="buyer"] .speed-baseline {
    display: grid;
  }

  body[data-theme="buyer"] .speed-receipt-events li {
    grid-template-columns: 18px minmax(0, 1fr);
  }

  body[data-theme="buyer"] .speed-receipt-events time,
  body[data-theme="buyer"] .receipt-pending-label {
    grid-column: 2;
  }

  body[data-theme="buyer"] .registry-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body[data-theme="buyer"] .registry-summary > div,
  body[data-theme="buyer"] .registry-summary > div:nth-child(-n + 2) {
    border: 1px solid var(--line);
  }

  body[data-theme="buyer"] .registry-heading {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
  }

  body[data-theme="buyer"] .registry-row:not(.registry-heading) {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 16px 18px;
  }

  body[data-theme="buyer"] .registry-row:not(.registry-heading) > div {
    display: grid;
    grid-template-columns: minmax(88px, 0.38fr) minmax(0, 1fr);
    gap: 10px;
  }

  body[data-theme="buyer"] .registry-row:not(.registry-heading) > div::before {
    color: var(--faint);
    font-size: 0.75rem;
    font-weight: 500;
  }

  body[data-theme="buyer"] .registry-row:not(.registry-heading) > div:nth-child(1)::before {
    content: "Supplier";
  }

  body[data-theme="buyer"] .registry-row:not(.registry-heading) > div:nth-child(2)::before {
    content: "Location";
  }

  body[data-theme="buyer"] .registry-row:not(.registry-heading) > div:nth-child(3)::before {
    content: "State";
  }

  body[data-theme="buyer"] .registry-row:not(.registry-heading) > div:nth-child(4)::before {
    content: "Last activity";
  }

  body[data-theme="buyer"] .registry-row:not(.registry-heading) > div:nth-child(5)::before {
    content: "Evidence";
  }
}

@media (max-width: 520px) {
  body[data-theme="buyer"] .product-header {
    min-height: auto;
    flex-wrap: wrap;
    row-gap: 6px;
    padding-block: 8px;
  }

  body[data-theme="buyer"] .product-header-meta {
    width: 100%;
    justify-content: space-between;
  }
}

@media (max-width: 390px) {
  body[data-theme="buyer"] .app-shell {
    width: calc(100% - 24px);
  }

  body[data-theme="buyer"] .product-header {
    padding-inline: 14px;
  }

  body[data-theme="buyer"] .product-header .button {
    padding-inline: 12px;
  }

  body[data-theme="buyer"] .journey-step,
  body[data-theme="buyer"] button.journey-step {
    padding-inline: 8px;
  }

  body[data-theme="buyer"] .journey-step strong {
    font-size: 0.75rem;
  }

  body[data-theme="buyer"] .registry-summary {
    grid-template-columns: 1fr;
  }
}

@media print {
  html[data-workspace-theme] body[data-theme="buyer"] {
    background: #fff !important;
    color: #12263c !important;
  }

  body[data-theme="buyer"] .speed-receipt {
    background: #fff !important;
    color: #12263c !important;
  }

  body[data-theme="buyer"] .speed-receipt,
  body[data-theme="buyer"] .speed-baseline,
  body[data-theme="buyer"] .speed-receipt-events li {
    border-color: #c9d2dc !important;
    box-shadow: none !important;
  }

  body[data-theme="buyer"] .speed-baseline {
    background: #f7fafd !important;
    color: #12263c !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  body[data-theme="buyer"] *,
  body[data-theme="buyer"] *::before,
  body[data-theme="buyer"] *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ===== V5 canon refinements (audit pass) ===== */

/* Programmatic focus targets (view headings) never show a mouse-visible ring. */
body[data-theme="buyer"] [tabindex="-1"]:focus {
  outline: none;
}

/* Canon view entry: vRise. */
@keyframes v5-rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

body[data-theme="buyer"] .view-stack {
  animation: v5-rise 0.55s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

/* Canon live-status pulse: vGlow. */
@keyframes v5-glow {
  0%,
  100% {
    opacity: 0.55;
  }
  50% {
    opacity: 1;
  }
}

body[data-theme="buyer"] .status-chip::before {
  display: inline-block;
  width: 7px;
  height: 7px;
  flex: 0 0 7px;
  margin-right: 7px;
  border-radius: 50%;
  background: currentColor;
  content: "";
  vertical-align: 0.5px;
}

body[data-theme="buyer"] .status-chip.is-sent::before,
body[data-theme="buyer"] .status-chip.is-viewed::before,
body[data-theme="buyer"] .status-chip.is-pending::before,
body[data-theme="buyer"] .status-chip.is-awaiting_payment::before {
  animation: v5-glow 2.2s ease-in-out infinite;
}

/* Canon footer: hairline top, two muted lines justified apart. */
body[data-theme="buyer"] .workspace-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px 24px;
  margin-top: 34px;
  border-top: 1px solid var(--line);
  padding: 22px 0 8px;
  color: var(--faint);
  font-size: 0.8125rem;
}

@media (prefers-reduced-motion: reduce) {
  body[data-theme="buyer"] .view-stack {
    animation: none;
  }

  body[data-theme="buyer"] .status-chip::before {
    animation: none;
  }
}
