* {
  box-sizing: border-box;
}

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

.page {
  padding: 20px;
}

.toolbar {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 18px;
}

h1 {
  margin: 0;
  font-size: 22px;
}

p {
  margin: 6px 0 0;
  color: #667085;
}

.actions,
.card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

button {
  height: 34px;
  border: 1px solid #d0d5dd;
  border-radius: 6px;
  padding: 0 12px;
  background: #fff;
  color: #344054;
  cursor: pointer;
}

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

.primary {
  border-color: #2563eb;
  background: #2563eb;
  color: #fff;
}

.danger {
  border-color: #dc2626;
  background: #dc2626;
  color: #fff;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
  gap: 14px;
}

.card {
  background: #fff;
  border: 1px solid #e4e7ec;
  border-radius: 8px;
  padding: 14px;
  box-shadow: 0 8px 24px rgba(16, 24, 40, 0.04);
}

.card.running {
  border-color: #2563eb;
}

.card.success {
  border-color: #16a34a;
}

.card.failed {
  border-color: #dc2626;
}

.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.check {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
}

.status {
  color: #667085;
  font-size: 12px;
}

label {
  display: block;
  margin: 10px 0 4px;
  color: #475467;
  font-size: 12px;
}

input {
  width: 100%;
  height: 34px;
  border: 1px solid #d0d5dd;
  border-radius: 6px;
  padding: 0 10px;
  outline: none;
  font-size: 13px;
}

input:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.two {
  display: grid;
  grid-template-columns: 1fr 120px;
  gap: 8px;
}

.assets {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.asset {
  height: 112px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  gap: 4px;
  padding: 8px;
}

.asset.filled {
  border-color: #16a34a;
  background: #f0fdf4;
}

.asset.dragging {
  border-color: #2563eb;
  background: #eff6ff;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.asset img {
  display: none;
  width: 100%;
  height: 54px;
  object-fit: contain;
  border-radius: 4px;
  background: #fff;
}

.asset b {
  line-height: 18px;
}

.asset small {
  width: 100%;
  overflow: hidden;
  color: #667085;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.card-actions {
  margin-top: 12px;
}

.message {
  min-height: 16px;
  margin-top: 10px;
  color: #b42318;
  font-size: 12px;
}

.log-panel {
  margin-top: 16px;
  background: #101828;
  color: #d0d5dd;
  border-radius: 8px;
  overflow: hidden;
}

.log-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  background: #1d2939;
  color: #fff;
  font-size: 13px;
}

#outputDir {
  color: #98a2b3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

pre {
  height: 280px;
  margin: 0;
  padding: 12px;
  overflow: auto;
  font-size: 12px;
  line-height: 1.55;
  white-space: pre-wrap;
}
