:root {
  --ink: #17201a;
  --muted: #66736b;
  --paper: #fffdf6;
  --line: #d9d2bd;
  --green: #0d5d3b;
  --green-dark: #083b28;
  --sand: #eadfbe;
  --brick: #c54e2c;
  --shadow: 0 24px 80px rgba(23, 32, 26, 0.16);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: "Aptos", "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 20% 10%, rgba(197, 78, 44, 0.18), transparent 28rem),
    radial-gradient(circle at 80% 0%, rgba(13, 93, 59, 0.22), transparent 24rem),
    linear-gradient(135deg, #f8f0d8 0%, #f4ead0 45%, #e5d2aa 100%);
}

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

.hero,
.job-card,
.status {
  border: 1px solid rgba(23, 32, 26, 0.12);
  border-radius: 28px;
  background: rgba(255, 253, 246, 0.86);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.hero {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 32px;
  padding: 42px;
  overflow: hidden;
  position: relative;
}

.hero::after {
  content: "";
  position: absolute;
  right: -80px;
  bottom: -120px;
  width: 280px;
  height: 280px;
  border: 32px solid rgba(13, 93, 59, 0.12);
  border-radius: 50%;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--brick);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 680px;
  margin-bottom: 18px;
  font-size: clamp(2.4rem, 6vw, 5.8rem);
  line-height: 0.92;
  letter-spacing: -0.06em;
}

.lead {
  max-width: 680px;
  color: var(--muted);
  font-size: 1.18rem;
  line-height: 1.6;
}

.lookup {
  align-self: end;
  padding: 22px;
  border-radius: 22px;
  background: var(--sand);
}

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

.lookup-row {
  display: flex;
  gap: 10px;
}

input,
textarea,
button {
  font: inherit;
}

input,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px 16px;
  background: #fffaf0;
  color: var(--ink);
}

button {
  border: 0;
  border-radius: 16px;
  padding: 14px 18px;
  background: var(--green);
  color: white;
  font-weight: 800;
  cursor: pointer;
}

button.secondary {
  background: var(--green-dark);
}

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

.status {
  margin-top: 22px;
  padding: 18px 22px;
}

.job-card {
  margin-top: 22px;
  padding: 32px;
}

.job-header,
.actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.badge {
  border-radius: 999px;
  padding: 10px 14px;
  background: #e2efe7;
  color: var(--green-dark);
  font-weight: 800;
}

.details {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 24px 0;
}

.details div,
.description,
.history {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px;
  background: rgba(255, 250, 240, 0.74);
}

dt {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
}

dd {
  margin: 6px 0 0;
}

.feedback {
  display: grid;
  gap: 12px;
  margin-top: 28px;
}

.history {
  margin-top: 22px;
}

pre {
  margin: 0;
  white-space: pre-wrap;
  color: var(--muted);
}

@media (max-width: 760px) {
  .shell {
    width: min(100% - 20px, 1120px);
    padding: 20px 0;
  }

  .hero,
  .job-card {
    grid-template-columns: 1fr;
    padding: 22px;
    border-radius: 22px;
  }

  .lookup-row,
  .job-header,
  .actions {
    align-items: stretch;
    flex-direction: column;
  }

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