/* Focused artwork panels only. The shell owns hidden/current state and narration. */
#scene :is(.fp-system, .fp-production, .fp-change) {
  --fps-border: var(--muted);
  --fps-surface: var(--panel);
  --fps-accent: var(--ink);
  --fps-warning: var(--ink);
  display: block;
  min-width: 0;
  padding: 14px;
  font-size: 14px;
  line-height: 1.4;
}

#scene :is(.fp-system, .fp-production, .fp-change) .foundry-step-panel {
  display: grid;
  align-content: start;
  gap: 12px;
  min-width: 0;
  min-height: 250px;
}

#scene :is(.fp-system, .fp-production, .fp-change) .foundry-step-panel[hidden] {
  display: none !important;
}

#scene :is(.fp-system, .fp-production, .fp-change) :is(figure, figcaption, h3, p) {
  margin: 0;
}

#scene :is(.fp-system, .fp-production, .fp-change) :is(.fps-heading, .fps-role-copy) {
  display: grid;
  gap: 4px;
  min-width: 0;
}

#scene :is(.fp-system, .fp-production, .fp-change) .fps-title {
  color: var(--fw-ink);
  font-size: 20px;
  font-weight: 650;
  line-height: 1.25;
  text-wrap: balance;
}

#scene :is(.fp-system, .fp-production, .fp-change) .fps-copy {
  color: var(--ink);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.4;
  text-wrap: pretty;
}

#scene :is(.fp-system, .fp-production, .fp-change) .fps-name {
  display: block;
  color: var(--fw-ink);
  font-size: 16px;
  font-weight: 650;
  line-height: 1.25;
}

#scene :is(.fp-system, .fp-production, .fp-change) .fps-label {
  display: inline-block;
  min-width: 0;
  padding: 4px 7px;
  border: 1px solid var(--fps-border);
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.35;
}

#scene :is(.fp-system, .fp-production, .fp-change) .fps-layer-label {
  justify-self: start;
  max-width: 100%;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  color: var(--ink);
  font-weight: 650;
}

#scene :is(.fp-system, .fp-production, .fp-change) .fps-equipment {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-align: center;
}

#scene :is(.fp-system, .fp-production, .fp-change) .fps-equipment-caption {
  display: grid;
  gap: 4px;
  width: 100%;
  min-width: 0;
}

#scene :is(.fp-system, .fp-production, .fp-change) .fw-art {
  flex: 0 0 auto;
  width: 112px;
  height: 80px;
  margin: 0;
}

#scene :is(.fp-system, .fp-production, .fp-change) .fps-fixture {
  display: block;
  flex: 0 0 auto;
  width: 132px;
  max-width: 100%;
  height: 104px;
  overflow: visible;
  fill: none;
  stroke: var(--ink);
  stroke-width: 1.15;
  stroke-linecap: round;
  stroke-linejoin: round;
}

#scene :is(.fp-system, .fp-production, .fp-change) .fps-fixture > * {
  vector-effect: non-scaling-stroke;
}

#scene :is(.fp-system, .fp-production, .fp-change) .fps-surface {
  fill: none;
}

#scene :is(.fp-system, .fp-production, .fp-change) .fps-accent {
  stroke: var(--ink);
}

#scene :is(.fp-system, .fp-production, .fp-change) .fps-link {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  color: var(--ink);
  text-align: center;
}

#scene :is(.fp-system, .fp-production, .fp-change) .fps-link-label {
  font-size: 14px;
  line-height: 1.35;
}

#scene :is(.fp-system, .fp-production, .fp-change) .fps-link-label:empty {
  display: none;
}

#scene :is(.fp-system, .fp-production, .fp-change) .fps-arrow {
  position: relative;
  display: block;
  flex: 0 0 auto;
  width: 24px;
  height: 2px;
  margin: 4px;
  background: transparent;
}

