.product-sharing {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid #30475c;
}

.product-sharing .button { padding: 9px 13px; }
.admin-product-sharing { padding: 0 24px 16px; }
.admin-product-sharing .product-sharing { margin-top: 0; border: 0; }

#story-dialog {
  width: min(740px, calc(100% - 24px));
  max-height: 94dvh;
  padding: 0;
  background: #111924;
  color: var(--text);
  border: 1px solid #30475c;
  border-radius: 14px;
  overflow: auto;
}

#story-dialog::backdrop { background: #080d16cc; }

.story-header,
.story-body { padding: 20px 24px; }

.story-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid #30475c;
}

.story-header h2 { margin: 0; font-size: 24px; }

.story-body {
  display: grid;
  grid-template-columns: minmax(0, auto) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.story-body canvas {
  display: block;
  width: auto;
  max-width: 100%;
  height: min(64dvh, 570px);
  aspect-ratio: 9 / 16;
  background: #101b28;
  border-radius: 8px;
  border: 1px solid #30475c;
}

.story-actions { display: grid; gap: 12px; }
.story-actions label { display: flex; flex-direction: row; align-items: center; }
.story-actions label input { width: auto; }
.story-actions p { margin: 0; color: var(--muted); }
.story-actions [role="status"]:empty { display: none; }
.flyer-pages { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.flyer-pages [data-flyer-page] { white-space: nowrap; }

@media (max-width: 580px) {
  .story-header, .story-body { padding: 16px; }
  .story-body { grid-template-columns: 1fr; }
  .story-body canvas { height: min(48dvh, 440px); margin-inline: auto; }
}
