:root {
  --paper: #eef3f8;
  --ink: #262B40;
  --muted: #2C444C;
  --line: #A8C4EC;
  --card: #ffffff;
  --accent: #0474C4;
  --deep: #06457F;
  --night: #262B40;
  --accent-ink: #eef3f8;
  color-scheme: light;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  min-height: 100vh;
  background: linear-gradient(180deg, #d7e5f4 0%, var(--paper) 220px);
  color: var(--ink);
  font-family: "Iowan Old Style", Palatino, "Palatino Linotype", Georgia, serif;
  line-height: 1.5;
}
a { color: var(--accent); }
.wrap { width: min(960px, calc(100% - 32px)); max-width: 100%; margin: 0 auto; }
nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 0 8px;
}
.brand {
  color: var(--ink);
  font-weight: 700;
  letter-spacing: -0.03em;
  font-size: 22px;
  text-decoration: none;
}
.nav-links { display: flex; gap: 16px; align-items: center; }
.nav-links form { margin: 0; }
.nav-links button {
  appearance: none;
  background: transparent;
  border: 0;
  color: var(--accent);
  font: inherit;
  cursor: pointer;
  padding: 0;
}
h1 {
  font-size: clamp(40px, 6vw, 68px);
  letter-spacing: -0.04em;
  line-height: 0.95;
  margin: 18px 0 12px;
  color: var(--deep);
}
h2 { margin: 0 0 8px; font-size: 22px; color: var(--deep); }
.kicker {
  margin: 28px 0 0;
  color: var(--accent);
  font-family: "Avenir Next", "Segoe UI", sans-serif;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.lede { font-size: 20px; max-width: 38ch; margin: 0 0 8px; }
.muted { color: var(--muted); max-width: 58ch; }
.preview, .error {
  border-radius: 12px;
  padding: 10px 12px;
}
.preview { background: #A8C4EC; color: #2C444C; }
.error { background: #eef3f8; color: #262B40; border: 1px solid #06457F; font-weight: 700; }
.split, .cards { display: grid; gap: 14px; }
.split { grid-template-columns: 1fr 1fr; margin: 12px 0 36px; }
form, .card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px;
}
.cards { list-style: none; padding: 0; margin: 0 0 36px; }
.card.disabled { background: transparent; }
.card h2 { font-size: 26px; letter-spacing: -0.03em; }
label {
  display: block;
  margin: 0 0 12px;
  color: var(--muted);
  font-family: "Avenir Next", "Segoe UI", sans-serif;
  font-size: 13px;
}
input {
  display: block;
  width: 100%;
  margin-top: 6px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  font: inherit;
}
.button, button.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--deep);
  color: var(--accent-ink);
  text-decoration: none;
  border: 0;
  border-radius: 999px;
  padding: 10px 16px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.button.quiet { background: transparent; color: var(--ink); border: 1px solid var(--line); }
button:disabled {
  display: block;
  width: 100%;
  text-align: left;
  background: transparent;
  color: var(--muted);
  border: 1px dashed var(--line);
  border-radius: 12px;
  padding: 12px;
  font: inherit;
  cursor: not-allowed;
}
.facts { display: grid; grid-template-columns: 10rem 1fr; gap: 8px 12px; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; overflow-wrap: anywhere; }
.mono { font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; font-size: 14px; overflow-wrap: anywhere; }
.submitted {
  background: #A8C4EC;
  color: #06457F;
  border-radius: 12px;
  padding: 10px 12px;
  font-weight: 700;
}
.progress {
  height: 12px;
  margin: 12px 0 18px;
  background: #d7e5f4;
  border-radius: 999px;
  overflow: hidden;
}
.progress > span {
  display: block;
  height: 100%;
  width: 0;
  background: var(--accent);
  border-radius: inherit;
}
.progress.indeterminate > span {
  width: 40%;
  animation: slide 1.1s ease-in-out infinite;
}
.stages {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
}
.stages li {
  display: grid;
  grid-template-columns: 1.25rem minmax(0, 1fr);
  gap: 8px;
  padding: 6px 0;
  color: var(--muted);
}
.stages li.done,
.stages li.active { color: var(--ink); }
.stages li.active { font-weight: 700; }
.stages li.failed { color: var(--night); font-weight: 700; }
.mark {
  width: 0.7rem;
  height: 0.7rem;
  margin-top: 0.45rem;
  border-radius: 999px;
  border: 2px solid var(--line);
}
.done .mark { background: var(--accent); border-color: var(--accent); }
.active .mark {
  background: var(--deep);
  border-color: var(--deep);
  animation: pulse 1.2s ease-in-out infinite;
}
.failed .mark { background: var(--night); border-color: var(--night); }
.stage-detail {
  display: block;
  font-weight: 400;
  color: var(--night);
  overflow-wrap: anywhere;
}
.env-names { margin: 0 0 16px; padding-left: 18px; }
pre.logs {
  white-space: pre-wrap;
  overflow: auto;
  max-height: 70vh;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px;
}
.connect {
  margin: 8px 0 16px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px;
}
.connect form {
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 0;
  margin: 0 0 8px;
}
footer { color: var(--muted); font-size: 14px; padding: 12px 0 40px; }
@keyframes slide {
  0% { transform: translateX(-120%); }
  100% { transform: translateX(280%); }
}
@keyframes pulse {
  50% { opacity: 0.45; }
}
@media (max-width: 720px) {
  .split, .facts { grid-template-columns: 1fr; }
  h1 { font-size: 36px; }
}
@media (prefers-reduced-motion: reduce) {
  .progress.indeterminate > span,
  .stages li.active .mark { animation: none; }
}
