/* Focused result, AI and adoption artwork. The shell owns the current panel. */
#scene .fp-value {
  --fv-paper: var(--paper);
  --fv-line: var(--muted);
  --fv-muted: var(--muted);
  --fv-teal: var(--ink);
  --fv-indigo: var(--ink);
  --fv-amber: var(--ink);
  --fv-rose: var(--ink);
  padding: 14px;
  font-size: 14px;
  line-height: 1.45;
}

#scene .fp-value :is(section, div, li, dl, dt, dd) {
  min-width: 0;
}

#scene .fp-value :is(h3, p, ol, dl, dd) {
  margin: 0;
}

#scene .fp-value ol {
  padding: 0;
  list-style: none;
}

#scene .fp-value :is(p, span, strong, h3, dt, dd) {
  word-break: normal;
  overflow-wrap: normal;
  hyphens: none;
}

#scene .fp-value .foundry-step-panel {
  position: relative;
  display: grid;
  align-content: center;
  gap: 12px;
  min-height: 250px;
  padding: 12px;
  border: 1px solid var(--muted);
  border-radius: 0;
  background: transparent;
}

#scene .fp-value .foundry-step-panel[hidden] {
  display: none !important;
}

#scene .fp-value .fv-panel-heading {
  display: grid;
  justify-items: center;
  gap: 4px;
  text-align: center;
}

#scene .fp-value .fv-heading {
  color: var(--ink);
  font-size: 18px;
  font-weight: 650;
  line-height: 1.3;
  text-wrap: balance;
}

#scene .fp-value .fv-copy {
  color: var(--fv-muted);
  font-size: 14px;
  line-height: 1.45;
  text-wrap: pretty;
}

#scene .fp-value .fv-label {
  display: block;
  color: var(--fv-indigo);
  font-size: 14px;
  font-weight: 650;
  line-height: 1.4;
}

#scene .fp-value .fw-art {
  width: 80px;
  height: 60px;
  max-width: 100%;
  flex-shrink: 0;
}

#scene .fp-value .fv-symbol {
  display: grid;
  align-content: start;
  justify-items: center;
  gap: 6px;
  text-align: center;
}

#scene .fp-value .fv-symbol-copy {
  display: grid;
  gap: 4px;
}

#scene .fp-value .fv-symbol-title {
  display: block;
  color: var(--ink);
  font-size: 15px;
  font-weight: 650;
  line-height: 1.35;
}

#scene .fp-value .fv-link {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  min-height: 30px;
  color: var(--fv-line);
  pointer-events: none;
}

#scene .fp-value .fv-link::before {
  position: absolute;
  top: calc(50% - 1px);
  right: 7px;
  left: 0;
  border-top: 2px solid currentColor;
  content: "";
}

#scene .fp-value .fv-link::after {
  position: absolute;
  top: calc(50% - 4px);
  right: 0;
  border-top: 4px solid transparent;
  border-bottom: 4px solid transparent;
  border-left: 7px solid currentColor;
  content: "";
}

#scene .fp-value .fv-link-left::before {
  right: 0;
  left: 7px;
}

#scene .fp-value .fv-link-left::after {
  right: auto;
  left: 0;
  border-right: 7px solid currentColor;
  border-left: 0;
}

#scene .fp-value .fv-link-label {
  position: relative;
  z-index: 1;
  padding: 4px;
  background: transparent;
  color: var(--fv-muted);
  font-size: 14px;
  line-height: 1.4;
  text-align: center;
}

#scene .fp-value .fv-product-station {
  position: relative;
  width: 96px;
  height: 72px;
  max-width: 100%;
  margin-inline: auto;
}

#scene .fp-value .fv-product-station > .fw-art-station {
  width: 100%;
  height: 100%;
}

#scene .fp-value .fv-product-station > .fw-art-transmitter {
  position: absolute;
  right: 3px;
  bottom: 15px;
  width: 36px;
  height: 27px;
}

