.case-book-stage { position: relative; height: 560px; width: 100%; padding: 16px; border: 1px solid #e5e7dc; border-radius: 8px; background: #f7f8f3; isolation: isolate; overflow: hidden; }
.case-book-host { width: 100%; height: 100%; margin: auto; transition: transform 280ms ease; }
.case-book-host:not(.stf__parent) .case-book-page { display: none; }
.case-book-page { overflow: hidden; background: #fffdf1; }
.case-book-page img { width: 100%; height: 100%; object-fit: contain; pointer-events: none; user-select: none; border-radius: 0; }
.case-book-preview { position: absolute; inset: 20px; display: grid; place-items: center; }
.case-book-preview img { height: 100%; max-height: 510px; width: auto; max-width: 100%; object-fit: contain; border-radius: 0; box-shadow: 0 8px 24px rgba(35, 40, 28, 0.12); }
.case-flipbook[data-ready="true"] .case-book-preview { display: none; }
.case-book-caption { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-top: 18px; }
.case-book-status { font-size: 12px; color: #798370; }
.case-book-controls { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.case-book-controls .case-icon-button:disabled { opacity: 0.3; cursor: default; }
.case-book-controls img { width: 17px; height: 17px; border-radius: 0; }
.case-book-page-control { display: flex; align-items: center; gap: 7px; margin-left: auto; color: #78816e; font-size: 12px; }
.case-book-page-control input { width: 56px; height: 34px; padding: 4px 6px; border: 1px solid #dce2d6; border-radius: 6px; background: #fff; color: #363d2d; font: inherit; text-align: center; }
.case-flipbook:fullscreen { padding: 24px; background: #fff; display: flex; flex-direction: column; overflow: auto; }
.case-flipbook:fullscreen .case-book-stage { flex: 1; min-height: 0; height: calc(100vh - 140px); }
.case-flipbook:fullscreen .case-book-host { max-width: 1360px; }
.case-storyboards > h3 { font-size: 20px; margin: 0 0 20px; line-height: 1.4; }
.storyboard-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.storyboard-cell { min-width: 0; }
.storyboard-cell > .case-image-button, .storyboard-pending { aspect-ratio: 775 / 1210; border: 1px solid #e4e7dc; border-radius: 8px; overflow: hidden; background: #fff; }
.storyboard-cell .case-image-button img { width: 100%; height: 100%; object-fit: contain; }
.storyboard-pending { display: grid; place-content: center; gap: 12px; text-align: center; color: #79846d; background: #fffdf3; }
.storyboard-pending span { font-size: 18px; }
.storyboard-pending small { font-size: 12px; color: #9aa18d; }
.storyboard-caption { margin: 12px 0 0; font-size: 12px; color: #818a77; }
@media (max-width: 520px) {
  .case-book-stage { height: 460px; padding: 10px; }
  .case-book-page-control { margin-left: 0; }
  .case-book-caption { align-items: start; }
  .case-book-caption .case-media-heading { max-width: 250px; }
  .storyboard-pair { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .case-flipbook:fullscreen { padding: 12px; }
}
@media (prefers-reduced-motion: reduce) { .case-book-host { transition: none; } }
