:root {
  --ink: #15130f;
  --muted: #675f55;
  --line: #d8d0c5;
  --paper: #f7f2ea;
  --panel: #fffaf2;
  --accent: #0f766e;
  --accent-strong: #0b514c;
  --warn: #b45309;
  --good: #13795b;
  --shadow: 0 24px 80px rgba(34, 28, 19, 0.14);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 20% 12%, rgba(15, 118, 110, 0.16), transparent 28rem),
    linear-gradient(135deg, #f9f1e4 0%, #e8efe9 45%, #f5efe6 100%);
  font-family: Avenir Next, Trebuchet MS, Verdana, sans-serif;
  min-height: 100vh;
}

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

.shell {
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
  padding: 32px 0;
}

.panel {
  background: rgba(255, 250, 242, 0.92);
  border: 1px solid rgba(91, 76, 55, 0.18);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.hero {
  min-height: 220px;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 32px;
  align-items: end;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(21, 19, 15, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(21, 19, 15, 0.05) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: linear-gradient(90deg, black, transparent 70%);
  pointer-events: none;
}

.hero > * {
  position: relative;
}

.kicker {
  margin: 0 0 12px;
  color: var(--accent-strong);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-family: Georgia, Times New Roman, serif;
  font-size: clamp(42px, 8vw, 82px);
  line-height: 0.92;
  max-width: 780px;
}

h2 {
  margin: 0;
  font-size: 18px;
}

.summary {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 18px;
  max-width: 680px;
}

.status-card {
  min-width: 236px;
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 16px;
  background: #f0f8f4;
  border: 1px solid rgba(15, 118, 110, 0.25);
  border-radius: 8px;
}

.pulse {
  width: 12px;
  height: 12px;
  background: var(--good);
  border-radius: 50%;
  box-shadow: 0 0 0 8px rgba(19, 121, 91, 0.12);
}

.status-label {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.workspace {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.65fr);
  gap: 18px;
  margin-top: 18px;
}

.form-panel,
.result-panel {
  padding: 22px;
}

.field {
  margin-bottom: 18px;
}

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

label {
  display: block;
  margin-bottom: 8px;
  color: var(--accent-strong);
  font-size: 13px;
  font-weight: 800;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffcf7;
  color: var(--ink);
  padding: 12px 13px;
  outline: none;
}

textarea {
  resize: vertical;
  min-height: 118px;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.14);
}

.actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}

button {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff7eb;
  color: var(--ink);
  padding: 12px 16px;
  cursor: pointer;
  font-weight: 800;
}

button:hover {
  transform: translateY(-1px);
}

button[type="submit"] {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
}

button:disabled {
  opacity: 0.62;
  cursor: progress;
}

.result-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

#clearLog {
  padding: 8px 10px;
}

pre {
  min-height: 270px;
  margin: 0;
  overflow: auto;
  white-space: pre-wrap;
  word-break: break-word;
  background: #15130f;
  color: #e8fff8;
  border-radius: 8px;
  padding: 16px;
  font-family: Menlo, Consolas, monospace;
  font-size: 13px;
  line-height: 1.55;
}

.checklist {
  margin-top: 22px;
  color: var(--muted);
}

.checklist h2 {
  color: var(--ink);
  margin-bottom: 10px;
}

ol {
  margin: 0;
  padding-left: 20px;
}

li + li {
  margin-top: 8px;
}

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

  .hero {
    display: grid;
    align-items: start;
    padding: 24px;
  }

  .status-card {
    min-width: 0;
  }

  .actions {
    flex-direction: column;
  }
}