#scene .fp-value .fv-boundary-note {
  padding-top: 8px;
  border-top: 1px solid var(--muted);
  text-align: center;
}

/* 8 · One failed transmitter, its context, and the next human investigation. */
#scene .fp-results .fv-failed-unit {
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  align-items: center;
  border-color: var(--muted);
  background: transparent;
}

#scene .fp-results .fv-failure-drawing {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 26px minmax(0, 1fr);
  align-items: center;
}

#scene .fp-results .fv-failure-drawing > .fw-art {
  width: 128px;
  height: 96px;
}

#scene .fp-results .fv-failure-copy {
  display: grid;
  justify-items: start;
  gap: 10px;
}

#scene .fp-results .fv-failed-status {
  padding: 5px 10px;
  border-left: 1px solid var(--fv-rose);
  color: var(--ink);
  font-size: 15px;
  font-weight: 650;
}

#scene .fp-results .fv-isolated-result {
  justify-items: stretch;
  border-style: dashed;
  background: transparent;
  text-align: center;
}

#scene .fp-results .fv-isolation-diagram {
  display: grid;
  grid-template-columns: 142px 24px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
}

#scene .fp-results .fv-detached-record {
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: 12px;
  border: 1px solid var(--muted);
  border-radius: 0 0 0 0;
  background: transparent;
  box-shadow: none;
}

#scene .fp-results .fv-record-art {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

#scene .fp-results .fv-record-art .fw-art {
  width: 50px;
  height: 45px;
}

#scene .fp-results .fv-record-status {
  color: var(--ink);
  font-size: 17px;
  font-weight: 650;
  line-height: 1.3;
}

#scene .fp-results .fv-missing-context {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

#scene .fp-results .fv-missing {
  padding: 10px 4px;
  border: 1px dashed var(--muted);
  border-radius: 0;
}

#scene .fp-results .fv-missing .fw-art {
  width: 64px;
  height: 48px;
  opacity: .65;
}

#scene .fp-results .fv-isolation-diagram > .fv-link::before {
  border-top-style: dashed;
}

#scene .fp-results .fv-context-map {
  background: transparent;
}

#scene .fp-results .fv-context-body {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr);
  align-items: center;
  gap: 16px;
}

#scene .fp-results .fv-linked-result {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 6px;
  padding: 12px 6px;
  border: 1px solid var(--muted);
  border-radius: 0;
  background: transparent;
}

#scene .fp-results .fv-linked-result::after {
  position: absolute;
  top: 50%;
  right: -18px;
  width: 16px;
  border-top: 1px solid var(--muted);
  content: "";
}

#scene .fp-results .fv-context-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px 12px;
  padding-left: 14px;
  border-left: 1px solid var(--muted);
}

#scene .fp-results .fv-context-field {
  padding-bottom: 6px;
  border-bottom: 1px solid var(--muted);
}

#scene .fp-results .fv-context-field dt {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 3px;
  color: var(--fv-teal);
  font-size: 14px;
  font-weight: 650;
}

#scene .fp-results .fv-context-field dt .fw-art {
  width: 28px;
  height: 21px;
  margin: 0;
}

#scene .fp-results .fv-context-field dd {
  color: var(--ink);
  font-size: 14px;
  line-height: 1.35;
}

#scene .fp-results .fv-context-note {
  text-align: center;
}

#scene .fp-results .fv-evidence {
  border-color: var(--muted);
  background: transparent;
}

#scene .fp-results .fv-comparison {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 20px minmax(0, 1.45fr) 20px minmax(0, 1fr);
  align-items: center;
  gap: 6px;
}

#scene .fp-results .fv-source-record {
  display: grid;
  justify-items: center;
  gap: 6px;
  padding: 10px 6px;
  border: 1px solid var(--muted);
  border-radius: 0;
  background: transparent;
  text-align: center;
}

#scene .fp-results .fv-record-label {
  display: block;
  width: 100%;
  padding-top: 6px;
  border-top: 1px double var(--muted);
  color: var(--ink);
  font-size: 14px;
}

