body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #f6f7f8;
  color: #1f2933;
}
main {
  max-width: 760px;
  margin: 40px auto;
  padding: 28px;
  background: #fff;
  border: 1px solid #dde2e7;
  border-radius: 8px;
}
h1 {
  margin: 0 0 24px;
  font-size: 24px;
}
form {
  display: grid;
  gap: 16px;
}
label {
  display: grid;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
}
input, select, button {
  font: inherit;
}
input, select {
  padding: 10px 12px;
  border: 1px solid #c8d0d8;
  border-radius: 6px;
}
.grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.check {
  display: flex;
  align-items: center;
}
button {
  padding: 12px 16px;
  border: 0;
  border-radius: 6px;
  background: #111827;
  color: white;
  cursor: pointer;
}
table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
}
th, td {
  padding: 8px 10px;
  border-bottom: 1px solid #e5e9ee;
  text-align: left;
}
.error {
  color: #9f1239;
  background: #fff1f2;
  padding: 10px 12px;
  border-radius: 6px;
}
.hint {
  color: #52606d;
  margin: 0;
}
.status-panel {
  margin-top: 20px;
  padding: 16px;
  border: 1px solid #c8d0d8;
  border-radius: 8px;
  background: #f8fafc;
}
.runtime-panel {
  display: grid;
  gap: 8px;
  margin: 0 0 20px;
  padding: 12px;
  border: 1px solid #e5e9ee;
  border-radius: 6px;
  background: #f8fafc;
  font-size: 13px;
}
.runtime-panel div {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 10px;
}
.status-panel h2 {
  margin: 0 0 10px;
  font-size: 18px;
}
.stage-list {
  margin: 0 0 12px;
  padding-left: 22px;
  color: #384250;
}
button:disabled,
input:disabled,
select:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}
.panel-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}
.elapsed {
  min-width: 58px;
  padding: 6px 8px;
  border: 1px solid #d8dee6;
  border-radius: 6px;
  background: #fff;
  color: #384250;
  text-align: center;
  font-variant-numeric: tabular-nums;
}
.progress-shell {
  width: 100%;
  height: 12px;
  margin-top: 16px;
  overflow: hidden;
  border-radius: 999px;
  background: #e5e9ee;
}
.progress-bar {
  height: 100%;
  border-radius: inherit;
  background: #166534;
  transition: width 240ms ease;
}
.progress-bar.failed {
  background: #be123c;
}
.progress-meta {
  display: flex;
  justify-content: space-between;
  margin: 8px 0 14px;
  color: #384250;
  font-size: 14px;
}
.stage-list {
  display: grid;
  gap: 8px;
  margin: 0 0 12px;
  padding: 0;
  list-style: none;
  color: #384250;
}
.stage-list li {
  display: flex;
  align-items: center;
  gap: 8px;
}
.stage-list li::before {
  width: 18px;
  height: 18px;
  border: 1px solid #c8d0d8;
  border-radius: 50%;
  color: #fff;
  content: "";
  flex: 0 0 auto;
}
.stage-list li.waiting {
  color: #697586;
}
.stage-list li.running::before {
  border-color: #2563eb;
  background: #2563eb;
}
.stage-list li.done::before {
  border-color: #166534;
  background: #166534;
  content: "✓";
  font-size: 12px;
  line-height: 17px;
  text-align: center;
}
.stage-list li.failed::before {
  border-color: #be123c;
  background: #be123c;
  content: "!";
  font-size: 12px;
  font-weight: 700;
  line-height: 17px;
  text-align: center;
}
#resultPanel h3 {
  margin: 18px 0 0;
  font-size: 16px;
}
.download-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}
.download-button {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid #c8d0d8;
  border-radius: 6px;
  background: #fff;
  color: #111827;
  text-decoration: none;
}
.actions {
  margin-top: 14px;
}
@media (max-width: 720px) {
  main {
    margin: 0;
    border-width: 0;
    border-radius: 0;
  }
  .grid,
  .panel-header {
    grid-template-columns: 1fr;
    display: grid;
  }
}
