:root {
  --bg: #f3f6f2;
  --panel: #ffffff;
  --ink: #1f2a21;
  --muted: #5a685d;
  --line: #d7dfd9;
  --accent: #1f7a4d;
  --accent-dark: #16633d;
  --warn: #b76e00;
  --error: #b42318;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: linear-gradient(135deg, #edf4ec 0%, #f7f9f8 45%, #e9f0ef 100%);
  color: var(--ink);
  font-family: "Avenir Next", "Segoe UI", sans-serif;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px;
}

h1 {
  margin: 0;
}

.subtitle {
  margin-top: 8px;
  color: var(--muted);
}

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px;
  margin-top: 16px;
}

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

label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 14px;
}

input,
select,
textarea,
button {
  font: inherit;
}

input,
select,
textarea {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  background: #fff;
}

textarea {
  width: 100%;
  resize: vertical;
}

.actions {
  display: flex;
  gap: 10px;
  margin-top: 12px;
}

button {
  border: none;
  border-radius: 8px;
  padding: 10px 14px;
  background: var(--accent);
  color: #fff;
  cursor: pointer;
}

button:hover {
  background: var(--accent-dark);
}

button:disabled {
  background: #9bb9a9;
  cursor: not-allowed;
}

.hidden {
  display: none;
}

.checkbox-label {
  display: flex;
  align-items: center;
  flex-direction: row;
  gap: 10px;
  margin-bottom: 10px;
}

.checkbox-label.top-gap {
  margin-top: 24px;
}

.table-wrap {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
}

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

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

th {
  background: #f6faf7;
}

pre {
  background: #f8faf9;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  white-space: pre-wrap;
}

.badge {
  display: inline-block;
  border-radius: 999px;
  padding: 2px 8px;
  font-size: 12px;
  font-weight: 600;
}

.badge.create {
  background: #e4f8ec;
  color: #0f6f3d;
}

.badge.update {
  background: #e8f0ff;
  color: #1d4ed8;
}

.badge.skip {
  background: #f1f3f5;
  color: #4b5563;
}

.badge.error {
  background: #fde7e7;
  color: var(--error);
}

.status-error {
  color: var(--error);
  font-weight: 600;
}

.status-warn {
  color: var(--warn);
  font-weight: 600;
}

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