/* Mobile spine preview sheet */
.spine-preview-backdrop {
  position: fixed;
  inset: 0;
  background: var(--overlay-soft);
  backdrop-filter: var(--overlay-blur);
  z-index: 90;
  display: none;
  align-items: flex-end;
  justify-content: center;
}
.spine-preview-backdrop.open { display: flex; }
.spine-preview-sheet {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px 12px 0 0;
  width: 100%;
  max-width: 420px;
  padding: 20px 22px 28px;
  box-shadow: var(--shadow-sheet);
  animation: sheetUp 0.28s ease;
}
@keyframes sheetUp {
  from { transform: translateY(100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.spine-preview-spine {
  width: 52px;
  height: 140px;
  border-radius: 3px 3px 1px 1px;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 4px;
  box-shadow: var(--spine-shadow);
}
.spine-preview-spine .spine-title {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-size: 0.68rem;
  max-height: 120px;
}
.spine-preview-title {
  font-size: 1.15rem;
  line-height: 1.3;
  color: var(--ivory);
  text-align: center;
  margin-bottom: 4px;
}
.spine-preview-author {
  text-align: center;
  color: var(--dim);
  font-size: 0.9rem;
  margin-bottom: 18px;
}
/* Open is the primary action, so it takes the full width and the two
   secondary actions share the row beneath rather than all three squeezing
   into one strip on a narrow phone. */
.spine-preview-actions {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.spine-preview-actions .btn { justify-content: center; }
.spine-preview-actions #previewOpenBtn { grid-column: 1 / -1; }
