/* Scoped artwork only: the shell owns layout, player and current-scene state. */
#scene {
  container-name: foundry-visual;
  container-type: inline-size;
}

#scene .foundry-scene {
  --fw-navy: var(--paper);
  --fw-panel: var(--paper);
  --fw-line: var(--muted);
  --fw-ink: var(--ink);
  --fw-muted: var(--muted);
  --fw-indigo: var(--ink);
  --fw-teal: var(--ink);
  box-sizing: border-box;
  margin: 0;
  padding: 16px;
  border: 1px solid var(--muted);
  border-radius: 0;
  background: transparent;
  color: var(--fw-ink);
  font-family: inherit;
  font-size: 14px;
  line-height: 1.4;
  word-break: normal;
  overflow-wrap: normal;
  hyphens: none;
  isolation: isolate;
}

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

#scene .foundry-scene *,
#scene .foundry-scene *::before,
#scene .foundry-scene *::after {
  box-sizing: border-box;
}

#scene .foundry-scene :is(h3, p, ol, ul) {
  margin: 0;
}

#scene .foundry-scene :is(h3, p, span, strong, li) {
  min-width: 0;
  word-break: normal;
  overflow-wrap: normal;
  hyphens: none;
}

#scene .fw-scene-body {
  width: 100%;
  min-width: 0;
}

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

#scene .fw-brand {
  display: block;
  max-width: 100%;
  object-fit: contain;
}

#scene .fw-brand-foundry {
  width: 170px;
  height: auto;
}

#scene .fw-brand-s1 {
  width: 180px;
  height: auto;
}

#scene .fw-art {
  display: block;
  width: 112px;
  max-width: 100%;
  height: 84px;
  margin-inline: auto;
  overflow: visible;
  fill: none;
  stroke: var(--ink);
  stroke-width: 1.15;
  stroke-linecap: round;
  stroke-linejoin: round;
}

#scene .fw-art > * {
  vector-effect: non-scaling-stroke;
}

#scene .fw-svg-surface {
  fill: none;
}

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

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

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

#scene .fw-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: center;
  padding: 10px 12px 12px;
  border: 1px solid var(--fw-line);
  border-radius: 0;
  background: transparent;
  text-align: center;
}

#scene .fw-card-title {
  color: var(--fw-ink);
  font-size: 16px;
  font-weight: 650;
  line-height: 1.25;
  text-wrap: balance;
}

#scene .fw-card-copy {
  color: var(--fw-muted);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.4;
  text-wrap: pretty;
}

#scene .fw-card .fw-card-copy {
  margin-top: 5px;
}

#scene .fw-note {
  margin-top: 12px !important;
  padding-top: 10px;
  border-top: 1px solid var(--muted);
  color: var(--ink);
  font-size: 14px;
  line-height: 1.45;
  text-align: center;
  text-wrap: pretty;
}

#scene .fw-pills {
  display: flex;
  min-width: 0;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

#scene .fw-pill {
  display: inline-block;
  padding: 5px 9px;
  border: 1px solid var(--muted);
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.25;
  text-align: center;
}

#scene .fw-pill-teal {
  border-color: var(--muted);
  background: transparent;
  color: var(--ink);
}

#scene .fw-small-label {
  display: block;
  color: var(--fw-muted);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.3;
}

#scene .fw-connector {
  position: relative;
  color: var(--ink);
  pointer-events: none;
}

#scene :is(.fw-branch-three, .fw-branch-two) {
  height: 18px;
  margin-inline: 16.666%;
  border-top: 1px solid currentColor;
  border-inline: 1px solid currentColor;
}

#scene :is(.fw-branch-three, .fw-branch-two)::before {
  position: absolute;
  top: -10px;
  left: 50%;
  width: 1px;
  height: 10px;
  background: currentColor;
  content: "";
}

#scene .fw-branch-three::after {
  position: absolute;
  top: 0;
  left: 50%;
  width: 1px;
  height: 17px;
  background: currentColor;
  content: "";
}

