.niche-asin-batch {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid #e2e8f0;
}

.niche-asin-batch-head,
.niche-asin-report-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}

.niche-asin-batch-head strong,
.niche-asin-report-heading h2 {
  color: #0f172a;
}

.niche-asin-batch-head p,
.niche-asin-report-heading p {
  max-width: 72ch;
  margin: 8px 0 0;
  color: #64748b;
  line-height: 1.6;
}

.niche-asin-switch {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 8px;
  color: #334155;
  cursor: pointer;
  white-space: nowrap;
}

.niche-asin-switch input {
  width: 18px;
  height: 18px;
  accent-color: #4f46e5;
}

.niche-asin-batch-fields {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 0.42fr);
  gap: 16px;
  margin-top: 16px;
}

.niche-asin-batch-fields[hidden] {
  display: none;
}

.niche-asin-textarea textarea {
  min-height: 112px;
  resize: vertical;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  line-height: 1.5;
}

.niche-asin-file {
  display: flex;
  min-height: 112px;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 16px;
  border: 1px dashed #94a3b8;
  background: #f8fafc;
  color: #334155;
  cursor: pointer;
}

.niche-asin-file:hover {
  border-color: #4f46e5;
  background: #eef2ff;
}

.niche-asin-file:focus-within {
  outline: 3px solid rgba(79, 70, 229, 0.22);
  outline-offset: 2px;
}

.niche-asin-file i {
  color: #4f46e5;
  font-size: 1.5rem;
}

.niche-asin-file span {
  display: grid;
  gap: 4px;
}

.niche-asin-file small {
  color: #64748b;
}

.niche-asin-file input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.niche-asin-batch-status {
  grid-column: 1 / -1;
  color: #475569;
  font-variant-numeric: tabular-nums;
}

.niche-asin-batch-status.is-error {
  color: #b91c1c;
}

.niche-asin-report {
  margin: 24px 0;
  padding: 24px;
  border: 1px solid #c7d2fe;
  border-left: 4px solid #4f46e5;
  background: #f8fafc;
}

.niche-asin-report-kicker,
.niche-asin-report-source {
  color: #4338ca;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.niche-asin-report-heading h2 {
  margin: 8px 0 0;
  font-size: 1.5rem;
  line-height: 1.25;
}

.niche-asin-report-source {
  padding-top: 4px;
  white-space: nowrap;
}

.niche-asin-report-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 24px;
}

.niche-asin-report-metric {
  display: grid;
  gap: 4px;
  padding: 16px;
  border-top: 2px solid #c7d2fe;
  background: #ffffff;
}

.niche-asin-report-metric small,
.niche-asin-report-metric span {
  color: #64748b;
}

.niche-asin-report-metric strong {
  color: #0f172a;
  font-size: 1.5rem;
  font-variant-numeric: tabular-nums;
}

.niche-asin-report-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-top: 24px;
}

.niche-asin-report-block h3 {
  margin: 0 0 12px;
  color: #0f172a;
  font-size: 1rem;
}

.niche-asin-report-table {
  background: #ffffff;
}

.niche-asin-report-empty {
  min-height: 96px;
  margin: 0;
  padding: 24px;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  color: #64748b;
}

.niche-asin-report-warnings {
  margin-top: 24px;
  border-top: 1px solid #e2e8f0;
  padding-top: 16px;
  color: #475569;
}

.niche-asin-report-warnings summary {
  min-height: 44px;
  cursor: pointer;
  font-weight: 700;
}

.niche-asin-report-warnings li + li {
  margin-top: 8px;
}

@media (max-width: 860px) {
  .niche-asin-batch-head,
  .niche-asin-report-heading {
    flex-direction: column;
    gap: 12px;
  }

  .niche-asin-batch-fields,
  .niche-asin-report-grid {
    grid-template-columns: 1fr;
  }

  .niche-asin-report-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .niche-asin-report-source {
    white-space: normal;
  }
}

@media (max-width: 520px) {
  .niche-asin-report {
    margin-inline: -12px;
    padding: 16px 12px;
  }

  .niche-asin-report-metrics {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .niche-asin-file {
    transition: none;
  }
}
