body {
  font-family: "Segoe UI", "PingFang SC", sans-serif;
  background: #f6f7fb;
  color: #1f2937;
  margin: 0;
}

.container {
  max-width: 900px;
  margin: 40px auto;
  padding: 0 20px;
}

h1 {
  margin-bottom: 20px;
}

h2 {
  margin-top: 0;
}

.card {
  background: #fff;
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.stat {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 18px;
}

.status {
  margin-top: 12px;
  color: #4b5563;
}

.form {
  display: grid;
  gap: 12px;
}

.grid {
  display: grid;
  gap: 20px;
}

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

label {
  display: grid;
  gap: 6px;
  font-size: 14px;
}

input,
textarea {
  padding: 10px 12px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font: inherit;
  resize: vertical;
}

button {
  padding: 10px 14px;
  border: none;
  border-radius: 6px;
  background: #2563eb;
  color: #fff;
  cursor: pointer;
}

button:hover {
  background: #1d4ed8;
}

.muted {
  margin: 0 0 12px;
  color: #6b7280;
  font-size: 14px;
}

.notice {
  margin-bottom: 20px;
  padding: 12px 14px;
  border-radius: 8px;
  font-size: 14px;
}

.notice-success {
  background: #ecfdf5;
  color: #166534;
  border: 1px solid #a7f3d0;
}

.notice-error {
  background: #fef2f2;
  color: #b91c1c;
  border: 1px solid #fecaca;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  border-bottom: 1px solid #e5e7eb;
  padding: 10px;
  text-align: left;
  font-size: 14px;
  vertical-align: top;
}

.inline-form {
  display: inline;
}

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

.queue-item,
.report-item {
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 12px;
  margin-top: 12px;
  background: #f9fafb;
}

.queue-head,
.report-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.progress {
  height: 8px;
  border-radius: 999px;
  background: #e5e7eb;
  overflow: hidden;
  margin-bottom: 8px;
}

.progress > div {
  height: 100%;
  background: linear-gradient(90deg, #2563eb, #3b82f6);
}

.badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 600;
}

.badge-pending {
  background: #fef3c7;
  color: #92400e;
}

.badge-processing {
  background: #dbeafe;
  color: #1d4ed8;
}

.badge-done {
  background: #dcfce7;
  color: #166534;
}

.badge-failed {
  background: #fee2e2;
  color: #b91c1c;
}

.report-list {
  display: grid;
  gap: 12px;
}

.report-note {
  margin-bottom: 8px;
  color: #4b5563;
  font-size: 14px;
  white-space: pre-wrap;
}

.empty-state,
.empty-cell {
  color: #6b7280;
  text-align: center;
}

small {
  color: #6b7280;
}

@media (max-width: 768px) {
  .container {
    margin: 24px auto;
  }

  .grid-2 {
    grid-template-columns: 1fr;
  }

  .queue-head,
  .report-main,
  .stat {
    align-items: flex-start;
    flex-direction: column;
  }
}