#scene .fp-results .fv-evidence-gate {
  display: grid;
  justify-items: center;
  gap: 6px;
  padding: 8px;
  border: 1px dashed var(--muted);
  border-radius: 0;
  background: transparent;
  text-align: center;
}

#scene .fp-results .fv-evidence-gate .fw-art {
  width: 60px;
  height: 45px;
}

#scene .fp-results .fv-reasoning {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

#scene .fp-results .fv-reasoning > li {
  position: relative;
  display: grid;
  align-content: start;
  justify-items: center;
  gap: 8px;
  padding: 10px 8px;
  border-bottom: 1px solid var(--muted);
  background: transparent;
  text-align: center;
}

/* Observation → hypothesis → decision: a chevron in each gap, not a floating dash. */
#scene .fp-results .fv-reasoning > li:not(:last-child)::after {
  position: absolute;
  top: 38px;
  right: -12px;
  width: 8px;
  height: 8px;
  border-top: 1px solid var(--muted);
  border-right: 1px solid var(--muted);
  transform: rotate(45deg);
  content: "";
}

#scene .fp-results :is(.fv-reasoning-art, .fv-hypothesis-art) {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 64px;
}

#scene .fp-results .fv-reasoning-art .fw-art {
  width: 58px;
  height: 48px;
}

#scene .fp-results .fv-hypothesis-art .fw-art {
  width: 42px;
  height: 42px;
}

#scene .fp-results .fv-reasoning .fv-hypothesis {
  border-bottom-style: dashed;
  border-bottom-color: var(--fv-amber);
}

#scene .fp-results .fv-hypothesis .fv-label {
  color: var(--fv-amber);
}

#scene .fp-results .fv-reasoning .fv-decision {
  border-bottom-color: var(--fv-teal);
}

#scene .fp-results .fv-decision .fv-label {
  color: var(--fv-teal);
}

/* 9 · The agent works through standard MCP tools; permissions stay separate. */
#scene .fp-ai .fv-task-scope {
  border-style: dashed;
}

#scene .fp-ai .fv-task-product {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

#scene .fp-ai .fv-task-product-copy {
  display: grid;
  gap: 4px;
}

#scene .fp-ai .fv-ai-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  border: 1px solid var(--muted);
  border-radius: 50%;
  color: var(--ink);
  font-size: 16px;
  font-weight: 650;
}

/* (authority panel removed; permissions moved into the run panel.) */

#scene .fp-ai .fv-permissions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

#scene .fp-ai .fv-permission {
  display: grid;
  align-content: start;
  justify-items: center;
  gap: 7px;
  padding: 10px 8px;
  border: 1px dashed var(--muted);
  border-top: 1px double var(--fv-indigo);
  border-radius: 0;
  background: transparent;
  text-align: center;
}

#scene .fp-ai .fv-permission:nth-child(2) {
  border-top-color: var(--muted);
}

#scene .fp-ai .fv-permission:nth-child(3) {
  border-top-color: var(--fv-amber);
}

#scene .fp-ai .fv-permission > :is(.fw-art, .fv-product-station) {
  width: 72px;
  height: 54px;
}

#scene .fp-ai :is(.fv-mcp-flow, .fv-build-flow, .fv-debug-flow) {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 104px minmax(0, 1fr);
  align-items: center;
  gap: 6px;
}

@container foundry-visual (min-width: 560px) {
  #scene .fp-ai :is(.fv-mcp-flow, .fv-build-flow, .fv-debug-flow) .fv-link-label {
    position: absolute;
    top: calc(50% + 10px);
    width: 100%;
    background: transparent;
  }
}

#scene .fp-ai :is(.fv-ai-proposal, .fv-build-result) {
  display: grid;
  align-content: start;
  align-self: stretch;
  justify-items: center;
  gap: 8px;
  padding: 12px;
  text-align: center;
}