#scene :is(.fp-system, .fp-production, .fp-change) .fps-arrow::after {
  position: absolute;
  top: -4px;
  right: 0;
  width: 9px;
  height: 9px;
  border-top: 1px solid var(--muted);
  border-right: 1px solid var(--muted);
  content: "";
  transform: rotate(45deg);
}

#scene :is(.fp-system, .fp-production, .fp-change) .fps-role {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

#scene :is(.fp-system, .fp-production, .fp-change) .fps-role > .fw-art {
  width: 48px;
  height: 42px;
}

#scene :is(.fp-system, .fp-production, .fp-change) .fps-local-drawing {
  display: flex;
  align-items: end;
  justify-content: center;
  gap: 4px;
  min-width: 0;
}

#scene :is(.fp-system, .fp-production, .fp-change) .fps-local-drawing > .fw-art {
  width: 38%;
  max-width: 96px;
  height: 88px;
}

#scene :is(.fp-system, .fp-production, .fp-change) .fps-local-drawing > .fps-fixture {
  width: 58%;
  max-width: 140px;
  height: 110px;
}

#scene :is(.fp-system, .fp-production, .fp-change) .fps-qualification-heading {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--muted);
}

#scene :is(.fp-system, .fp-production, .fp-change) .fps-qualification-heading > .fw-art {
  width: 48px;
  height: 48px;
}

#scene :is(.fp-system, .fp-production, .fp-change) .fps-foundation {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 8px 10px;
  border: 1px solid var(--muted);
  border-bottom: 1px solid var(--fps-accent);
  border-radius: 0;
  background: transparent;
}

#scene :is(.fp-system, .fp-production, .fp-change) .fps-foundation > .fw-art {
  width: 32px;
  height: 32px;
}

#scene :is(.fp-system, .fp-production) .fps-station-checks {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
  gap: 16px;
  padding: 12px 6px;
  border: 1px solid var(--muted);
  border-radius: 0;
  background: transparent;
}

#scene :is(.fp-system, .fp-production) .fps-station-checks .fw-art,
#scene :is(.fp-system, .fp-production) .fps-station-checks .fps-fixture {
  width: 126px;
  height: 102px;
}

#scene .fp-system .fps-physical {
  display: grid;
  gap: 8px;
}

#scene .fp-system .fps-equipment-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
  gap: 16px;
}

#scene .fp-system .fps-equipment-row .fw-art,
#scene .fp-system .fps-equipment-row .fps-fixture {
  width: 120px;
  height: 90px;
}

#scene .fp-system .fps-physical-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-inline: 4%;
  border-top: 1px solid var(--fps-accent);
  text-align: center;
}

#scene .fp-system .fps-physical-links > .fps-label {
  padding-top: 6px;
  border: 0;
  background: none;
}

#scene .fp-system .fps-unmapped-station {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 40px minmax(0, 1.2fr);
  align-items: center;
  min-height: 180px;
  gap: 12px;
  padding: 14px;
  border: 1px dashed var(--muted);
  border-radius: 0;
  background: transparent;
}

#scene .fp-system .fps-local-settings {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

#scene .fp-system .fps-local-settings > .fw-art {
  width: 44px;
  height: 68px;
}

#scene .fp-system .fps-labels {
  display: grid;
  gap: 6px;
  min-width: 0;
}

#scene .fp-system .fps-unmapped-link {
  position: relative;
  height: 2px;
  border-top: 1px dashed var(--fps-warning);
}

#scene .fp-system .fps-unmapped-link::after {
  position: absolute;
  top: -7px;
  left: calc(50% - 6px);
  width: 12px;
  height: 12px;
  border: 1px solid var(--fps-warning);
  border-radius: 50%;
  background: transparent;
  content: "";
}

#scene .fp-system .fps-system-map {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
}

#scene .fp-system .fps-system-map > .fps-foundation {
  grid-column: 1 / -1;
}

