* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Microsoft YaHei", sans-serif;
  background: #f5f7fb;
  color: #222;
}

.container {
  max-width: 1400px;
  margin: 24px auto;
  padding: 0 16px 40px;
}

h1 {
  margin-bottom: 8px;
}

.desc {
  color: #666;
  margin-bottom: 20px;
}

.panel {
  background: #fff;
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 16px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.upload-box {
  display: block;
  border: 2px dashed #7aa2ff;
  border-radius: 12px;
  padding: 28px;
  text-align: center;
  color: #3d64c5;
  cursor: pointer;
  background: #f7faff;
}

.upload-box input {
  display: none;
}

.actions {
  margin-top: 14px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

button {
  border: none;
  background: #2563eb;
  color: white;
  border-radius: 8px;
  padding: 10px 16px;
  cursor: pointer;
}

button:disabled {
  background: #9ca3af;
  cursor: not-allowed;
}

button:hover:not(:disabled) {
  background: #1e4fc2;
}

.file-list {
  display: grid;
  gap: 8px;
}

.file-item {
  padding: 10px 12px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #fafafa;
}

.table-wrap {
  overflow: auto;
  max-height: 600px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 1600px;
}

th, td {
  border: 1px solid #e5e7eb;
  padding: 8px;
  font-size: 13px;
  vertical-align: top;
}

th {
  background: #f3f4f6;
  position: sticky;
  top: 0;
}

.badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 12px;
  margin-right: 8px;
}

.ok {
  background: #dcfce7;
  color: #166534;
}

.warn {
  background: #fef3c7;
  color: #92400e;
}

.err {
  background: #fee2e2;
  color: #991b1b;
}

.issue-item {
  padding: 8px 10px;
  margin-bottom: 8px;
  border-radius: 8px;
  background: #fff7ed;
  border: 1px solid #fed7aa;
}

.summary-block {
  margin-bottom: 12px;
  line-height: 1.8;
}