#scene .fp-ai .fv-ai-proposal {
  border: 1px solid var(--muted);
  border-radius: 0 0 0 0;
  background: transparent;
  box-shadow: none;
}

#scene .fp-ai .fv-proposal-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 60px;
  gap: 4px;
}

#scene .fp-ai .fv-proposal-mark .fw-art {
  width: 50px;
  height: 45px;
}

#scene .fp-ai .fv-build-result {
  border: 1px solid var(--muted);
  border-radius: 0;
  background: transparent;
}

#scene .fp-ai .fv-run .fv-permission-note {
  display: grid;
  gap: 8px;
  padding-top: 10px;
  border-top: 1px solid var(--muted);
}

#scene .fp-ai .fv-run .fv-permission-note > .fv-label {
  justify-self: center;
}

#scene .fp-ai .fv-qualification-checks {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

#scene .fp-ai .fv-qualification-check {
  position: relative;
  display: grid;
  align-content: start;
  justify-items: center;
  gap: 6px;
  padding: 0 6px 8px;
  border-bottom: 1px solid var(--muted);
  text-align: center;
}

#scene .fp-ai .fv-qualification-check .fw-art {
  width: 56px;
  height: 42px;
}

/* Validate → check → run: a chevron in each gap shows the order. */
#scene .fp-ai .fv-qualification-check:not(:last-child)::after {
  position: absolute;
  top: 17px;
  right: -9px;
  width: 7px;
  height: 7px;
  border-top: 1px solid var(--muted);
  border-right: 1px solid var(--muted);
  transform: rotate(45deg);
  content: "";
}

/* (physical-boundary blocks removed; station permission stays in the run panel.) */

#scene .fp-ai .fv-engineering-owner {
  border: 1px solid var(--muted);
  background: transparent;
}

#scene .fp-ai .fv-owner-anchor {
  position: relative;
  display: grid;
  grid-template-columns: 146px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
}

#scene .fp-ai .fv-owner-art {
  display: flex;
  align-items: center;
  justify-content: center;
}

#scene .fp-ai .fv-owner-art .fw-art-transmitter {
  width: 60px;
  height: 60px;
}

#scene .fp-ai .fv-owner-copy {
  display: grid;
  gap: 6px;
}

#scene .fp-ai .fv-human-branches {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 10px;
}

#scene .fp-ai .fv-human-branches::before {
  position: absolute;
  top: -10px;
  right: 25%;
  left: 25%;
  height: 10px;
  border-top: 1px solid var(--muted);
  border-right: 1px solid var(--muted);
  border-left: 1px dashed var(--muted);
  content: "";
}

#scene .fp-ai .fv-human-branches::after {
  position: absolute;
  top: -22px;
  left: 50%;
  height: 12px;
  border-left: 1px solid var(--muted);
  content: "";
}

#scene .fp-ai .fv-human-branches > div {
  display: grid;
  justify-items: center;
  gap: 6px;
  padding: 10px;
  border: 1px dashed var(--fv-indigo);
  border-radius: 0;
  background: transparent;
  text-align: center;
}

#scene .fp-ai .fv-human-branches .fv-approved-path {
  border: 1px solid var(--fv-teal);
  background: transparent;
}

#scene .fp-ai .fv-approved-path .fv-label {
  color: var(--fv-teal);
}

#scene .fp-ai .fv-route-object {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

#scene .fp-ai .fv-route-object .fw-art {
  width: 56px;
  height: 42px;
}

/* 10 · A bounded start preserves knowledge and qualifies each new use. */
#scene .fp-adoption .fv-milestone {
  color: var(--ink);
  font-size: 15px;
  font-weight: 650;
  line-height: 1.4;
}

#scene .fp-adoption .fv-first-task {
  border-style: dashed;
}

#scene .fp-adoption .fv-first-task-body {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  align-items: center;
  gap: 12px;
}

