.shot-preview-button, .shot-preview-exit, .shot-preview-arrows button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 6px 10px;
  border: 1px solid #ac8a60;
  border-radius: 7px;
  color: #503b29;
  background: #fff1d9 var(--paper) center / 380px;
  box-shadow: inset 0 1px #fff8e8, 0 2px #b2926b;
  font: 750 13px/1.3 var(--font-round);
  white-space: nowrap;
  cursor: pointer;
}
.studio-desk .monitor-tools > .shot-preview-button:disabled {
  color: #786c5d; background-color: #e3d6c1; box-shadow: none; cursor: default; filter: none;
}
.shot-preview-button:enabled:hover, .shot-preview-exit:hover, .shot-preview-arrows button[aria-disabled="false"]:hover {
  border-color: #795435; background-color: #ffe7bb;
}

.school-paper #content:has(> .shot-preview) {
  box-sizing: border-box;
  width: min(100%, 1570px);
  max-width: none;
  margin: 0 auto;
  padding: clamp(14px, 2vh, 22px) clamp(14px, 2.5vw, 40px) 20px;
}
#content:has(> .shot-preview) > :is(.studio-desk, studio-support) { display: none; }
.shot-preview {
  width: 100%;
  min-width: 0;
  margin: 0 auto;
  color: #403025;
  font-family: var(--font-round);
}
.shot-preview-head, .shot-preview-foot { display: flex; align-items: center; gap: 16px; }
.shot-preview-head { justify-content: space-between; margin-bottom: 12px; }
.shot-preview-head > div { min-width: 0; }
.shot-preview-head p { margin: 0 0 3px; color: #765e48; font: 650 13px/1.35 var(--font-cn); overflow-wrap: anywhere; }
.shot-preview-head h1 { display: flex; align-items: baseline; flex-wrap: wrap; gap: 10px; margin: 0; font: 900 clamp(21px, 2vw, 31px)/1.2 var(--font-round); }
.shot-preview-head h1 span { color: #725641; font-size: .68em; }
.shot-preview-exit { flex: none; min-height: 40px; padding-inline: 13px; }
.shot-preview-frame {
  position: relative;
  padding: clamp(5px, .65vw, 10px);
  margin: 0;
  border: 1px solid #99734d;
  border-radius: 13px;
  background: #cba16c var(--kraftimg) center / 480px;
  box-shadow: inset 0 1px #f5dbb4, 2px 3px #ac784d, 4px 6px #d79c56, 3px 7px 12px #75503235;
  transform-origin: top left;
}
.shot-preview-image {
  display: grid;
  place-items: center;
  width: 100%;
  height: clamp(180px, calc(100dvh - var(--student-bar-height) - 200px), 1000px);
  overflow: hidden;
  border-radius: 7px;
  background: #25231f;
  color: #fff5e2;
  touch-action: pan-y pinch-zoom;
}
.shot-preview-image > img, .shot-preview-image > svg {
  display: block; width: 100%; height: 100%; min-height: 0; object-fit: contain; user-select: none;
}
.shot-preview-foot {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: clamp(8px, 2vw, 30px);
  margin-top: 13px;
}
#shot-preview-current { display: grid; gap: 2px; white-space: nowrap; }
#shot-preview-current b { font: 800 18px/1.1 var(--font-mono); color: #8e3b2d; }
#shot-preview-current span { color: #705841; font: 650 12px/1.35 var(--font-cn); }
.shot-preview-strip {
  display: flex;
  align-items: center;
  gap: 7px;
  justify-self: center;
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
  padding: 4px;
  scrollbar-width: thin;
  scrollbar-color: #b39b7b transparent;
}
.shot-preview-strip button {
  display: grid;
  grid-template-columns: auto auto;
  align-items: center;
  gap: 6px;
  flex: none;
  padding: 4px 8px 4px 4px;
  min-height: 44px;
  border: 1px solid #b9a084;
  border-radius: 5px;
  background: #fbedd5 var(--paper) center / 380px;
  color: #5d4634;
  font: 750 12px/1 var(--font-mono);
  cursor: pointer;
}
.shot-preview-strip button[aria-current] {
  border-color: #943f2f;
  box-shadow: 0 0 0 1px #a54b38;
  color: #8e3528;
  background-color: #f5dcbd;
}
.shot-preview-thumb { display: block; width: 48px; aspect-ratio: 1.6; overflow: hidden; border-radius: 2px; background: #4d4438; }
.shot-preview-thumb > :is(img, svg) { display: block; width: 100%; height: 100%; object-fit: cover; }
.shot-preview-arrows { display: flex; gap: 6px; }
.shot-preview-arrows button { min-width: 43px; height: 43px; padding: 0; }
.shot-preview-arrows [data-preview-step="-1"] svg { transform: rotate(180deg); }
.shot-preview-arrows button[aria-disabled="true"] { opacity: .43; box-shadow: none; cursor: default; }
.shot-preview [hidden] { display: none; }
.shot-preview :is(button, a):focus-visible, .shot-preview-button:focus-visible { outline: 3px solid #276451; outline-offset: 2px; }
@media (min-width: 681px) and (max-height: 540px) {
  .school-paper #content:has(> .shot-preview) { padding: 9px 16px 12px; }
  .shot-preview { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); align-items: center; gap: 6px 20px; }
  .shot-preview-head, .shot-preview-foot { margin: 0; gap: 8px; }
  .shot-preview-head h1 { font-size: 20px; }
  .shot-preview-foot { grid-column: 2; grid-row: 1; }
  .shot-preview-frame { grid-column: 1 / -1; grid-row: 2; padding: 5px; }
  .shot-preview-image { height: max(180px, calc(100dvh - var(--student-bar-height) - 93px)); }
}
@media (max-width: 680px) {
  .shot-preview-head { gap: 8px; margin-bottom: 10px; }
  .shot-preview-head p { font-size: 12px; }
  .shot-preview-frame { padding: 5px; border-radius: 10px; }
  .shot-preview-image {
    height: auto;
    aspect-ratio: var(--shot-ratio, 16/9);
    max-height: max(170px, calc(100dvh - var(--student-bar-height) - 180px));
    border-radius: 5px;
  }
  .shot-preview-foot { gap: 7px; }
  .shot-preview-strip { gap: 5px; }
  .shot-preview-strip button { gap: 4px; padding-right: 5px; }
  .shot-preview-thumb { width: 36px; }
  .shot-preview-arrows { gap: 4px; }
  .shot-preview-arrows button { min-width: 38px; }
}