#scene .fw-branch-two {
  margin-inline: 25%;
}

/* 1 · A branded centre connects three concrete areas, not a software window. */
#scene .fw-welcome-centre {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  margin-bottom: 16px;
  text-align: center;
}

#scene .fw-lead {
  color: var(--ink);
  font-size: 16px;
  line-height: 1.35;
}

#scene .fw-welcome-areas .fw-art {
  height: 70px;
  margin-bottom: 4px;
}

/* 2 · The knowledge source stays separate from the individual project folders. */
#scene .fw-knowledge-source {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 10px;
}

#scene .fw-knowledge-source > .fw-art {
  flex: 0 0 88px;
  width: 88px;
  height: 66px;
  margin: 0;
}

#scene .fw-knowledge-copy .fw-card-title {
  margin-bottom: 8px;
  text-align: center;
}

#scene .fw-shared-band {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 20px;
  padding: 9px 14px;
  border: 1px solid var(--muted);
  border-radius: 0;
  background: transparent;
}

#scene .fw-band-label {
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
}

#scene .fw-knowledge .fw-branch-three {
  margin-top: 12px;
}

#scene .fw-projects .fw-card {
  position: relative;
  padding-top: 4px;
  background: transparent;
}

#scene .fw-projects .fw-art {
  width: 90px;
  height: 58px;
}

/* 3 · An actual requirements document leads to a readable, ordered test. */
#scene .fw-requirement-flow {
  display: grid;
  grid-template-columns: minmax(165px, 0.85fr) 24px minmax(0, 3fr);
  align-items: stretch;
  gap: 8px;
}

#scene .fw-requirement {
  padding: 12px;
  border: 1px solid var(--muted);
  border-radius: 0 0 0 0;
  background: transparent;
}

#scene .fw-requirement > .fw-art {
  width: 80px;
  height: 60px;
  margin-bottom: 4px;
}

#scene .fw-requirement .fw-card-title {
  text-align: center;
}

#scene .fw-requirement-list {
  display: grid;
  gap: 8px;
  margin-top: 14px !important;
  padding-left: 18px;
  color: var(--fw-muted);
  font-size: 14px;
  line-height: 1.35;
}

#scene .fw-requirement-list li::marker {
  color: var(--fw-teal);
}

#scene .fw-arrow-right {
  align-self: center;
  height: 1px;
  background: currentColor;
}

#scene .fw-arrow-right::after {
  position: absolute;
  top: -4px;
  right: 0;
  width: 8px;
  height: 8px;
  border-top: 1px solid currentColor;
  border-right: 1px solid currentColor;
  content: "";
  transform: rotate(45deg);
}

#scene .fw-test-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 9px;
  padding: 0;
  list-style: none;
}

#scene .fw-test-step {
  position: relative;
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: center;
  padding: 12px 8px;
  border: 1px solid var(--muted);
  border-radius: 0;
  background: transparent;
  text-align: center;
}

#scene .fw-step-number {
  align-self: flex-start;
  color: var(--ink);
  font-size: 14px;
  font-weight: 650;
}

#scene .fw-test-step .fw-art {
  width: 78px;
  height: 67px;
  margin-block: 8px;
}

#scene .fw-test-step .fw-card-copy {
  margin-top: 8px;
}

/* 4 · Intent above modules above equipment. No implied instrument GUI. */
#scene .fw-intent-band {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 18px;
  padding: 10px 12px;
  border: 1px solid var(--muted);
  border-radius: 0;
  background: transparent;
}

#scene .fw-tier-label {
  margin-block: 9px !important;
  color: var(--fw-muted);
  font-size: 14px;
  text-align: center;
}

#scene .fw-equipment-channels {
  gap: 14px;
}

#scene .fw-equipment-channel {
  min-width: 0;
}

#scene .fw-module-card {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 6px 10px;
  border: 1px solid var(--muted);
  border-radius: 0;
  background: transparent;
}