#scene .fp-adoption .fv-first-task-drawing {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 26px minmax(0, 1fr);
  align-items: center;
  min-height: 106px;
  padding: 8px;
  border: 1px dashed var(--muted);
  border-radius: 40% 40% 0 0;
  background: transparent;
}

#scene .fp-adoption .fv-first-task-drawing > .fw-art {
  width: 96px;
  height: 72px;
}

#scene .fp-adoption .fv-task-requirements {
  display: grid;
  justify-items: center;
  gap: 6px;
  text-align: center;
}

#scene .fp-adoption .fv-task-requirements .fw-art {
  width: 72px;
  height: 54px;
}

#scene .fp-adoption .fv-first-task .fv-prepared-foundation {
  border-color: var(--muted);
  background: transparent;
}

#scene .fp-adoption .fv-prepared-foundation .fv-label {
  color: var(--fv-teal);
}

#scene .fp-adoption .fv-existing-work {
  border-color: var(--muted);
  background: transparent;
  text-align: center;
}

#scene .fp-adoption .fv-existing-bridge {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 28px 112px;
  align-items: center;
  gap: 10px;
}

#scene .fp-adoption .fv-knowledge-shelf {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding-bottom: 6px;
  border-bottom: 1px double var(--muted);
}

#scene .fp-adoption .fv-knowledge-shelf > .fw-art {
  width: 64px;
  height: 48px;
}

#scene .fp-adoption .fv-existing-tools {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

#scene .fp-adoption .fv-knowledge-piece {
  display: grid;
  justify-items: center;
  gap: 3px;
  padding: 6px;
  border: 1px solid var(--muted);
  border-bottom-width: 3px;
  border-radius: 0 0 0 0;
  background: transparent;
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
}

#scene .fp-adoption .fv-knowledge-piece .fw-art {
  width: 36px;
  height: 27px;
}

#scene .fp-adoption .fv-existing-bridge > .fv-link::before {
  border-top-style: dashed;
}

#scene .fp-adoption .fv-existing-target {
  width: 112px;
  height: 84px;
  padding: 5px;
  border: 1px dashed var(--muted);
  border-radius: 0;
}

#scene .fp-adoption .fv-integration {
  border: 1px solid var(--muted);
  background: transparent;
}

#scene .fp-adoption .fv-integration .fv-milestone {
  color: var(--fv-teal);
}

#scene .fp-adoption .fv-integration-chain {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 24px minmax(0, 1fr) 24px minmax(0, 1fr);
  align-items: center;
  gap: 6px;
}

#scene .fp-adoption .fv-integration-chain > .fv-symbol {
  align-self: stretch;
  padding: 10px 8px;
  border: 1px solid var(--muted);
  border-radius: 0;
  background: transparent;
}

#scene .fp-adoption .fv-integration-chain :is(.fw-art, .fv-product-station) {
  width: 64px;
  height: 48px;
}

#scene .fp-adoption .fv-integration-chain .fv-product-station > .fw-art-station {
  width: 100%;
  height: 100%;
}

#scene .fp-adoption .fv-integration-chain .fv-product-station > .fw-art-transmitter {
  right: 0;
  bottom: 9px;
  width: 27px;
  height: 21px;
}

#scene .fp-adoption .fv-integration-chain .fv-symbol-copy {
  gap: 8px;
}

#scene .fp-adoption .fv-integration-chain .fv-station-accept {
  border-top: 1px double var(--muted);
}

#scene .fp-adoption .fv-expansion {
  gap: 10px;
  background: transparent;
}

#scene .fp-adoption .fv-expansion-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 4px 12px;
}

#scene .fp-adoption .fv-shared-foundation {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 8px;
  border: 1px solid var(--muted);
  border-radius: 0;
  background: transparent;
}

#scene .fp-adoption .fv-shared-foundation > .fw-art {
  width: 64px;
  height: 48px;
}

#scene .fp-adoption .fv-foundation-copy {
  display: grid;
  gap: 4px;
}

