.pc-stage .pc-viewer:not(:fullscreen):not([data-expanded="true"]) .pc-screen {
  isolation: isolate;
  aspect-ratio: 16 / 9;
  clip-path: none;
  overflow: visible;
  background: transparent;
  border: 0;
  border-radius: 0;
  outline: none;
  box-shadow: none;
}
/* The outside and inside both use the same 16:9 coordinates. Letterboxing
   belongs inside the glass, so it follows the source film on every device. */
.pc-stage .pc-viewer:not(:fullscreen):not([data-expanded="true"]) .pc-screen video {
  position: absolute;
  inset: 1.35%;
  width: 97.3%;
  height: 97.3%;
}
.pc-stage .pc-screen video {
  display: block;
  object-fit: contain;
  object-position: center;
  background: #0e1013;
}
.pc-stage .pc-viewer:not(:fullscreen):not([data-expanded="true"]) .pc-screen::before,
.pc-stage .pc-viewer:not(:fullscreen):not([data-expanded="true"]) .pc-screen::after {
  position: absolute;
  content: '';
  pointer-events: none;
}
.pc-stage .pc-viewer:not(:fullscreen):not([data-expanded="true"]) .pc-screen::before {
  z-index: -1;
  inset: .45%;
  border-radius: .6%;
  background: #191c24;
  box-shadow: 0 .16em .2em #17192292;
}
.pc-stage .pc-viewer:not(:fullscreen):not([data-expanded="true"]) .pc-screen::after {
  inset: 0;
  z-index: 1;
  background: var(--t700-image-studio-monitor-rim) center / 100% 100% no-repeat;
}

@media (width > 1100px), (width > 900px) and (aspect-ratio > 1.12) {
  /* The hidden deck travels past the worktop during a swap. Its motion
     must never scroll the fixed desktop scene when a control takes focus. */
  .scene.scene-studio:has(.pc-stage), .pc-stage {
    overflow: clip;
  }
  .scene.scene-studio.pc-room {
    /* Reserve the ink header's height while retaining the desk proportions. */
    padding-top: max(0px, calc((var(--t700-mast-height) + 2px - 5.65cqh) / .9435));
    background: #35394c var(--t700-image-studio-room) center top / min(100%, var(--studio-max-width)) 100% no-repeat;
  }
  .pc-stage {
    --studio-screen-width: min(61.4cqw, 109cqh);
    --studio-screen-top: 5.65cqh;
    height: 100%;
  }
  .pc-stage .pc-viewer:not(:fullscreen):not([data-expanded="true"]) .pc-screen {
    top: var(--studio-screen-top);
    left: 50.64%;
    transform: translateX(-50%);
    /* Leave both speakers visible and allow the foreground furniture to mask
       only the extreme lower corners of the physical display. */
    width: var(--studio-screen-width);
    height: auto;
    z-index: 1;
  }
  .pc-stage .pc-viewer:not(:fullscreen):not([data-expanded="true"])::after {
    content: '';
    position: absolute;
    z-index: 4;
    left: 0;
    top: calc(100% * 365 / 941);
    bottom: 0;
    width: 100%;
    height: auto;
    background: var(--t700-image-studio-front-props) center / 100% 100% no-repeat;
    pointer-events: none;
  }
  /* The physical sides cover the deck wings. Every readable or interactive
     surface belongs above that paint, including the drawer during its travel. */
  .pc-stage .pc-library > :is(.pc-library-title,.pc-level,.pc-browse,.pc-tapes,.pc-pages),
  .pc-stage[data-mode] .pc-notes[data-tapes] {
    z-index: 5;
  }
}
/* Beyond the usable desk proportions, continue the acoustic slats, back
   wall and worktop from the painting. Their height tracks the stage. The
   mirrored paint strip joins at its original outside edge on either side. */
@media (width > 900px) and (aspect-ratio > 2.14) {
  .scene.scene-studio::before,
  .scene.scene-studio::after {
    content: '';
    position: absolute;
    z-index: -1;
    inset-block: 0;
    width: calc((100% - var(--studio-max-width)) / 2 + 1px);
    background: var(--t700-image-studio-room-wing) left top / auto 100% repeat-x;
    pointer-events: none;
  }
  .scene.scene-studio::before { left: 0; background-position: right top; }
  .scene.scene-studio::after { right: 0; }
}
/* On taller desktop windows, trade extra desk depth for useful picture area.
   The acoustic wall, speaker paint, and the front cabinet/clipboard are real
   separate surfaces. Their relative arrangement is identical in A/B and solo. */
@media (width > 1100px) and (aspect-ratio < 1.72), (width > 900px) and (1.12 < aspect-ratio < 1.72) {
  .pc-stage {
    --room-art: var(--t700-image-studio-room-open);
    --additional-screen-width: clamp(0px, calc((100cqh - 58.14cqw) * 2.45), 14.6cqw);
    --studio-screen-width: min(calc(61.4cqw + var(--additional-screen-width)), 112cqh);
    --speaker-offset: max(0px, calc((var(--studio-screen-width) - 61.4cqw) * .5));
  }
  .pc-stage .pc-viewer:not(:fullscreen):not([data-expanded="true"])::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background-image: var(--t700-image-studio-speaker-left), var(--t700-image-studio-speaker-right);
    background-repeat: no-repeat;
    background-size: 17.46411cqw 37.61955cqh, 16.80622cqw 37.72582cqh;
    background-position: calc(2.69139cqw - var(--speaker-offset)) 6.48247cqh,
      calc(81.69856cqw + var(--speaker-offset)) 6.3762cqh;
  }
}
@media (max-width: 900px), (max-width: 1100px) and (max-aspect-ratio: 1.12) {
  .pc-stage .pc-viewer:not(:fullscreen):not([data-expanded="true"]) .pc-screen {
    width: min(calc(100vw - 6px), 1100px);
    max-width: none;
    justify-self: center;
    height: auto;
  }
}
.pc-stage .pc-viewer:is(:fullscreen,[data-expanded="true"]) .pc-screen {
  width: min(100vw, calc((100dvh - 66px) * 16 / 9));
  height: auto;
  aspect-ratio: 16 / 9;
  flex: none;
}