#scene .fw-module-card .fw-art {
  flex: 0 0 34px;
  width: 34px;
  height: 32px;
  margin: 0;
}

#scene .fw-module-card .fw-card-title {
  font-size: 14px;
  font-weight: 550;
}

#scene .fw-vertical-link {
  width: 1px;
  height: 13px;
  margin-inline: auto;
  background: currentColor;
}

#scene .fw-equipment {
  padding: 6px 10px 9px;
  border: 1px solid var(--fw-line);
  border-radius: 0;
  background: transparent;
  text-align: center;
}

#scene .fw-equipment .fw-art {
  width: 108px;
  height: 78px;
}

#scene .fw-equipment-label {
  margin-top: 3px !important;
  color: var(--fw-ink);
  font-size: 16px;
  line-height: 1.25;
}

/* 5 · An explicitly illustrative library, with reused and local work distinguished. */
#scene .fw-library {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px 16px;
  padding: 10px 14px;
  border: 1px solid var(--muted);
  border-radius: 0;
  background: transparent;
}

#scene .fw-library-heading {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 10px;
}

#scene .fw-library-heading > .fw-art {
  flex: 0 0 46px;
  width: 46px;
  height: 42px;
  margin: 0;
}

#scene .fw-library-heading .fw-card-copy {
  margin-top: 3px;
}

#scene .fw-library-blocks {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
}

#scene .fw-reuse .fw-branch-two {
  margin-top: 12px;
}

#scene .fw-product-family {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

#scene .fw-family-product {
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid var(--fw-line);
  border-radius: 0;
  background: transparent;
}

#scene .fw-family-heading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

#scene .fw-family-heading > .fw-art {
  flex: 0 0 66px;
  width: 66px;
  height: 56px;
  margin: 0;
}

#scene .fw-family-heading .fw-card-copy {
  margin-top: 4px;
}

#scene :is(.fw-reused-row, .fw-specific-row) {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 5px 8px;
  margin-top: 8px;
}

#scene .fw-reused-row .fw-pills {
  justify-content: flex-start;
  gap: 4px;
}

#scene .fw-reused-row .fw-pill {
  padding: 3px 6px;
}

#scene .fw-specific-row {
  padding-top: 8px;
  border-top: 1px dashed var(--muted);
}

#scene .fw-specific-copy {
  color: var(--ink);
  font-size: 14px;
  line-height: 1.35;
}

/* 6 · The identity of the test is shared; each physical station remains local. */
#scene .fw-sequence-stamp {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 4px;
}

#scene .fw-sequence-stamp > span {
  padding: 3px 7px;
  border: 1px solid var(--muted);
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.25;
}

#scene .fw-production .fw-branch-three {
  margin-top: 12px;
}

#scene .fw-setting {
  min-width: 0;
  padding: 10px 10px 8px;
  border: 1px solid var(--fw-line);
  border-radius: 0;
  background: transparent;
  text-align: center;
}

#scene .fw-carried-sequence {
  margin-block: 7px 2px;
}

#scene .fw-carried-sequence .fw-small-label {
  color: var(--ink);
}

#scene .fw-sequence-stamp-compact {
  max-width: 108px;
  margin: 5px auto 0;
}

#scene .fw-sequence-stamp-compact > span {
  flex: 1 1 0;
  height: 6px;
  padding: 0;
  border-radius: 0;
  background: transparent;
}

#scene .fw-setting > .fw-art {
  width: 91px;
  height: 68px;
}

#scene .fw-setting-equipment {
  color: var(--ink);
  font-size: 14px;
  font-weight: 550;
  line-height: 1.35;
}

#scene .fw-setting > .fw-card-copy {
  margin-top: 2px;
}

#scene .fw-station-check {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  margin-top: 8px;
  padding-top: 6px;
  border-top: 1px solid var(--muted);
  color: var(--ink);
  font-size: 14px;
  line-height: 1.3;
}

#scene .fw-station-check .fw-art {
  flex: 0 0 20px;
  width: 20px;
  height: 22px;
  margin: 0;
}

