:root {
  color-scheme: light;
  font-family: "Microsoft YaHei", "PingFang SC", "Segoe UI", Arial, sans-serif;
  background: #f4f7f9;
  color: #16202a;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
}

button,
input,
select {
  font: inherit;
}

.shell {
  width: min(1180px, calc(100vw - 32px));
  margin: 32px auto;
}

.toolbar,
.upload-panel,
.status-line,
.table-wrap {
  background: #ffffff;
  border: 1px solid #d8e1e8;
  border-radius: 8px;
}

.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px;
}

h1 {
  margin: 0 0 8px;
  font-size: 28px;
  line-height: 1.2;
}

p {
  margin: 0;
  color: #587083;
}

.actions,
.upload-panel {
  display: flex;
  align-items: center;
  gap: 12px;
}

.upload-panel {
  margin-top: 16px;
  padding: 18px;
}

.drop-zone {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 4px 14px;
  align-items: center;
  flex: 1;
  min-height: 92px;
  border: 1px dashed #9eb4c4;
  border-radius: 8px;
  padding: 18px;
  cursor: pointer;
  background: #f8fbfd;
}

.drop-zone.dragging {
  border-color: #176b87;
  background: #eef8fb;
}

.drop-icon {
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #176b87;
  color: #fff;
  font-size: 30px;
  line-height: 1;
}

.drop-zone span:last-child {
  color: #637b8f;
}

#fileInput {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.button {
  min-height: 44px;
  border: 0;
  border-radius: 8px;
  padding: 0 18px;
  cursor: pointer;
  font-weight: 700;
  white-space: nowrap;
}

.button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.primary {
  background: #176b87;
  color: #fff;
}

.secondary {
  background: #e9eef2;
  color: #21313f;
}

.dark {
  background: #202b36;
  color: #fff;
}

.status-line {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 16px;
  padding: 14px 18px;
  color: #43596b;
}

.table-wrap {
  margin-top: 16px;
  overflow-x: auto;
}

table {
  width: 100%;
  min-width: 980px;
  border-collapse: collapse;
}

th,
td {
  border-bottom: 1px solid #dfe7ed;
  padding: 12px;
  text-align: left;
  vertical-align: middle;
}

th {
  background: #e7f0f6;
  font-weight: 800;
}

td input,
td select {
  width: 100%;
  min-width: 120px;
  height: 38px;
  border: 1px solid #cad6df;
  border-radius: 6px;
  padding: 0 10px;
  background: #fff;
}

.file-cell {
  max-width: 180px;
  color: #425669;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.empty-row td {
  height: 120px;
  text-align: center;
  color: #718596;
}

.error {
  color: #b42318;
}

.ok {
  color: #176b48;
}

@media (max-width: 760px) {
  .shell {
    width: min(100vw - 20px, 1180px);
    margin: 10px auto;
  }

  .toolbar,
  .upload-panel,
  .status-line {
    align-items: stretch;
    flex-direction: column;
  }

  .actions {
    width: 100%;
  }

  .actions .button,
  .upload-panel .button {
    flex: 1;
  }
}
