:root {
  color-scheme: light;
  --bg: #f6f3ed;
  --ink: #1f2933;
  --muted: #667085;
  --panel: #ffffff;
  --line: #ded8ce;
  --accent: #0f766e;
  --accent-dark: #115e59;
  --danger: #b42318;
  --success: #067647;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

.hero {
  min-height: 520px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  align-items: center;
  gap: 44px;
}

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

h1 {
  max-width: 760px;
  margin-bottom: 18px;
  font-size: clamp(40px, 7vw, 84px);
  line-height: 0.95;
  letter-spacing: 0;
}

h2 {
  margin: 24px 0 12px;
  font-size: 22px;
}

.eyebrow {
  margin-bottom: 14px;
  color: var(--accent-dark);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.lead {
  max-width: 640px;
  color: var(--muted);
  font-size: 20px;
  line-height: 1.45;
}

.panel {
  width: 100%;
  padding: 24px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 18px 54px rgba(31, 41, 51, 0.08);
}

.panel.wide {
  max-width: 760px;
  margin: 0 auto;
}

form,
.stack {
  display: grid;
  gap: 16px;
}

label {
  display: grid;
  gap: 8px;
  color: #344054;
  font-size: 14px;
  font-weight: 700;
}

input,
select,
textarea {
  width: 100%;
  min-height: 46px;
  padding: 11px 12px;
  color: var(--ink);
  background: #fff;
  border: 1px solid #c9c2b8;
  border-radius: 6px;
  font: inherit;
}

textarea {
  resize: vertical;
}

.check {
  display: flex;
  align-items: center;
  gap: 10px;
}

.check input {
  width: 18px;
  min-height: 18px;
}

button,
.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  color: #fff;
  background: var(--accent);
  border: 0;
  border-radius: 6px;
  font: inherit;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

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

.section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 24px 0 14px;
}

.section-title h2 {
  margin: 0;
}

a {
  color: var(--accent-dark);
}

.jobs {
  display: grid;
  gap: 10px;
}

.job {
  display: grid;
  grid-template-columns: 96px 120px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 14px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  text-decoration: none;
}

.job span:last-child {
  overflow: hidden;
  color: var(--muted);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.badge {
  display: inline-flex;
  width: 86px;
  min-height: 28px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #e7e5e4;
  color: #44403c;
  font-size: 12px;
  font-weight: 800;
}

.badge.running,
.badge.queued {
  background: #ccfbf1;
  color: #115e59;
}

.badge.done {
  background: #dcfae6;
  color: #067647;
}

.badge.failed {
  background: #fee4e2;
  color: #b42318;
}

.error,
.success {
  padding: 12px;
  border-radius: 6px;
  font-weight: 700;
}

.error {
  background: #fee4e2;
  color: var(--danger);
}

.success {
  background: #dcfae6;
  color: var(--success);
}

.muted,
.muted-link {
  color: var(--muted);
}

.muted-link {
  display: inline-flex;
  margin-top: 16px;
}

@media (max-width: 760px) {
  main {
    width: min(100% - 24px, 520px);
    padding: 24px 0;
  }

  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 24px;
  }

  h1 {
    font-size: 44px;
  }

  .lead {
    font-size: 17px;
  }

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