/* 7 · S1 is a foundation, not the safety controller. Boundaries stay explicit. */
#scene .fw-foundation {
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) minmax(220px, 1fr);
  align-items: stretch;
  gap: 18px;
}

#scene .fw-platform-stack {
  min-width: 0;
}

#scene .fw-platform-foundry {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--muted);
  border-radius: 0 0 0 0;
  background: transparent;
}

#scene .fw-platform-foundry > .fw-brand {
  width: 142px;
}

#scene .fw-platform-foundry .fw-pill {
  padding: 4px 7px;
}

#scene .fw-platform-s1 {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  padding: 12px 10px 10px;
  border: 1px solid var(--muted);
  border-radius: 0 0 0 0;
  background: transparent;
  text-align: center;
}

#scene .fw-platform-s1 > .fw-brand {
  width: 145px;
}

#scene .fw-platform-services {
  display: grid;
  width: 100%;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
  margin-top: 5px;
}

#scene .fw-service {
  min-width: 0;
  padding: 5px 3px 7px;
  border: 1px solid var(--muted);
  border-radius: 0;
  background: transparent;
}

#scene .fw-service .fw-art {
  width: 51px;
  height: 38px;
}

#scene .fw-service-title {
  color: var(--ink);
  font-size: 14px;
  font-weight: 550;
  line-height: 1.3;
}

#scene .fw-safety-boundary {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 14px 12px;
  border: 1px dashed var(--muted);
  border-radius: 0;
  background: transparent;
  text-align: center;
}

#scene .fw-boundary-label {
  color: var(--ink);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.3;
}

#scene .fw-safety-boundary > .fw-art {
  width: 110px;
  height: 70px;
}

#scene .fw-safety-boundary .fw-pill {
  border-color: var(--muted);
  background: transparent;
  color: var(--ink);
}

/* 8 · A complete chapter closing, not navigation to unfinished chapters. */
#scene .fw-example-journey {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  padding: 0;
  list-style: none;
}

#scene .fw-example-stop {
  position: relative;
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: center;
  padding: 12px 10px 14px;
  border: 1px solid var(--fw-line);
  border-radius: 0;
  background: transparent;
  text-align: center;
}

#scene .fw-example-stop:not(:last-child)::after {
  position: absolute;
  top: 50%;
  right: -19px;
  width: 10px;
  height: 10px;
  border-top: 1px solid var(--muted);
  border-right: 1px solid var(--muted);
  content: "";
  transform: rotate(45deg);
}

#scene .fw-example-stop > .fw-art {
  width: 133px;
  height: 100px;
  margin-bottom: 8px;
}

#scene .fw-example-art-pair {
  display: flex;
  width: 150px;
  max-width: 100%;
  height: 108px;
  align-items: center;
  justify-content: center;
}

#scene .fw-example-art-pair .fw-art-transmitter {
  flex: 0 0 100px;
  width: 100px;
  height: 100px;
  margin-right: -8px;
}

#scene .fw-example-art-pair .fw-art-document {
  width: 64px;
  height: 78px;
  margin: 15px 0 0;
}

#scene .fw-example-stop .fw-small-label {
  margin-bottom: 7px;
  color: var(--ink);
}

#scene .fw-example-stop .fw-card-copy {
  margin-top: 6px;
}

#scene .fw-chapter-close {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 14px;
  padding: 12px 14px;
  border: 1px solid var(--muted);
  border-radius: 0;
  background: transparent;
}

#scene .fw-chapter-close .fw-brand {
  flex: 0 0 108px;
  width: 108px;
  margin: 0;
}

#scene .fw-chapter-close p {
  max-width: 480px;
  color: var(--ink);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.4;
  text-wrap: pretty;
}

