:root {
  --bg: #f6f4ef;
  --ink: #191917;
  --muted: #6f6a60;
  --line: #d8d2c6;
  --surface: #fffdf8;
  --accent: #b2462e;
  --ok: #24745a;
  --warn: #9b6425;
  --bad: #a43a35;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, "Segoe UI", Arial, "Microsoft YaHei", sans-serif;
}

.workspace {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 42px 0 56px;
}

.intro {
  border-bottom: 1px solid var(--line);
  padding: 0 0 28px;
  margin-bottom: 28px;
}

.intro.compact {
  margin-bottom: 22px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  max-width: 760px;
  font-size: clamp(34px, 6vw, 70px);
  line-height: 0.95;
  letter-spacing: 0;
}

h2 {
  margin: 0 0 18px;
  font-size: 18px;
}

.lead {
  max-width: 660px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.7;
}

.task-form {
  display: grid;
  gap: 18px;
}

.form-section,
.timeline,
.result-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px;
}

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

label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  padding: 12px;
}

textarea {
  min-height: 98px;
  resize: vertical;
}

.file-input {
  padding: 18px;
  border-style: dashed;
}

.hint,
.status-text,
.notice {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

button {
  appearance: none;
  border: 0;
  border-radius: 6px;
  background: var(--accent);
  color: #fff;
  font-weight: 800;
  padding: 13px 18px;
  cursor: pointer;
  transition: transform 160ms ease, filter 160ms ease;
}

button:hover {
  transform: translateY(-1px);
  filter: brightness(1.04);
}

.result-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 18px;
}

.timeline ol {
  padding-left: 18px;
  margin: 0;
}

.timeline li {
  margin: 0 0 12px;
  color: var(--muted);
}

.timeline li.active {
  color: var(--accent);
  font-weight: 800;
}

.timeline li.done {
  color: var(--ok);
}

.result-empty {
  color: var(--muted);
  min-height: 260px;
  display: grid;
  place-items: center;
  text-align: center;
}

.gate {
  display: inline-flex;
  width: fit-content;
  border-radius: 999px;
  padding: 7px 11px;
  color: #fff;
  background: var(--warn);
  font-size: 13px;
  font-weight: 800;
}

.gate.ok {
  background: var(--ok);
}

.gate.failed {
  background: var(--bad);
}

.result-image {
  width: 100%;
  max-height: 560px;
  object-fit: contain;
  background: #ece7dd;
  border-radius: 8px;
  margin: 18px 0;
}

.artifact-list,
.manual-list {
  display: grid;
  gap: 8px;
  padding: 0;
  list-style: none;
}

.artifact-list a {
  color: var(--accent);
  font-weight: 800;
}

@media (max-width: 760px) {
  .workspace {
    width: min(100% - 20px, 1120px);
    padding-top: 24px;
  }

  .grid,
  .result-layout {
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: 40px;
  }
}
