.design-editor-page .page-description {
  margin: 0 0 30px;
  font-size: 16px;
  line-height: 1.8;
  color: #666666;
}
.design-editor-page .page-description-break {
  display: inline;
}
.design-editor-page .page-description-emphasis {
  color: #b42318;
  font-weight: 700;
}
.design-editor-page .editor-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}
.design-editor-page .editor-side {
  display: flex;
  flex-direction: column;
  gap: 40px;
}
.design-editor-page .editor-main {
  order: 4;
  display: grid;
  gap: 20px;
  min-width: 0;
  padding-bottom: calc(24px + env(safe-area-inset-bottom));
}
.design-editor-page .editor-actions {
  order: 1;
  position: sticky;
  top: calc(100svh - 76px - env(safe-area-inset-bottom));
  z-index: 10;
  margin-left: 0;
  margin-top: -40px;
  margin-bottom: calc(-68px - env(safe-area-inset-bottom));
  width: 100%;
  padding: 10px 0 calc(10px + env(safe-area-inset-bottom));
  background: rgba(247, 247, 247, 0.15);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  box-sizing: border-box;
}
.design-editor-page .preview-gallery {
  order: 2;
}
.design-editor-page .preview-gallery-note {
  order: 3;
  margin-top: -28px;
}
.design-editor-page .editor-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.design-editor-page .editor-grid + .editor-grid {
  margin-top: 10px;
}
.design-editor-page .editor-field {
  min-width: 0;
}
.design-editor-page .preview-area {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 210/297;
  overflow: hidden;
  text-align: center;
  background: #ffffff;
}
.design-editor-page .preview-area > img:not(.preview-overlay-image) {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #ffffff;
}
.design-editor-page .preview-overlay-image {
  position: absolute;
  top: 25%;
  left: 50%;
  display: block;
  width: 16.5%;
  height: auto;
  aspect-ratio: 210/297;
  box-shadow: 0 2px 3px rgba(17, 17, 17, 0.3);
  transform: translate(-50%, -50%);
  object-fit: cover;
  background: #ffffff;
}
.design-editor-page .editor-action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.design-editor-page .editor-action-primary {
  width: 100%;
}
.design-editor-page .editor-action-primary .button-link {
  display: block;
  width: 100%;
  box-sizing: border-box;
  text-align: center;
}
.design-editor-page .status-text {
  color: #666666;
  font-size: 13px;
}
.design-editor-page label {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 700;
}
.design-editor-page .field-required-mark {
  vertical-align: super;
  color: #b42318;
  font-size: 0.75em;
  font-weight: 700;
}
.design-editor-page input,
.design-editor-page select {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #dddddd;
  border-radius: 10px;
  padding: 12px;
  font-size: 16px;
  background: #ffffff;
}
.design-editor-page .editor-error-text {
  margin-top: 3px;
  color: #b42318;
  font-size: 12px;
}

.toast-status {
  position: fixed;
  top: 8px;
  left: 50%;
  z-index: 80;
  max-width: calc(100vw - 24px);
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(17, 17, 17, 0.92);
  color: #ffffff;
  font-size: 13px;
  line-height: 1.4;
  text-align: center;
  transform: translateX(-50%) translateY(-8px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.toast-status.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

@keyframes download-button-fill {
  from {
    width: 0;
  }
  to {
    width: 100%;
  }
}
@keyframes download-button-bounce {
  0% {
    transform: scale(1);
  }
  30% {
    transform: scale(1.03);
  }
  55% {
    transform: scale(1);
  }
  75% {
    transform: scale(1.015);
  }
  100% {
    transform: scale(1);
  }
}
@media (min-width: 768px) {
  .design-editor-page .page-description-break {
    display: block;
  }
  .design-editor-page .editor-layout {
    grid-template-columns: minmax(0, 1fr) minmax(320px, 380px);
    align-items: start;
  }
  .design-editor-page .editor-side {
    display: grid;
    gap: 20px;
  }
  .design-editor-page .editor-main,
  .design-editor-page .editor-actions,
  .design-editor-page .preview-gallery,
  .design-editor-page .preview-gallery-note {
    order: initial;
  }
  .design-editor-page .editor-main {
    padding-bottom: 0;
  }
  .design-editor-page .preview-gallery-note {
    margin-top: 0;
  }
  .design-editor-page .preview-card {
    position: sticky;
    top: 12px;
    margin-bottom: 0;
  }
  .design-editor-page .editor-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }
  .design-editor-page .preview-area {
    min-height: 340px;
  }
  .design-editor-page .editor-actions {
    position: sticky;
    top: auto;
    order: initial;
    margin-left: 0;
    margin-top: 0;
    margin-bottom: 0;
    width: 100%;
    padding-left: 0;
    padding-right: 0;
    padding-bottom: 12px;
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}
