:root {
  color-scheme: light;
  --bg: #f3efe6;
  --panel: #fffdf8;
  --line: #d7c8b0;
  --text: #241b12;
  --muted: #6d5c49;
  --accent: #b8572b;
  --accent-soft: #efc9b7;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Segoe UI", "PingFang SC", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, #fff7dc 0, transparent 32%),
    radial-gradient(circle at bottom right, #f8d8cb 0, transparent 24%),
    var(--bg);
}

.layout {
  max-width: 1240px;
  margin: 0 auto;
  padding: 24px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 20px;
  box-shadow: 0 14px 36px rgba(84, 51, 28, 0.08);
}

.full-width {
  grid-column: 1 / -1;
}

h1,
h2 {
  margin: 0 0 12px;
  font-family: Georgia, "Noto Serif SC", serif;
}

.muted {
  margin: 0 0 18px;
  color: var(--muted);
}

.form {
  display: grid;
  gap: 14px;
}

.form label {
  display: grid;
  gap: 8px;
}

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

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

textarea {
  resize: vertical;
}

button {
  border: none;
  color: #fff7f1;
  background: linear-gradient(135deg, var(--accent), #d77435);
  cursor: pointer;
  font-weight: 700;
}

button:disabled {
  opacity: 0.6;
  cursor: wait;
}

.checkbox {
  display: flex;
  align-items: center;
  gap: 10px;
}

.checkbox input {
  width: auto;
}

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

.status div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fffaf2;
}

.progress {
  height: 12px;
  margin: 18px 0;
  overflow: hidden;
  border-radius: 999px;
  background: var(--accent-soft);
}

.progress div {
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--accent), #e7904d);
  transition: width 0.2s ease;
}

.log-box {
  min-height: 220px;
  margin: 0;
  padding: 14px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #201811;
  color: #f8e7d1;
  font-family: Consolas, monospace;
  line-height: 1.5;
}

.table-wrap {
  overflow: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  padding: 12px 10px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

thead th {
  background: #fff6eb;
}

@media (max-width: 900px) {
  .layout {
    grid-template-columns: 1fr;
  }

  .full-width {
    grid-column: auto;
  }

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