/* The aperture, its handles and the two pointers share the same coordinates. */
.project-visual { position: relative; }
.stage-tools { display: flex; align-items: center; gap: 7px; }
.montage-control { display: none; }
.js .montage-control {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 36px;
  padding: 4px 12px;
  border: 1px solid #8b7465;
  border-radius: 20px;
  background: #1b1512f5;
  color: #fff4e8;
  font: 600 .82rem/1.3 var(--body);
}
.project-visual > .montage-control {
  position: absolute; right: 11px; bottom: 11px; z-index: 2;
}
.montage-control::before {
  content: '';
  width: 8px;
  height: 10px;
  background: #ffab83;
  clip-path: polygon(0 0, 100% 50%, 0 100%);
}
:is(.stage,.project-visual):has([data-playing]) .montage-control::before,
.stage[data-playing] .montage-control::before {
  width: 8px; height: 8px; clip-path: none;
}
.montage-control:hover { border-color: #ffc29a; }
.preparing-page [data-compose], .building-page [data-pending],
.preparing-page .montage-surface > :is(img,.canvas-wrap),
.allow-motion [data-art-pending] > :is(img,.canvas-wrap) { opacity: 0; }
#page-motion {
  position: fixed; z-index: 15; right: max(14px, env(safe-area-inset-right));
  bottom: max(12px, env(safe-area-inset-bottom)); padding: 8px 14px;
  border: 1px solid #78604e; border-radius: 24px; background: #211a15f5;
  box-shadow: 0 3px 14px #0004; color: #ffe4cf; font: 550 .85rem/1.4 var(--body);
}
#page-motion:hover { border-color: #ffb386; }
.js footer { padding-bottom: 46px; }
@media print {
  html [data-compose], html .montage-surface > :is(img,.canvas-wrap) { opacity: 1!important; clip-path: none!important; }
  #page-motion, .montage-overlay, .montage-control { display: none!important; }
}
@media (max-width: 400px) {
  .stage-head { left: 7px; right: 7px; }
  .stage-label { letter-spacing: .06em; }
  .stage-tools { gap: 4px; }
  .stage-tools .montage-control { font-size: .75rem; padding-inline: 8px; }
}
.montage-surface { isolation: isolate; }
.montage-surface > .montage-overlay { display: none; }
.montage-surface[data-workbench] > :is(img, .canvas-wrap) { opacity: 0; }
.montage-surface > .art-workbench {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  pointer-events: none;
}
@media print {
  .montage-surface > .art-workbench { display: none; }
}
