:root {
  --bg-1: #f8f5eb;
  --bg-2: #dde8d8;
  --ink: #1e2b22;
  --accent: #0f766e;
  --accent-2: #14532d;
  --panel: #ffffffd9;
  --warn: #7f1d1d;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Segoe UI", "Trebuchet MS", sans-serif;
  color: var(--ink);
  background: radial-gradient(circle at 10% 20%, var(--bg-2), transparent 45%),
    radial-gradient(circle at 90% 10%, #f9c6b0, transparent 40%),
    linear-gradient(135deg, var(--bg-1), #f0efe9);
}

.layout {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.panel {
  width: min(920px, 100%);
  background: var(--panel);
  border: 1px solid #d7dfd4;
  border-radius: 20px;
  padding: 28px;
  box-shadow: 0 18px 50px #1e2b221e;
  animation: rise 520ms ease;
}

h1 {
  margin: 0;
  font-size: clamp(1.35rem, 2vw, 2rem);
}

h2 {
  margin-top: 22px;
  margin-bottom: 6px;
  font-size: 1.1rem;
}

.subtitle {
  margin-top: 8px;
  color: #3f5c4b;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  margin-top: 18px;
}

label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-weight: 600;
  font-size: 0.92rem;
}

input {
  border: 1px solid #b8c8be;
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 0.95rem;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

button {
  border: 0;
  border-radius: 999px;
  padding: 10px 16px;
  font-weight: 700;
  cursor: pointer;
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  color: #fff;
}

button.secondary {
  background: #fff;
  color: var(--ink);
  border: 1px solid #b9c7bd;
}

.button-link {
  border: 0;
  border-radius: 999px;
  padding: 10px 16px;
  font-weight: 700;
  cursor: pointer;
  background: #fff;
  color: var(--ink);
  border: 1px solid #b9c7bd;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

.meta {
  margin-top: 14px;
  font-size: 0.9rem;
  color: #355646;
}

pre {
  margin-top: 12px;
  background: #11251abf;
  color: #e8f4e8;
  border-radius: 14px;
  padding: 14px;
  overflow-x: auto;
  min-height: 180px;
}

.error {
  color: #ffd6d6;
}

@keyframes rise {
  from {
    transform: translateY(8px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}
