/* The inner rails in the drawing intersect well behind the rack.
   Both pages travel about this point, inside the same stationary opening. */
.pc-stage .pc-tapes {
  /* The sloped rack leaves part of its rectangular box over the deck. */
  pointer-events: none;
  --pc-rail-origin-x: -79%;
  --pc-rail-depth: 7;
  --pc-tray-interior: var(--t700-image-studio-drawer-tray);
}
.pc-tapes > .pc-drawer-page {
  position: absolute;
  inset: 0;
  isolation: isolate;
  transform-origin: var(--pc-rail-origin-x) calc(-100% * var(--pc-rail-depth));
}
.pc-stage .pc-tapes:not(.pc-sliding) > .pc-drawer-page:not([inert]) .pc-tape {
  pointer-events: auto;
}
.pc-stage .pc-tapes.pc-sliding {
  overflow: hidden;
  background-color: #444351;
  clip-path: polygon(0 0, 79.7% 0, 84.7% 25%, 90.4% 50%, 96% 75%, 102% 97.6%, 10.5% 97.6%,
                     7.9% 75%, 4.6% 50%, 1.7% 25%);
}
/* Each four-tape page owns its ink dividers. Its opaque tray bed hides the
   same marks baked into the stationary room. No cabinet rim is in this art. */
.pc-tapes > .pc-drawer-page::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0;
  background: #444351 var(--pc-tray-interior) center / 100% 100% no-repeat;
}
.pc-tapes.pc-sliding > .pc-drawer-page::before {
  opacity: 1;
}
.pc-drawer-page[inert],
.pc-sliding > .pc-drawer-page {
  pointer-events: none;
}
.pc-stage .pc-pages .pc-page-field {
  cursor: text;
  gap: .22em;
  font-variant-numeric: tabular-nums;
}
.pc-stage .pc-page-field input {
  display: block;
  height: 80%;
  width: 2.2ch;
  min-width: 1.5em;
  min-height: 0;
  border: 0;
  border-bottom: 2px solid #765b45;
  border-radius: .1em;
  padding: 0;
  background: #fff2d7;
  color: inherit;
  font: inherit;
  text-align: center;
  appearance: none;
  -webkit-user-select: text;
  user-select: text;
}
.pc-stage .pc-page-field input:focus-visible {
  outline-offset: 1px;
}
@media (max-width: 900px), (max-width: 1100px) and (max-aspect-ratio: 1.12) {
  .pc-stage .pc-tapes {
    --pc-rail-origin-x: -85%;
    --pc-rail-depth: 7.5;
    --pc-tray-interior: var(--t700-image-studio-drawer-tray-mobile);
  }
  .pc-stage .pc-page-field input {
    min-width: 2.15em;
    font-size: max(16px, 1em);
  }
}