/* Respond to the actual scene width, including the shell's landscape agenda. */
@container foundry-visual (max-width: 850px) {
  #scene .fw-requirement-flow {
    grid-template-columns: minmax(160px, 0.8fr) 18px minmax(0, 2fr);
    gap: 7px;
  }

  #scene .fw-test-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  #scene .fw-test-step {
    display: grid;
    grid-template-columns: 25px minmax(0, 1fr);
    grid-template-rows: auto auto;
    align-content: center;
    gap: 4px 7px;
    padding: 9px;
    text-align: left;
  }

  #scene .fw-test-step .fw-step-number {
    grid-column: 1;
    grid-row: 1;
  }

  #scene .fw-test-step .fw-art {
    grid-column: 1;
    grid-row: 2;
    width: 25px;
    height: 28px;
    margin: 0;
  }

  #scene .fw-test-step .fw-card-title {
    grid-column: 2;
    grid-row: 1;
    text-wrap: wrap;
  }

  #scene .fw-test-step .fw-card-copy {
    grid-column: 2;
    grid-row: 2;
    margin: 0;
  }

  #scene .fw-library {
    gap: 8px;
    padding: 9px 12px;
  }

  #scene .fw-foundation {
    grid-template-columns: minmax(0, 1.65fr) minmax(205px, 1fr);
    gap: 12px;
  }

  #scene .fw-platform-foundry {
    gap: 8px;
    padding: 10px;
  }

  #scene .fw-platform-s1 {
    padding: 10px 8px 8px;
  }

  #scene .fw-platform-services {
    gap: 5px;
  }
}

@container foundry-visual (max-width: 680px) {
  #scene .foundry-scene {
    padding: 14px;
  }

  #scene .fw-three {
    gap: 9px;
  }

  #scene .fw-module-card {
    flex-direction: column;
    gap: 4px;
    text-align: center;
  }

  #scene .fw-module-card .fw-art {
    flex-basis: auto;
  }

  #scene .fw-welcome-areas .fw-card {
    padding-inline: 9px;
  }

  #scene .fw-lead {
    font-size: 14px;
  }

  #scene .fw-requirement-flow {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  #scene .fw-requirement {
    display: grid;
    grid-template-columns: 60px minmax(110px, 0.7fr) minmax(0, 1.2fr);
    align-items: center;
    gap: 10px;
    padding: 10px;
  }

  #scene .fw-requirement > .fw-art {
    width: 60px;
    height: 60px;
    margin: 0;
  }

  #scene .fw-requirement-list {
    gap: 4px;
    margin: 0 !important;
  }

  #scene .fw-arrow-right {
    display: none;
  }

  #scene .fw-test-step {
    min-height: 95px;
  }

  #scene .fw-library {
    justify-content: center;
  }

  #scene .fw-family-product {
    padding: 9px;
  }

  #scene .fw-reused-row {
    align-items: flex-start;
    flex-direction: column;
  }
}

/* The S1 foundation and the three-stop example stay side by side until the visual
   is genuinely narrow, so they fit short landscape screens without scrolling. */
@container foundry-visual (max-width: 559px) {

  #scene .fw-foundation {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  #scene .fw-safety-boundary {
    display: grid;
    grid-template-columns: 80px minmax(0, 1fr);
    gap: 6px 12px;
    padding: 12px;
  }

  #scene .fw-safety-boundary > .fw-art {
    grid-column: 1;
    grid-row: 1 / 5;
    width: 80px;
    height: 70px;
  }

  #scene .fw-safety-boundary > :not(.fw-art) {
    grid-column: 2;
  }

  #scene .fw-example-journey {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  #scene .fw-example-stop {
    display: grid;
    grid-template-columns: 118px minmax(0, 1fr);
    grid-template-rows: auto auto auto;
    align-items: center;
    justify-items: start;
    column-gap: 12px;
    padding: 12px;
    text-align: left;
  }

  #scene .fw-example-stop > :is(.fw-art, .fw-example-art-pair) {
    grid-column: 1;
    grid-row: 1 / 4;
    width: 118px;
    height: 90px;
    margin: 0;
  }

  #scene .fw-example-stop > :not(.fw-art, .fw-example-art-pair) {
    grid-column: 2;
  }

  #scene .fw-example-stop .fw-small-label {
    margin-bottom: 4px;
  }

  #scene .fw-example-stop .fw-card-title {
    text-wrap: wrap;
  }

  #scene .fw-example-stop:not(:last-child)::after {
    top: auto;
    right: 50%;
    bottom: -14px;
    width: 8px;
    height: 8px;
    transform: rotate(135deg);
  }

  #scene .fw-example-art-pair .fw-art-transmitter {
    flex-basis: 78px;
    width: 78px;
  }

  #scene .fw-example-art-pair .fw-art-document {
    width: 48px;
  }
}