#scene .fp-adoption .fv-expansion-targets {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 2px;
}

#scene .fp-adoption .fv-expansion-targets::before {
  position: absolute;
  top: -14px;
  right: 16.666%;
  left: 16.666%;
  height: 14px;
  border-top: 1px solid var(--muted);
  border-right: 1px solid var(--muted);
  border-left: 1px solid var(--muted);
  content: "";
}

#scene .fp-adoption .fv-expansion-targets::after {
  position: absolute;
  top: -14px;
  left: 50%;
  height: 14px;
  border-left: 1px solid var(--muted);
  content: "";
}

#scene .fp-adoption .fv-expansion-targets > .fv-symbol {
  padding: 8px;
  border-top: 1px solid var(--muted);
  background: transparent;
}

#scene .fp-adoption .fv-expansion-targets .fw-art {
  width: 56px;
  height: 42px;
}

#scene .fp-adoption .fv-variant .fw-svg-surface {
  fill: none;
  stroke: var(--ink);
}

#scene .fp-adoption .fv-variant .fw-svg-teal {
  stroke: var(--ink);
}

#scene .fp-adoption .fv-closing {
  border-color: var(--muted);
  background: transparent;
}

#scene .fp-adoption .fv-story-trace {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 6px;
}

#scene .fp-adoption .fv-story-stop {
  position: relative;
  display: grid;
  align-content: start;
  justify-items: center;
  gap: 6px;
  padding-top: 10px;
  border-top: 1px solid var(--muted);
  color: var(--ink);
  font-size: 14px;
  text-align: center;
}

#scene .fp-adoption .fv-story-stop::before {
  position: absolute;
  top: -4px;
  left: calc(50% - 4px);
  width: 8px;
  height: 8px;
  border: 1px solid var(--muted);
  border-radius: 50%;
  background: transparent;
  content: "";
}

#scene .fp-adoption .fv-story-stop :is(.fw-art, .fv-product-station) {
  width: 64px;
  height: 48px;
}

#scene .fp-adoption .fv-story-stop .fv-product-station > .fw-art-station {
  width: 100%;
  height: 100%;
}

#scene .fp-adoption .fv-story-stop .fv-product-station > .fw-art-transmitter {
  right: 0;
  bottom: 9px;
  width: 27px;
  height: 21px;
}

#scene .fp-adoption .fv-closing-foundation {
  display: grid;
  grid-template-columns: 156px minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  padding-top: 12px;
  border-top: 1px double var(--muted);
}

#scene .fp-adoption :is(.fv-closing-art, .fv-closing-copy) {
  display: grid;
  gap: 8px;
}

#scene .fp-adoption .fv-reusable-parts {
  display: flex;
  justify-content: center;
  gap: 6px;
}

#scene .fp-adoption .fv-reusable-parts .fw-art {
  width: 60px;
  height: 45px;
}

#scene .fp-adoption .fv-closing-art .fw-brand-foundry {
  width: 144px;
  height: auto;
  margin-inline: auto;
}

#scene .fp-adoption .fv-closing-copy .fv-heading {
  color: var(--ink);
}

/* Reflow by the artwork's available width; retain full-size, unbroken words. */
@container foundry-visual (max-width: 640px) {
  #scene .fp-adoption .fv-story-trace {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    row-gap: 14px;
  }

  #scene .fp-adoption .fv-existing-bridge {
    grid-template-columns: minmax(0, 1fr) 20px 84px;
    gap: 6px;
  }

  #scene .fp-adoption .fv-knowledge-shelf {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
  }

  #scene .fp-adoption .fv-existing-target {
    width: 84px;
    height: 72px;
  }
}