#scene .fp-system :is(.fps-sequence-row, .fps-module-row, .fps-connection-row) {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  min-width: 0;
}

#scene .fp-system .fps-sequence-row > .fps-label {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border-color: var(--muted);
  background: transparent;
  text-align: center;
}

#scene .fp-system .fps-sequence-row > .fps-label:not(:last-child)::after {
  position: absolute;
  right: -11px;
  color: var(--fps-accent);
  content: "→";
}

#scene .fp-system .fps-module-row > .fps-equipment {
  position: relative;
  padding: 6px 3px;
  border: 1px solid var(--muted);
  border-radius: 0;
  background: transparent;
}

#scene .fp-system .fps-module-row > .fps-equipment::after {
  position: absolute;
  left: 50%;
  bottom: -11px;
  height: 10px;
  border-left: 1px solid var(--fps-accent);
  content: "";
}

#scene .fp-system .fps-module-row .fw-art {
  width: 36px;
  height: 28px;
}

#scene .fp-system .fps-connection-row .fw-art,
#scene .fp-system .fps-connection-row .fps-fixture {
  width: 68px;
  height: 52px;
}

#scene .fp-system .fps-connection-row .fps-name {
  font-size: 14px;
  font-weight: 400;
  line-height: 1.4;
}

#scene .fp-system .fps-review-workbench {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr) minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  padding: 12px 4px;
  border-block: 1px solid var(--muted);
  background: transparent;
}

#scene .fp-system .fps-review-workbench > .fps-role {
  position: relative;
  flex-direction: column;
  text-align: center;
}

/* Test and building blocks both point into the station: small chevrons, not floating dashes. */
#scene .fp-system .fps-review-workbench > .fps-role:first-child::after,
#scene .fp-system .fps-review-workbench > .fps-role:last-child::before {
  position: absolute;
  top: 24px;
  width: 9px;
  height: 9px;
  border-top: 1px solid var(--fps-accent);
  border-right: 1px solid var(--fps-accent);
  content: "";
}

#scene .fp-system .fps-review-workbench > .fps-role:first-child::after { right: -12px; transform: rotate(45deg); }
#scene .fp-system .fps-review-workbench > .fps-role:last-child::before { left: -12px; transform: rotate(-135deg); }

#scene .fp-production .fps-handoff-flow,
#scene .fp-change :is(.fps-known-baseline, .fps-preservation-flow) {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 52px minmax(0, 1fr) 52px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  min-width: 0;
}

#scene .fp-production .fps-handoff-flow {
  grid-template-columns: minmax(0, 1fr) 72px minmax(0, 1fr) 72px minmax(0, 1fr);
}

#scene .fp-change .fps-preservation-flow {
  grid-template-columns: minmax(0, 1fr) 88px minmax(0, 1fr) 88px minmax(0, 1fr);
}


#scene .fp-production .fps-rewrite-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

#scene .fp-production .fps-rewrite-options > .fps-equipment {
  padding: 8px 14px 12px;
  border: 1px dashed var(--muted);
  border-radius: 0;
  background: transparent;
}

#scene .fp-production .fps-rewrite-options .fw-art {
  width: 64px;
  height: 48px;
}

#scene .fp-production .fps-rewrite-destination {
  position: relative;
  display: flex;
  justify-content: center;
  padding-top: 8px;
}

#scene .fp-production .fps-rewrite-destination::before,
#scene .fp-production .fps-rewrite-destination::after {
  position: absolute;
  top: -12px;
  width: 22%;
  height: 20px;
  border-bottom: 1px dashed var(--fps-warning);
  content: "";
}

#scene .fp-production .fps-rewrite-destination::before {
  right: 50%;
  border-left: 1px dashed var(--fps-warning);
}

#scene .fp-production .fps-rewrite-destination::after {
  left: 50%;
  border-right: 1px dashed var(--fps-warning);
}

