:root {
  --bg: #f3f7f6;
  --panel: #ffffff;
  --ink: #12222d;
  --muted: #4a6473;
  --accent: #00796b;
  --accent-dark: #005b50;
  --line: #d4e1e8;
  --danger: #a11a2a;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Segoe UI", "Trebuchet MS", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top right, #d8ebe8 0, transparent 35%),
    radial-gradient(circle at 0% 80%, #e6eef6 0, transparent 35%),
    var(--bg);
  min-height: 100vh;
}

.layout {
  width: min(1100px, calc(100% - 32px));
  margin: 26px auto;
  display: grid;
  gap: 18px;
}

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 20px;
  box-shadow: 0 8px 28px rgba(12, 43, 63, 0.08);
}

.hero h1 {
  margin: 4px 0 10px;
}

.eyebrow {
  margin: 0;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 12px;
}

label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
}

textarea {
  width: 100%;
  min-height: 220px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px;
  font-family: "Consolas", "Courier New", monospace;
  font-size: 13px;
  line-height: 1.45;
}

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

.controls {
  margin-top: 12px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

button {
  border: 0;
  border-radius: 10px;
  padding: 10px 14px;
  font-weight: 600;
  cursor: pointer;
}

button.primary {
  margin-left: auto;
  background: var(--accent);
  color: #fff;
}

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

button.secondary {
  background: #d8e9e6;
  color: #10483f;
}

button.ghost {
  background: #eef3f6;
  color: #2d4654;
}

button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.checkbox {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
  margin: 0;
}

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

.status.error {
  color: var(--danger);
}

@media (max-width: 760px) {
  .layout {
    width: calc(100% - 18px);
    margin: 10px auto 20px;
  }

  .panel {
    padding: 14px;
  }

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

  textarea {
    min-height: 250px;
  }

  button.primary {
    margin-left: 0;
  }
}
