:root {
  --bg: #f2efe9;
  --surface: #fff9ef;
  --ink: #1f1d1b;
  --accent: #e4632f;
  --line: #d5c6af;
  --danger: #bb2f2f;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Avenir Next", "Segoe UI", sans-serif;
  background: radial-gradient(circle at 80% 0%, #ffe3c1, var(--bg));
  color: var(--ink);
}

.container {
  max-width: 980px;
  margin: 2rem auto;
  padding: 1rem;
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1rem;
  box-shadow: 0 10px 40px rgba(30, 20, 10, 0.08);
}

.hidden {
  display: none;
}

label {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.9rem;
}

input,
select,
textarea,
button {
  width: 100%;
  margin-top: 0.4rem;
  padding: 0.68rem;
  border-radius: 10px;
  border: 1px solid var(--line);
  font-size: 0.95rem;
  background: #fff;
}

textarea {
  min-height: 90px;
  resize: vertical;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
}

textarea.large {
  min-height: 180px;
}

button {
  background: var(--accent);
  color: #fff;
  border: none;
  cursor: pointer;
  margin-top: 0.8rem;
}

button.ghost {
  width: auto;
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
  padding: 0.5rem 0.9rem;
}

.section-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.grid {
  display: grid;
  gap: 0.6rem;
}

.grid.two {
  grid-template-columns: 1fr 1fr;
}

.checks {
  display: grid;
  gap: 0.5rem;
  align-content: start;
}

.checks label {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0;
}

.checks input[type="checkbox"] {
  width: auto;
  margin: 0;
}

.help {
  margin: 0;
  color: #5b4e3d;
}

.help.danger {
  color: var(--danger);
}

pre {
  white-space: pre-wrap;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.8rem;
  max-height: 320px;
  overflow: auto;
}

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

  .section-header {
    flex-direction: column;
  }
}