#scene .fp-production .fps-rewrite-destination .fps-fixture {
  width: 104px;
  height: 78px;
}


#scene .fp-production .fps-local-table {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
  text-align: left;
}

#scene .fp-production .fps-local-table :is(th, td) {
  padding: 6px;
  border-bottom: 1px solid var(--muted);
  vertical-align: top;
}

#scene .fp-production .fps-local-table tr > :first-child {
  width: 104px;
}

#scene .fp-production .fps-local-table thead th {
  background: var(--fps-surface);
  text-align: center;
}

#scene .fp-production .fps-local-table tbody th {
  color: var(--ink);
  font-weight: 650;
}

#scene .fp-production .fps-local-table .fps-local-drawing {
  margin-top: 3px;
}

#scene .fp-production .fps-local-table .fps-local-drawing > .fw-art {
  height: 44px;
}

#scene .fp-production .fps-local-table .fps-local-drawing > .fps-fixture {
  height: 60px;
}

#scene .fp-production .fps-handoff-flow > .fps-role,
#scene .fp-change .fps-preservation-flow > .fps-role {
  flex-direction: column;
  align-self: start;
  text-align: center;
}

#scene .fp-production .fps-version-drawing,
#scene .fp-change .fps-preserved-drawing {
  display: flex;
  justify-content: center;
  align-items: end;
  gap: 2px;
  width: 100%;
  min-width: 0;
}

#scene .fp-production .fps-version-drawing > .fw-art,
#scene .fp-change .fps-preserved-drawing > .fw-art {
  width: 32%;
  height: 44px;
}

#scene .fp-production .fps-version-drawing > .fps-fixture,
#scene .fp-change .fps-preserved-drawing > .fps-fixture {
  width: 64%;
  height: 74px;
}

#scene .fp-change .fps-change-heading {
  display: flex;
  align-items: center;
  gap: 12px;
}

#scene .fp-change .fps-change-anchor {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-width: 0;
  padding: 4px;
  border: 1px solid var(--muted);
  border-radius: 0;
  background: transparent;
}

#scene .fp-change .fps-change-anchor > .fw-art {
  width: 38px;
  height: 32px;
}

#scene .fp-change .fps-coupling {
  padding: 14px 12px 0;
  border: 1px dashed var(--muted);
  border-radius: 0;
  background: transparent;
}

#scene .fp-change .fps-coupled-parts {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 18px minmax(0, 1fr) 18px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
}

#scene .fp-change .fps-coupled-parts > .fps-equipment {
  padding: 8px;
  border: 1px solid var(--muted);
  border-radius: 0;
  background: transparent;
}

#scene .fp-change .fps-coupled-parts .fw-art {
  width: 64px;
  height: 48px;
}

#scene .fp-change .fps-plus {
  color: var(--fps-warning);
  font-size: 18px;
  text-align: center;
}

#scene .fp-change .fps-coupling-wires {
  display: block;
  width: 100%;
  height: 42px;
  fill: none;
  stroke: var(--ink);
  stroke-width: 1.15;
}

#scene .fp-change .fps-patchwork {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  padding-bottom: 12px;
}

#scene .fp-change .fps-patchwork > .fps-label {
  border-color: var(--muted);
  background: transparent;
  color: var(--ink);
}

#scene .fp-change .fps-change-scopes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  min-width: 0;
}

#scene .fp-change .fps-change-scopes > .fps-equipment {
  padding: 10px 6px;
  border: 1px solid var(--muted);
  border-radius: 0;
  background: transparent;
}

#scene .fp-change .fps-change-scopes > .fps-equipment > .fw-art {
  width: 82px;
  height: 72px;
}

#scene .fp-change .fps-instrument-pair {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 24px minmax(0, 1fr);
  align-items: center;
  gap: 4px;
  width: 100%;
  max-width: 180px;
  height: 72px;
}

