.product-image-batch-page {
  --batch-blue: #1769e0;
  --batch-blue-dark: #0f4fb4;
  --batch-border: #d8e2ee;
  --batch-soft: #f4f8fd;
  --batch-text: #172033;
}

.batch-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .75rem;
  margin: 2rem 0;
}

.batch-steps a {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: .65rem;
  padding: .9rem 1rem;
  border: 1px solid var(--batch-border);
  border-radius: 14px;
  background: #fff;
  color: var(--batch-text);
  font-weight: 700;
  text-decoration: none;
}

.batch-steps span,
.batch-section-heading > span {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--batch-blue);
  color: #fff;
  font-weight: 800;
}

.batch-steps span { width: 2rem; height: 2rem; }

.batch-section {
  margin: 1.5rem 0;
  padding: clamp(1.1rem, 3vw, 2rem);
  border: 1px solid var(--batch-border);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 12px 35px rgba(31, 56, 88, .06);
  scroll-margin-top: 1rem;
}

.batch-section-heading {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.4rem;
}

.batch-section-heading > span {
  min-width: 4.4rem;
  height: 2rem;
  padding: 0 .75rem;
  font-size: .75rem;
}

.batch-section-heading h2,
.batch-guide h2,
.product-image-batch-page .related-tools h2 {
  margin: 0;
  color: var(--batch-text);
  font-size: clamp(1.2rem, 3vw, 1.55rem);
  text-align: left;
}

.batch-section-heading p {
  margin: .35rem 0 0;
  color: #64748b;
  line-height: 1.6;
}

.batch-privacy {
  display: flex;
  align-items: center;
  gap: .65rem 1rem;
  margin-bottom: 1rem;
  padding: .85rem 1rem;
  border: 1px solid #bbf7d0;
  border-radius: 12px;
  background: #f0fdf4;
  color: #166534;
  font-size: .9rem;
}

.batch-privacy span { color: #3f6650; }

.batch-drop-area { margin: 0; cursor: pointer; }
.batch-drop-area.dragover { border-color: var(--batch-blue); background: #eff6ff; }
.batch-upload-icon {
  display: inline-flex;
  width: 3rem;
  height: 3rem;
  align-items: center;
  justify-content: center;
  margin-bottom: .5rem;
  border-radius: 50%;
  background: #e7f0ff;
  color: var(--batch-blue);
  font-size: 1.75rem;
  font-weight: 500;
}

.product-image-batch-page #batchSelectBtn {
  display: inline-block;
  width: auto;
  margin: .4rem auto;
  padding: .85rem 1.8rem;
  border-radius: 999px;
}

.batch-preview-area { margin-top: 1.25rem; }
.batch-list-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: .75rem;
}
.batch-list-head h3,
.batch-list-head p { margin: 0; }
.batch-list-head p {
  padding: .25rem .65rem;
  border-radius: 999px;
  background: #edf4ff;
  color: var(--batch-blue-dark);
  font-weight: 700;
}

.batch-file-grid,
.batch-result-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .8rem;
}

.batch-file-card,
.batch-result-card {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr);
  gap: .85rem;
  min-width: 0;
  padding: .8rem;
  border: 1px solid var(--batch-border);
  border-radius: 14px;
  background: #fff;
}

.batch-file-card img,
.batch-result-card img {
  width: 84px;
  height: 84px;
  border-radius: 10px;
  background: #f1f5f9;
  object-fit: contain;
}

.batch-file-card div,
.batch-result-card div { min-width: 0; }
.batch-file-name {
  margin: .15rem 0 .35rem;
  overflow: hidden;
  color: var(--batch-text);
  font-size: .9rem;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.batch-file-meta,
.batch-result-meta {
  margin: .2rem 0;
  color: #64748b;
  font-size: .78rem;
  line-height: 1.5;
}

.product-image-batch-page label {
  display: block;
  margin: 0 0 .45rem;
  color: var(--batch-text);
  font-weight: 700;
}

.product-image-batch-page select,
.product-image-batch-page input[type="text"] {
  width: 100%;
  max-width: 100%;
  min-height: 48px;
  margin: 0;
  padding: .75rem .85rem;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  background: #fff;
  color: var(--batch-text);
  font-size: 1rem;
}

.batch-setting-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.1rem;
  margin: 1.25rem 0;
}

