:root {
  --product-ink: #2f3437;
  --product-muted: #787774;
  --product-border: #eaeaea;
  --product-surface: #ffffff;
  --product-soft: #f7f6f3;
  --product-green: #edf3ec;
  --product-green-text: #346538;
  --product-red: #fdebec;
  --product-red-text: #9f2f2d;
  --product-blue: #e1f3fe;
  --product-blue-text: #1f6c9f;
  --product-yellow: #fbf3db;
  --product-yellow-text: #956400;
}

.product-image-batch-page {
  background: #fbfbfa;
  color: var(--product-ink);
  font-family: "SF Pro Display", "Geist Sans", "Helvetica Neue", "Noto Sans SC", sans-serif;
}

.product-image-batch-page .tool-workspace {
  padding-bottom: 72px;
}

.product-image-batch-page h1 {
  max-width: 760px;
  color: #111111;
  font-family: "Lyon Text", "Newsreader", "Instrument Serif", "Songti SC", serif;
  letter-spacing: -0.035em;
}

.product-console {
  border-color: var(--product-border);
  box-shadow: none;
}

.product-console .tool-console-main,
.product-console .tool-console-side {
  background: var(--product-surface);
}

.product-console {
  grid-template-columns: minmax(0, 1.12fr) minmax(300px, 0.88fr);
}

.product-console .tool-panel-header p,
.product-side p,
.task-section-head p,
.status-line {
  color: var(--product-muted);
}

.product-link-input {
  min-height: 260px;
  border-color: var(--product-border);
  background: #ffffff;
  color: var(--product-ink);
}

.product-link-input:focus {
  border-color: rgba(17, 17, 17, 0.35);
  box-shadow: 0 0 0 2px rgba(17, 17, 17, 0.06);
}

.product-image-batch-page .button.primary {
  border-color: #111111;
  background: #111111;
  color: #ffffff;
  box-shadow: none;
}

.product-image-batch-page .button.primary:hover:not(:disabled) {
  background: #333333;
}

.product-image-batch-page .button:active:not(:disabled) {
  transform: scale(0.98);
}

.product-image-batch-page .button.danger {
  border-color: var(--product-red);
  background: var(--product-red);
  color: var(--product-red-text);
}

.product-image-batch-page .button.subtle {
  background: var(--product-soft);
}

.save-summary {
  display: grid;
  gap: 10px;
  padding: 24px;
  border: 1px solid var(--product-border);
  border-radius: 12px;
  background: #ffffff;
}

.save-summary span {
  width: fit-content;
  padding: 4px 8px;
  border-radius: 9999px;
  background: var(--product-green);
  color: var(--product-green-text);
  font-family: "Geist Mono", "SF Mono", monospace;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.save-summary strong {
  color: #111111;
  font-size: 28px;
  font-weight: 750;
  letter-spacing: -0.03em;
}

.task-section {
  margin-top: 28px;
  border: 1px solid var(--product-border);
  border-radius: 12px;
  background: #ffffff;
  overflow: hidden;
}

.task-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  padding: 24px 28px;
  border-bottom: 1px solid var(--product-border);
}

.task-section-head h2 {
  margin: 0;
  color: #111111;
  font-size: 22px;
  letter-spacing: -0.02em;
}

.task-section-head > p {
  max-width: 360px;
  text-align: right;
}

.task-table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  min-width: 840px;
  border-collapse: collapse;
  table-layout: fixed;
}

th,
td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--product-border);
  text-align: left;
  vertical-align: top;
  font-size: 13px;
}

th {
  background: #f9f9f8;
  color: #111111;
  font-weight: 700;
}

tr:last-child td {
  border-bottom: 0;
}

.empty {
  color: var(--product-muted);
  text-align: center;
}

.task-product-cell {
  display: grid;
  max-width: 100%;
  gap: 5px;
}

.task-product-cell strong,
.task-product-url {
  display: block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.task-product-cell strong {
  color: #111111;
  font-weight: 700;
}

.task-product-url {
  color: var(--product-muted);
  font-family: "Geist Mono", "SF Mono", monospace;
  font-size: 12px;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 8px;
  border-radius: 9999px;
  background: var(--product-soft);
  color: var(--product-muted);
  font-family: "Geist Mono", "SF Mono", monospace;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

tr[data-status="success"] .status-pill {
  background: var(--product-green);
  color: var(--product-green-text);
}

tr[data-status="failed"] .status-pill {
  background: var(--product-red);
  color: var(--product-red-text);
}

tr[data-status="skipped"] .status-pill {
  background: var(--product-soft);
  color: var(--product-muted);
}

tr[data-status="opening"] .status-pill,
tr[data-status="collecting"] .status-pill,
tr[data-status="downloading"] .status-pill,
tr[data-status="pending"] .status-pill {
  background: var(--product-yellow);
  color: var(--product-yellow-text);
}

@media (max-width: 820px) {
  .task-section-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .task-section-head > p {
    max-width: none;
    text-align: left;
  }

  .save-summary {
    padding: 20px;
  }
}