@container foundry-visual (max-width: 559px) {
  #scene .fp-value .foundry-step-panel {
    min-height: 0;
    padding: 12px;
  }

  #scene .fp-results .fv-failed-unit,
  #scene .fp-adoption .fv-first-task-body {
    grid-template-columns: minmax(0, 1fr);
  }

  #scene .fp-results .fv-failure-drawing,
  #scene .fp-adoption .fv-first-task-drawing {
    width: min(100%, 320px);
    margin-inline: auto;
  }

  #scene .fp-results .fv-failure-copy {
    justify-items: center;
    text-align: center;
  }

  #scene .fp-results .fv-isolation-diagram {
    grid-template-columns: minmax(0, 1fr);
  }

  #scene .fp-results .fv-detached-record {
    width: 142px;
    margin-inline: auto;
  }

  #scene .fp-results .fv-isolation-diagram > .fv-link {
    display: none;
  }

  #scene .fp-results .fv-context-body {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
  }

  #scene .fp-results .fv-linked-result {
    grid-template-columns: 48px auto auto;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 8px;
  }

  #scene .fp-results .fv-linked-result .fw-art {
    width: 48px;
    height: 36px;
  }

  #scene .fp-results .fv-linked-result::after {
    display: none;
  }

  #scene .fp-results .fv-context-fields {
    padding-left: 0;
    border-left: 0;
  }

  #scene .fp-results .fv-comparison,
  #scene .fp-ai :is(.fv-mcp-flow, .fv-build-flow, .fv-debug-flow),
  #scene .fp-adoption .fv-integration-chain {
    grid-template-columns: minmax(0, 1fr);
  }

  #scene .fp-value .fv-flow > .fv-link {
    min-height: 26px;
  }

  #scene .fp-value .fv-flow > .fv-link::before {
    top: 0;
    right: auto;
    bottom: 7px;
    left: 50%;
    border-top: 0;
    border-left: 2px solid currentColor;
  }

  #scene .fp-value .fv-flow > .fv-link::after {
    top: auto;
    right: auto;
    bottom: 0;
    left: calc(50% - 4px);
    border-top: 7px solid currentColor;
    border-right: 4px solid transparent;
    border-bottom: 0;
    border-left: 4px solid transparent;
  }

  #scene .fp-value .fv-flow > .fv-link-left::before {
    top: 7px;
    bottom: 0;
  }

  #scene .fp-value .fv-flow > .fv-link-left::after {
    top: 0;
    bottom: auto;
    border-top: 0;
    border-bottom: 7px solid currentColor;
  }

  #scene .fp-results .fv-source-record {
    grid-template-columns: 80px minmax(0, 1fr);
    align-items: center;
    text-align: left;
  }

  #scene .fp-results .fv-source-record > .fv-product-station {
    grid-row: span 2;
    width: 80px;
    height: 60px;
  }

  #scene .fp-results .fv-reasoning {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
  }

  #scene .fp-results .fv-reasoning > li {
    grid-template-columns: 126px minmax(0, 1fr);
    align-items: center;
    justify-items: start;
    gap: 4px 8px;
    text-align: left;
  }

  #scene .fp-results .fv-reasoning > li > :first-child {
    grid-row: span 2;
  }

  #scene .fp-results .fv-reasoning > li::after {
    display: none;
  }

  #scene .fp-ai .fv-permissions {
    grid-template-columns: minmax(0, 1fr);
  }

  #scene .fp-ai .fv-permission {
    grid-template-columns: 72px minmax(0, 1fr);
    align-items: center;
    justify-items: start;
    gap: 4px 10px;
    text-align: left;
  }

  #scene .fp-ai .fv-permission > :first-child {
    grid-row: span 2;
  }

  #scene .fp-ai :is(.fv-mcp-flow, .fv-build-flow, .fv-debug-flow) > .fv-link {
    min-height: 42px;
  }

  #scene .fp-ai :is(.fv-mcp-flow, .fv-build-flow, .fv-debug-flow) .fv-link-label {
    padding-inline: 10px;
  }

