.long-gallery {
  display: grid;
  grid-template-columns: minmax(0, 800px);
  justify-content: center;
  gap: 20px;
}

.product-wrap { width: min(1560px, calc(100% - 32px)); }
.product-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(420px, 540px); gap: 20px; align-items: start; }
.product-primary { min-width: 0; }
.product-preview { position: sticky; top: 16px; min-width: 0; }
.preview-scroll { max-height: calc(100vh - 32px); overflow-y: auto; padding-right: 5px; scrollbar-gutter: stable; }
.copy-heading { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.copy-heading h2, .copy-heading p { margin: 0; }
.copy-heading .btn { flex: 0 0 auto; }
.compact-codebox { min-height: 88px; margin-top: 14px; }

.long-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #fff;
}

.long-card > img {
  display: block;
  width: 100%;
  height: auto;
  background: #edf1f4;
}

.status-ok { color: #0c6b43; }
.status-warning { color: #9a6700; font-weight: 700; }
.status-error { color: var(--danger); font-weight: 700; }

.upload-result {
  margin-bottom: 20px;
  padding: 18px 20px;
  border: 1px solid #a8ddc4;
  border-radius: 12px;
  background: #eaf8f1;
}

.upload-result h2 { margin: 0 0 12px; font-size: 1.1rem; }
.upload-result p { margin: 12px 0 0; }
.result-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.result-grid span { padding: 10px; border-radius: 8px; background: #fff; }
.result-grid strong { display: block; margin-top: 3px; }

@media (max-width: 760px) {
  .result-grid { grid-template-columns: repeat(2, 1fr); }
}

.long-card > div {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 10px;
}
