:root {
  color-scheme: light;
  --bg: #f5f1e8;
  --surface: rgba(255, 251, 244, 0.88);
  --ink: #1f1b16;
  --muted: #6f6559;
  --line: rgba(31, 27, 22, 0.12);
  --accent: #1d4a6d;
  --accent-2: #77552d;
  --mono: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;
  --sans: "Avenir Next", "Segoe UI", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--bg);
}

button,
input,
textarea {
  font: inherit;
}

.page {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 40px;
}

.hero {
  margin-bottom: 18px;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin: 0;
}

h1 {
  font-size: clamp(2.3rem, 4.4vw, 4.2rem);
  letter-spacing: -0.04em;
}

.lede {
  margin-top: 12px;
  max-width: 62ch;
  color: var(--muted);
  line-height: 1.6;
}

.panel {
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--surface);
  padding: 18px;
}

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

.field {
  display: grid;
  gap: 8px;
}

.field label {
  color: var(--muted);
  font-size: 0.92rem;
}

.field input,
.field textarea {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
}

.field textarea {
  resize: vertical;
  min-height: 150px;
  font-family: var(--mono);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.actions button {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #171411;
  color: #fbf8f2;
  padding: 0.85rem 1.1rem;
  cursor: pointer;
}

.status {
  color: var(--muted);
}

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

.wide {
  grid-column: 1 / -1;
}

.panel-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 12px;
}

.panel-head span {
  color: var(--muted);
  font-size: 0.9rem;
}

.log {
  margin: 0;
  min-height: 220px;
  max-height: 380px;
  overflow: auto;
  padding: 14px;
  border-radius: 16px;
  background: #171411;
  color: #f6efe4;
  font-family: var(--mono);
  font-size: 0.9rem;
  line-height: 1.55;
  white-space: pre-wrap;
  word-break: break-word;
}

@media (max-width: 860px) {
  .page {
    width: min(100%, calc(100% - 20px));
  }

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

  .wide {
    grid-column: auto;
  }
}
