#zp-photobooks :is(.pb-calendar-workspace,.pb-project-files) {
  display: grid;
  grid-template-columns: minmax(0,1fr) minmax(0,1fr);
  align-items: start;
  gap: clamp(16px,3vw,40px);
}

#zp-photobooks .pb-calendar-workspace-controls {
  display: grid;
  gap: 12px;
}

#zp-photobooks .pb-calendar-workspace-controls > p { margin: 0; }
#zp-photobooks :is(.pb-calendar-workspace-controls, .pb-project-file, .pb-cover-options) label { display: grid; gap: 6px; }
#zp-photobooks :is(.pb-calendar-workspace-controls, .pb-project-file, .pb-cover-options) input { min-width: 0; max-width: 100%; }

#zp-photobooks .pb-calendar-workspace figure {
  display: grid;
  justify-items: center;
  margin: 0;
  padding: clamp(12px,3vw,32px);
  border-radius: 14px;
  background: var(--pb-surface);
}

#zp-photobooks .pb-calendar-workspace canvas {
  width: auto;
  max-width: 100%;
  max-height: 660px;
  object-fit: contain;
  box-shadow: 0 10px 22px rgb(35 22 48 / 14%);
}

#zp-photobooks :is(.pb-project-file,.pb-cover-options) {
  min-inline-size: 0;
  margin: 0;
  padding: 14px;
  border: 1px solid var(--pb-line);
  border-radius: 12px;
}

#zp-photobooks :is(.pb-project-file,.pb-cover-options) legend {
  padding: 0 6px;
  font-weight: 700;
}

#zp-photobooks .pb-cover-options .pb-fields { margin-top: 12px; }
#zp-photobooks .pb-project-file img { width: 100%; height: auto; margin: 10px 0; border-radius: 6px; }
#zp-photobooks .pb-cover-options [data-cover-insert-preview] { max-width: 180px; max-height: 160px; object-fit: contain; }
#zp-photobooks .pb-spine-guide .pb-table { margin-top: 12px; }
#zp-photobooks .pb-project-section [role="status"]:not(:empty) { overflow-wrap: anywhere; }

@media (max-width: 720px) {
  #zp-photobooks :is(.pb-calendar-workspace,.pb-project-files) { grid-template-columns: minmax(0,1fr); }
}