/* (physical-boundary responsive blocks removed.) */

  #scene .fp-ai .fv-owner-anchor {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
    text-align: center;
  }

  #scene .fp-ai .fv-human-branches {
    grid-template-columns: minmax(0, 1fr);
    margin-top: 0;
    gap: 10px;
  }

  #scene .fp-ai .fv-human-branches::before,
  #scene .fp-ai .fv-human-branches::after {
    display: none;
  }

  #scene .fp-adoption .fv-integration-chain > .fv-symbol {
    grid-template-columns: 64px minmax(0, 1fr);
    align-items: center;
    text-align: left;
  }

  #scene .fp-adoption .fv-expansion-targets {
    grid-template-columns: minmax(0, 1fr);
    margin-top: 0;
    padding-left: 14px;
    border-left: 1px solid var(--muted);
  }

  #scene .fp-adoption .fv-expansion-targets::before,
  #scene .fp-adoption .fv-expansion-targets::after {
    display: none;
  }

  #scene .fp-adoption .fv-expansion-targets > .fv-symbol {
    grid-template-columns: 64px minmax(0, 1fr);
    align-items: center;
    justify-items: start;
    text-align: left;
  }

  #scene .fp-adoption .fv-shared-foundation {
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 8px;
  }

  #scene .fp-adoption .fv-shared-foundation > .fw-art {
    width: 48px;
    height: 36px;
  }

  #scene .fp-adoption .fv-closing-foundation {
    grid-template-columns: minmax(0, 1fr);
    text-align: center;
  }
}

@container foundry-visual (max-width: 399px) {
  #scene .fp-value .foundry-step-panel {
    padding: 10px 8px;
  }

  #scene .fp-adoption .fv-shared-foundation {
    grid-template-columns: minmax(0, 1fr);
    justify-items: center;
    text-align: center;
  }

  #scene .fp-adoption .fv-foundation-copy {
    width: 100%;
  }

  #scene .fp-results .fv-context-fields {
    grid-template-columns: minmax(0, 1fr);
  }

  #scene .fp-results .fv-missing-context {
    grid-template-columns: minmax(0, 1fr);
  }

  #scene .fp-results .fv-missing {
    grid-template-columns: 48px minmax(0, 1fr);
    align-items: center;
    justify-items: start;
    text-align: left;
  }

  #scene .fp-results .fv-missing .fw-art {
    width: 48px;
    height: 36px;
  }

  #scene .fp-results .fv-reasoning > li {
    grid-template-columns: minmax(0, 1fr);
    justify-items: center;
    text-align: center;
  }

  #scene .fp-results .fv-reasoning > li > :first-child {
    grid-row: auto;
  }

  #scene .fp-ai .fv-task-product {
    flex-direction: column;
    text-align: center;
  }

/* (task-inputs responsive blocks removed.) */

  #scene .fp-ai .fv-qualification-checks {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
  }

  #scene .fp-ai .fv-qualification-check {
    grid-template-columns: 48px minmax(0, 1fr);
    align-items: center;
    justify-items: start;
    text-align: left;
  }

  #scene .fp-ai .fv-qualification-check::after {
    display: none;
  }

/* (physical-boundary responsive block removed.) */

  #scene .fp-adoption .fv-existing-bridge {
    grid-template-columns: minmax(0, 1fr);
    justify-items: center;
    gap: 10px;
  }

  #scene .fp-adoption .fv-existing-bridge > .fv-link {
    display: none;
  }

  #scene .fp-adoption .fv-knowledge-shelf {
    width: 100%;
  }

  #scene .fp-adoption .fv-existing-tools {
    grid-template-columns: minmax(0, 1fr);
  }

  #scene .fp-adoption .fv-knowledge-piece {
    grid-template-columns: 36px minmax(0, 1fr);
    align-items: center;
    justify-items: start;
    gap: 8px;
    text-align: left;
  }

  #scene .fp-adoption .fv-expansion-targets > .fv-symbol {
    grid-template-columns: minmax(0, 1fr);
    justify-items: center;
    text-align: center;
  }

  #scene .fp-adoption .fv-story-trace {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