#scene .fp-change .fps-instrument-pair > .fw-art {
  width: 100%;
  height: 64px;
}

#scene .fp-change .fps-instrument-pair .fps-arrow {
  width: 18px;
  margin: 0;
}

#scene .fp-change .fps-branch-label {
  justify-self: start;
  width: fit-content;
  max-width: 100%;
  color: var(--ink);
  border-color: var(--muted);
  background: transparent;
  font-weight: 650;
}

#scene .fp-change .fps-change-checks {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

#scene .fp-change .fps-check-scope {
  display: grid;
  align-content: start;
  justify-items: start;
  gap: 6px;
  min-width: 0;
  padding: 10px;
  border: 1px solid var(--muted);
  border-radius: 0;
  background: transparent;
}

#scene .fp-change .fps-check-scope > .fps-branch-label {
  color: var(--ink);
  border-color: var(--muted);
  background: transparent;
}

#scene .fp-change .fps-check-drawing {
  display: flex;
  align-items: end;
  gap: 8px;
  min-width: 0;
}

#scene .fp-change .fps-check-drawing > .fw-art,
#scene .fp-change .fps-check-drawing > .fps-fixture {
  width: 68px;
  height: 48px;
}

#scene .fp-change .fps-check-labels {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

#scene .fp-change .fps-check-labels > .fps-label {
  padding: 2px 5px;
  border-color: var(--muted);
  background: transparent;
  color: var(--ink);
}

#scene .fp-change .fps-preservation-flow > .fps-role:nth-child(3) {
  padding: 6px;
  border: 1px solid var(--muted);
  border-radius: 0;
  background: transparent;
}

@container foundry-visual (max-width: 620px) {
  #scene .fp-system .fps-system-map {
    grid-template-columns: 88px minmax(0, 1fr);
    gap: 8px;
  }
}

