.design-tool {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.design-tool__description {
  margin: 0;
  color: rgba(26, 28, 30, 0.7);
}

.design-tool__card {
  padding: 1.25rem;
  border: 1px solid rgba(26, 28, 30, 0.12);
  border-radius: 18px;
  background-color: #fff;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  box-shadow: 0 6px 20px rgba(26, 28, 30, 0.05);
  position: relative;
  overflow: hidden;
}

.design-tool__actions {
  display: flex;
  gap: 0.75rem;
}

.design-tool__action-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.65rem 1.5rem;
  border-radius: 999px;
  border: 1px solid rgba(26, 28, 30, 0.25);
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  background-color: #fff;
  color: #1a1c1e;
}

.design-tool__action-button[disabled] {
  opacity: 0.5;
  cursor: not-allowed;
}

.design-tool__action-button--primary {
  background-color: #1a1c1e;
  color: #fff;
  border-color: #1a1c1e;
}

.design-tool__action-button--secondary {
  background-color: #f7f7f7;
}

.design-tool__pane {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.design-tool__pane label {
  font-weight: 600;
  color: #1a1c1e;
}

.design-tool__hint {
  margin: 0;
  color: rgba(26, 28, 30, 0.6);
}

.design-tool__meta-inline {
  margin: 0;
  color: #1a1c1e;
}

.design-tool__mobile-tip {
  display: none;
  margin-top: 0.25rem;
}

.design-tool__preview {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.design-tool__preview-label {
  font-weight: 600;
  color: #1a1c1e;
}

.design-tool__preview-media {
  min-height: 180px;
  border-radius: 12px;
  border: 1px dashed rgba(26, 28, 30, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem;
  overflow: hidden;
  background-color: #fdfdfd;
}

.design-tool__preview-image {
  max-width: 100%;
  max-height: 320px;
  border-radius: 8px;
  object-fit: contain;
}

.design-tool__preview-placeholder {
  text-align: center;
  color: rgba(26, 28, 30, 0.5);
  font-style: italic;
}

.design-tool__error {
  margin: 0;
  color: #d82c0d;
  font-weight: 600;
}

.design-tool__clear {
  margin-top: 0.5rem;
  padding: 0.45rem 1.1rem;
  border-radius: 999px;
  border: 1px solid rgba(26, 28, 30, 0.35);
  background-color: transparent;
  color: #d82c0d;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.design-tool__clear:hover,
.design-tool__clear:focus-visible {
  border-color: #d82c0d;
  background-color: rgba(216, 44, 13, 0.08);
  color: #a21f05;
}

.design-tool__clear:active {
  background-color: rgba(216, 44, 13, 0.16);
}

.design-tool__clear[hidden] {
  display: none !important;
}

.design-tool__free-proof {
  margin: 0;
}

.design-tool__free-proof-highlight {
  color: rgb(233, 119, 35);
  font-weight: 600;
  margin-right: 0.35rem;
}

.design-tool__free-proof-highlight-color {
  display: block;
  color: rgb(233, 119, 35);
  font-weight: 600;
  margin-right: 0.35rem;
}

.design-tool__free-proof-text {
  color: #1a1c1e;
}

.design-tool__free-proof-sub {
  display: block;
  margin-top: 0.25rem;
  color: rgba(26, 28, 30, 0.6);
}

.design-tool__card--loading {
  pointer-events: none;
}

.design-tool__card--loading::before {
  content: "";
  position: absolute;
  inset: 0;
  background-color: rgba(255, 255, 255, 0.85);
  border-radius: inherit;
  z-index: 1;
}

.design-tool__card--loading::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 32px;
  height: 32px;
  margin-top: -16px;
  margin-left: -16px;
  border-radius: 50%;
  border: 3px solid rgba(26, 28, 30, 0.2);
  border-top-color: #1a1c1e;
  animation: design-tool-spin 0.8s linear infinite;
  z-index: 2;
}

@keyframes design-tool-spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

/* 隐藏 Pacdora 设计工具中的 Outside/Inside 预览图 */
.side-pop-box .side-pop-item {
  height: auto !important;
}

.side-pop-box .side-pop-item img {
  display: none !important;
}

@media (max-width: 749px) {
  .design-tool__action-button {
    width: 100%;
    justify-content: center;
  }

  .design-tool__clear {
    width: 100%;
    text-align: center;
  }

  .design-tool__mobile-tip {
    display: block;
  }
}