.product-image-batch-page input[type="range"] { width: 100%; accent-color: var(--batch-blue); }
.batch-color-control {
  display: flex;
  min-height: 48px;
  align-items: center;
  gap: .75rem;
  padding: .35rem .65rem;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
}
.batch-color-control input { width: 42px; height: 34px; padding: 0; border: 0; background: transparent; }
.batch-color-control span { color: #475569; font-family: ui-monospace, monospace; }

.batch-primary-btn,
.batch-secondary-btn {
  width: auto;
  min-height: 46px;
  padding: .8rem 1.25rem;
  border-radius: 11px;
  font-weight: 700;
}
.batch-primary-btn { background: var(--batch-blue); color: #fff; }
.batch-primary-btn:hover { background: var(--batch-blue-dark); }
.batch-secondary-btn { border: 1px solid #b9c8d9; background: #fff; color: #334155; }
#batchProcessBtn { width: 100%; margin-top: 1.25rem; font-size: 1.05rem; }
#batchClearBtn { margin-top: 1rem; }

.batch-progress { min-height: 1.5em; margin: .9rem 0 0; color: #475569; }
.batch-empty-result {
  padding: 2rem 1rem;
  border: 1px dashed #b9c8d9;
  border-radius: 14px;
  background: var(--batch-soft);
  color: #64748b;
  text-align: center;
}
.batch-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .75rem;
  margin-bottom: 1rem;
}
.batch-summary div {
  padding: .85rem;
  border-radius: 12px;
  background: var(--batch-soft);
  text-align: center;
}
.batch-summary strong { display: block; color: var(--batch-text); font-size: 1.15rem; }
.batch-summary span { color: #64748b; font-size: .75rem; }
.batch-result-actions { display: flex; gap: .75rem; margin-bottom: 1rem; }
.batch-result-card { grid-template-columns: 100px minmax(0, 1fr); }
.batch-result-card img { width: 100px; height: 100px; }
.batch-result-card .batch-download-link {
  display: inline-flex;
  margin-top: .45rem;
  padding: .55rem .8rem;
  border-radius: 8px;
  background: #e7f0ff;
  color: var(--batch-blue-dark);
  font-size: .82rem;
  font-weight: 700;
  text-decoration: none;
}
.batch-reduction { color: #15803d; font-weight: 700; }
.batch-error { color: #b91c1c; }

.batch-guide {
  margin: 2rem 0;
  padding: clamp(1.1rem, 3vw, 1.8rem);
  border-radius: 18px;
  background: var(--batch-soft);
}
.batch-guide ol { display: grid; gap: .75rem; margin: 1rem 0 0; padding: 0; list-style: none; counter-reset: guide; }
.batch-guide li { display: grid; grid-template-columns: auto 1fr; gap: .25rem .8rem; counter-increment: guide; }
.batch-guide li::before {
  content: counter(guide);
  grid-row: 1 / 3;
  display: inline-flex;
  width: 1.8rem;
  height: 1.8rem;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--batch-blue);
  color: #fff;
  font-weight: 700;
}
.batch-guide li span { color: #64748b; line-height: 1.55; }

@media (max-width: 768px) {
  .batch-steps { grid-template-columns: 1fr; }
  .batch-steps a { padding: .7rem .85rem; }
  .batch-privacy { align-items: flex-start; flex-direction: column; }
  .batch-file-grid,
  .batch-result-grid,
  .batch-setting-grid { grid-template-columns: minmax(0, 1fr); }
  .batch-section-heading { gap: .7rem; }
  .batch-section-heading > span { min-width: 3.8rem; padding: 0 .55rem; }
  .batch-summary { grid-template-columns: 1fr; }
  .batch-result-actions { align-items: stretch; flex-direction: column; }
  .batch-result-actions button { width: 100%; }
}

@media (max-width: 420px) {
  .batch-file-card,
  .batch-result-card { grid-template-columns: 70px minmax(0, 1fr); padding: .65rem; }
  .batch-file-card img,
  .batch-result-card img { width: 70px; height: 70px; }
}