@container foundry-visual (max-width: 540px) {
  #scene :is(.fp-system, .fp-production, .fp-change) {
    padding: 12px;
  }

  #scene .fp-system :is(.fps-equipment-row, .fps-review-workbench),
  #scene .fp-production .fps-handoff-flow,
  #scene .fp-change .fps-coupled-parts,
  #scene .fp-change :is(.fps-known-baseline, .fps-preservation-flow) {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
  }

  #scene .fp-change .fps-change-scopes {
    grid-template-columns: minmax(0, 1fr);
  }

  #scene .fp-change .fps-change-scopes > .fps-equipment {
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    text-align: left;
  }

  #scene .fp-system .fps-equipment-row > .fps-equipment,
  #scene .fp-production .fps-handoff-flow > .fps-role,
  #scene .fp-production .fps-handoff-flow > .fps-equipment,
  #scene .fp-change .fps-known-baseline > .fps-equipment,
  #scene .fp-change .fps-preservation-flow > .fps-role,
  #scene .fp-change .fps-preservation-flow > .fps-equipment {
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    text-align: left;
  }

  #scene .fp-system .fps-review-workbench > .fps-role {
    flex-direction: row;
    text-align: left;
  }

  #scene .fp-system .fps-review-workbench > .fps-role::before,
  #scene .fp-system .fps-review-workbench > .fps-role::after {
    display: none;
  }

  #scene .fp-system .fps-unmapped-station {
    grid-template-columns: minmax(0, 1fr);
    justify-items: center;
    gap: 20px;
  }

  #scene .fp-system .fps-local-settings {
    width: 100%;
    justify-content: center;
  }

  #scene .fp-system .fps-unmapped-link {
    width: 40px;
    transform: rotate(90deg);
  }

  #scene .fp-system .fps-system-map {
    grid-template-columns: minmax(0, 1fr);
  }

  #scene .fp-system .fps-system-map > .fps-layer-label {
    margin-top: 6px;
  }

  #scene .fp-system :is(.fps-module-row, .fps-connection-row) {
    grid-template-columns: minmax(0, 1fr);
  }

  #scene .fp-system :is(.fps-module-row, .fps-connection-row) > .fps-equipment {
    display: grid;
    grid-template-columns: 68px minmax(0, 1fr);
    align-items: center;
    text-align: left;
  }

  #scene .fp-system .fps-module-row > .fps-equipment::after {
    display: none;
  }

  #scene :is(.fp-system, .fp-production) .fps-station-checks {
    grid-template-columns: minmax(0, 1fr);
  }

  #scene :is(.fp-system, .fp-production) .fps-station-checks > .fps-equipment {
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr);
    align-items: center;
    text-align: left;
  }

  #scene .fp-production .fps-handoff-flow > .fps-link .fps-arrow,
  #scene .fp-change :is(.fps-known-baseline, .fps-preservation-flow) > .fps-link .fps-arrow {
    margin-block: 10px;
    transform: rotate(90deg);
  }

  #scene .fp-production .fps-local-table,
  #scene .fp-production .fps-local-table :is(thead, tbody, tr, th, td) {
    display: block;
    width: auto;
  }

  #scene .fp-production .fps-local-table tr > :first-child {
    width: auto;
  }

  #scene .fp-production .fps-local-table thead tr {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  #scene .fp-production .fps-local-table thead td {
    display: none;
  }

  #scene .fp-production .fps-local-table tbody td {
    display: grid;
    grid-template-columns: 104px minmax(0, 1fr);
    gap: 8px;
  }

  #scene .fp-production .fps-local-table tbody td::before {
    color: var(--ink);
    font-weight: 650;
    content: attr(data-station);
  }

  #scene .fp-production .fps-local-table tbody th {
    background: var(--fps-surface);
  }

  #scene .fp-change .fps-change-heading,
  #scene .fp-change .fps-qualification-heading {
    flex-wrap: wrap;
  }

  #scene .fp-change .fps-qualification-heading > .fps-heading {
    flex: 1 1 190px;
  }

  #scene .fp-change .fps-change-checks {
    grid-template-columns: minmax(0, 1fr);
  }

  #scene .fp-change .fps-coupling-wires {
    display: none;
  }
}

@container foundry-visual (max-width: 380px) {
  #scene .fp-system .fps-sequence-row,
  #scene .fp-production .fps-rewrite-options {
    grid-template-columns: minmax(0, 1fr);
  }

  #scene .fp-system .fps-sequence-row > .fps-label:not(:last-child)::after {
    top: auto;
    right: calc(50% - 6px);
    bottom: -14px;
    content: "↓";
  }

  #scene .fp-production .fps-local-table thead tr {
    grid-template-columns: minmax(0, 1fr);
  }

  #scene .fp-production .fps-local-table thead th {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
  }

  #scene .fp-production .fps-local-table thead .fps-local-drawing {
    width: 112px;
  }

  #scene .fp-system .fps-equipment-row > .fps-equipment,
  #scene :is(.fp-system, .fp-production) .fps-station-checks > .fps-equipment,
  #scene .fp-change :is(.fps-known-baseline, .fps-preservation-flow) > :is(.fps-equipment, .fps-role) {
    display: flex;
    flex-direction: column;
    text-align: center;
  }

  #scene :is(.fp-system, .fp-production, .fp-change) .fps-equipment-caption,
  #scene .fp-change .fps-role-copy {
    width: 100%;
  }

  #scene .fp-production .fps-local-table tbody td {
    grid-template-columns: minmax(0, 1fr);
  }
}

#scene .fp-production .fps-bench {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: 16px;
}

@container foundry-visual (max-width: 480px) {
  #scene .fp-production .fps-bench {
    grid-template-columns: 112px minmax(0, 1fr);
    align-items: start;
    gap: 12px;
  }

  #scene .fp-production .fps-bench .fps-local-drawing > :is(.fw-art, .fps-fixture) {
    height: 60px;
  }
}