@container foundry-visual (max-width: 510px) {
  #scene .foundry-scene {
    padding: 14px;
    border-radius: 0;
  }

  #scene .fw-three {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  #scene :is(.fw-branch-three, .fw-branch-two) {
    width: 1px;
    height: 14px;
    margin: 0 auto;
    border: 0;
    background: currentColor;
  }

  #scene :is(.fw-branch-three, .fw-branch-two)::before,
  #scene .fw-branch-three::after {
    display: none;
  }

  #scene .fw-welcome-centre {
    margin-bottom: 12px;
  }

  #scene .fw-welcome-areas .fw-card,
  #scene .fw-projects .fw-card {
    display: grid;
    grid-template-columns: 70px minmax(0, 1fr);
    grid-template-rows: auto auto;
    align-items: center;
    gap: 4px 10px;
    padding: 10px;
    text-align: left;
  }

  #scene .fw-welcome-areas .fw-art,
  #scene .fw-projects .fw-art {
    grid-column: 1;
    grid-row: 1 / 3;
    width: 70px;
    height: 62px;
    margin: 0;
  }

  #scene .fw-welcome-areas .fw-card-copy,
  #scene .fw-projects .fw-card-copy {
    margin: 0;
  }

  #scene .fw-knowledge-source {
    gap: 8px;
  }

  #scene .fw-knowledge-source > .fw-art {
    flex-basis: 64px;
    width: 64px;
    height: 68px;
  }

  #scene .fw-knowledge-copy .fw-pills {
    justify-content: flex-start;
  }

  #scene .fw-knowledge-copy .fw-card-title {
    text-align: left;
  }

  #scene .fw-shared-band,
  #scene .fw-intent-band {
    gap: 8px;
    padding: 10px;
    text-align: center;
  }

  #scene .fw-knowledge .fw-branch-three,
  #scene .fw-reuse .fw-branch-two,
  #scene .fw-production .fw-branch-three {
    margin-block: 0;
  }

  #scene .fw-requirement {
    grid-template-columns: 62px minmax(0, 1fr);
    gap: 8px 10px;
  }

  #scene .fw-requirement .fw-card-title {
    text-align: left;
  }

  #scene .fw-requirement-list {
    grid-column: 2;
    padding-left: 17px;
  }

  #scene .fw-requirement > .fw-art {
    grid-row: 1 / 3;
  }

  #scene .fw-test-steps {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  #scene .fw-test-step {
    grid-template-columns: 29px 49px minmax(0, 1fr);
    grid-template-rows: auto auto;
    gap: 4px 10px;
    min-height: 80px;
    padding: 11px;
  }

  #scene .fw-test-step .fw-step-number {
    grid-column: 1;
    grid-row: 1 / 3;
    align-self: center;
  }

  #scene .fw-test-step .fw-art {
    grid-column: 2;
    grid-row: 1 / 3;
    width: 49px;
    height: 46px;
  }

  #scene .fw-test-step .fw-card-title,
  #scene .fw-test-step .fw-card-copy {
    grid-column: 3;
  }

  #scene .fw-equipment-channels {
    gap: 12px;
  }

  #scene .fw-equipment-channel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 16px minmax(0, 1fr);
    align-items: center;
  }

  #scene .fw-module-card {
    flex-direction: column;
    gap: 5px;
    padding: 10px 8px;
    text-align: center;
  }

  #scene .fw-module-card .fw-art {
    width: 54px;
    height: 42px;
    flex-basis: auto;
  }

  #scene .fw-vertical-link {
    width: 16px;
    height: 1px;
  }

  #scene .fw-equipment {
    padding: 7px;
  }

  #scene .fw-equipment .fw-art {
    width: 90px;
    height: 67px;
  }

  #scene .fw-equipment-label {
    font-size: 14px;
  }

  #scene .fw-product-family {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  #scene .fw-library {
    gap: 10px;
    padding: 12px 10px;
  }

  #scene .fw-library-heading {
    gap: 8px;
  }

  #scene .fw-library-heading > .fw-art {
    flex-basis: 38px;
    width: 38px;
  }

  #scene .fw-library-blocks {
    width: 100%;
  }

  #scene .fw-family-heading {
    justify-content: flex-start;
  }

  #scene .fw-family-product {
    padding: 11px 12px;
  }

  #scene .fw-reused-row {
    flex-direction: row;
    align-items: center;
  }

  #scene .fw-setting {
    display: grid;
    grid-template-columns: 90px minmax(0, 1fr);
    align-items: center;
    gap: 5px 10px;
    padding: 12px;
    text-align: left;
  }

  #scene .fw-setting > .fw-art {
    grid-column: 1;
    grid-row: 1 / 5;
    width: 90px;
    height: 85px;
  }

  #scene .fw-setting > :not(.fw-art) {
    grid-column: 2;
  }

  #scene .fw-setting .fw-carried-sequence {
    margin: 0;
  }

  #scene .fw-setting .fw-sequence-stamp-compact {
    margin: 4px 0 0;
  }

  #scene .fw-setting .fw-card-copy {
    margin: 0;
  }

  #scene .fw-setting .fw-station-check {
    grid-column: 1 / -1;
    justify-content: flex-start;
    margin-top: 4px;
  }

  #scene .fw-platform-services {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  #scene .fw-service {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 12px;
    text-align: left;
  }

  #scene .fw-service .fw-art {
    flex: 0 0 44px;
    width: 44px;
    height: 34px;
    margin: 0;
  }

  #scene .fw-platform-foundry .fw-pills {
    gap: 5px;
  }

  #scene .fw-platform-foundry .fw-pill {
    padding: 4px 6px;
  }

  #scene .fw-safety-boundary {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  #scene .fw-safety-boundary > .fw-art {
    grid-column: 1;
    grid-row: auto;
    justify-self: center;
    width: 100px;
    height: 64px;
  }

  #scene .fw-safety-boundary > :not(.fw-art) {
    grid-column: 1;
  }

  #scene .fw-example-stop {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 0;
    padding: 13px 12px;
    text-align: center;
  }

  #scene .fw-example-stop > :is(.fw-art, .fw-example-art-pair) {
    grid-column: 1;
    grid-row: auto;
    width: 138px;
    height: 94px;
    margin-bottom: 8px;
  }

  #scene .fw-example-stop > :not(.fw-art, .fw-example-art-pair) {
    grid-column: 1;
  }

  #scene .fw-example-art-pair .fw-art-transmitter {
    flex-basis: 90px;
    width: 90px;
    height: 94px;
  }

  #scene .fw-example-art-pair .fw-art-document {
    width: 55px;
    height: 70px;
  }

  #scene .fw-chapter-close {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }

  #scene .fw-chapter-close .fw-brand {
    flex-basis: auto;
    width: 128px;
  }
}

@media (prefers-reduced-motion: no-preference) {
  #scene .foundry-scene.is-current .fw-scene-body {
    animation: foundry-welcome-arrive 320ms ease-out both;
  }
}

@media (prefers-reduced-motion: reduce) {
  #scene .foundry-scene,
  #scene .foundry-scene * {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

@keyframes foundry-welcome-arrive {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: translateY(0); }
}
