:root {
  color-scheme: light;
  --bg: #f3f5f1;
  --ink: #171a16;
  --muted: #667064;
  --line: #d6dccf;
  --panel: #ffffff;
  --soft: #eef2ea;
  --accent: #2b6b58;
  --accent-2: #345f8c;
  --accent-ink: #ffffff;
  --warn: #9a3412;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 18% 0%, rgba(43, 107, 88, .14), transparent 360px),
    linear-gradient(180deg, rgba(52, 95, 140, .08), rgba(243, 245, 241, 0) 320px),
    var(--bg);
  color: var(--ink);
}

.app-shell {
  width: min(1420px, calc(100vw - 32px));
  margin: 0 auto;
  padding: 22px 0 44px;
  display: grid;
  grid-template-columns: 304px minmax(0, 1fr);
  gap: 22px;
}

.side {
  position: sticky;
  top: 18px;
  align-self: start;
  display: grid;
  gap: 14px;
}

.brand {
  min-height: 96px;
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .9);
  border-radius: 8px;
  padding: 16px;
  box-shadow: 0 16px 40px rgba(29, 38, 31, .06);
}

.mark {
  display: grid;
  place-items: center;
  width: 52px;
  aspect-ratio: 1;
  border-radius: 6px;
  background: linear-gradient(135deg, #17201a, #2b6b58);
  color: #fff;
  font-size: 13px;
  font-weight: 900;
}

.brand strong,
.brand small {
  display: block;
}

.brand small {
  color: var(--muted);
  margin-top: 3px;
}

.nav {
  display: grid;
  gap: 7px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .82);
  border-radius: 8px;
  padding: 8px;
}

.nav-item {
  width: 100%;
  justify-content: flex-start;
  text-align: left;
  background: transparent;
  color: var(--ink);
  border: 1px solid transparent;
  min-height: 46px;
}

.nav-item.active {
  background: #e6eee8;
  border-color: #c8d7cc;
  color: #173f34;
}

.workspace {
  min-width: 0;
}

.topbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 520px);
  gap: 18px;
  align-items: end;
  min-height: 138px;
  padding: 10px 0 20px;
  border-bottom: 1px solid var(--line);
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--accent-2);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 0;
  font-size: clamp(44px, 7vw, 82px);
  line-height: .9;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 0;
  font-size: 20px;
  letter-spacing: 0;
}

.sub {
  max-width: 520px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
  margin-bottom: 0;
}

.status {
  border: 1px solid var(--line);
  background: #17201a;
  color: #e8eee9;
  padding: 16px;
  min-height: 106px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13px;
  line-height: 1.65;
  border-radius: 8px;
}

.view {
  display: none;
  padding-top: 18px;
}

.view.active {
  display: block;
}

.panel, .jobs {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 18px 48px rgba(29, 38, 31, .07);
}

.primary {
  max-width: 900px;
}

.panel-head, .jobs-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.step {
  color: var(--accent-2);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13px;
}

label {
  display: grid;
  gap: 7px;
  margin-bottom: 14px;
  color: #30352f;
  font-size: 13px;
  font-weight: 700;
}

input, select {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fbfcfa;
  color: var(--ink);
  padding: 9px 10px;
  font: inherit;
  transition: border-color .18s ease, box-shadow .18s ease;
}

input:focus, select:focus {
  outline: none;
  border-color: #8aa59a;
  box-shadow: 0 0 0 3px rgba(43, 107, 88, .12);
}

input[type="file"] {
  padding: 8px;
}

button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border: 0;
  border-radius: 6px;
  background: var(--accent);
  color: var(--accent-ink);
  padding: 0 16px;
  font-weight: 800;
  cursor: pointer;
  transition: transform .18s ease, opacity .18s ease;
}

button:active {
  transform: translateY(1px);
}

button:disabled {
  opacity: .55;
  cursor: wait;
}

.ghost {
  background: #e9ede5;
  color: var(--ink);
}

.small {
  min-height: 34px;
  padding-inline: 12px;
  font-size: 13px;
}

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

.note {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.flow-stack {
  display: grid;
  gap: 16px;
}

.compact-form[hidden],
.gated[hidden] {
  display: none;
}

.account-summary {
  display: grid;
  gap: 4px;
  margin-bottom: 16px;
  padding: 14px;
  border: 1px solid #dce3d7;
  background: var(--soft);
  border-radius: 8px;
}

.account-summary strong,
.account-summary span {
  display: block;
}

.account-summary span {
  color: var(--muted);
  font-size: 13px;
}

.inline-results {
  max-width: 900px;
  margin-top: 16px;
}

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

.results-head h2 {
  font-size: 17px;
}

.result-card,
.empty-result {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .84);
  border-radius: 8px;
  padding: 16px;
}

.result-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
}

.result-card h3 {
  margin: 10px 0 6px;
  font-size: 18px;
  letter-spacing: 0;
  text-transform: capitalize;
}

.result-card p,
.empty-result {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.jobs {
  margin-top: 0;
}

.job {
  display: grid;
  grid-template-columns: 116px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: start;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}

.pill {
  display: inline-flex;
  width: fit-content;
  border-radius: 999px;
  padding: 4px 9px;
  background: #e9ede5;
  color: #2d332b;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.pill.running {
  background: #dbeafe;
}

.pill.complete {
  background: #dcfce7;
}

.pill.failed {
  background: #ffedd5;
  color: var(--warn);
}

.job-title {
  margin-bottom: 6px;
  font-weight: 800;
}

.job-meta, pre {
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
}

pre {
  white-space: pre-wrap;
  max-height: 220px;
  overflow: auto;
  margin: 8px 0 0;
  background: #f5f6f2;
  border: 1px solid var(--line);
  padding: 10px;
}

a.download {
  color: var(--accent);
  font-weight: 800;
  text-decoration: none;
}

@media (max-width: 820px) {
  .app-shell, .topbar, .two, .job {
    grid-template-columns: 1fr;
  }

  .side {
    position: static;
  }

  .nav {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .nav-item {
    justify-content: center;
    padding-inline: 8px;
  }

  h1 {
    font-size: 46px;
  }

  .result-card {
    grid-template-columns: 1fr;
  }
}
