:root {
  --navy: #1b2a4a;
  --navy-light: #2c4370;
  --accent: #e8632c;
  --bg: #f3f5f9;
  --card: #ffffff;
  --text: #22293a;
  --muted: #6b7487;
  --ok: #1e8e4e;
  --err: #c0392b;
  --border: #dde2ec;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
}

header {
  background: var(--navy);
  color: #fff;
  padding: 18px 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.brand { display: flex; gap: 14px; align-items: center; }
.logo {
  font-size: 26px;
  color: var(--accent);
  background: rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  width: 46px; height: 46px;
  display: grid; place-items: center;
}
header h1 { margin: 0; font-size: 19px; letter-spacing: 0.3px; }
.tagline { margin: 2px 0 0; font-size: 12.5px; color: #b9c3d8; }

.badge {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--accent);
}
.badge.mock { background: #3d7dd8; }
.badge.prod { background: var(--err); }

main { max-width: 880px; margin: 26px auto 60px; padding: 0 20px; display: grid; gap: 20px; }

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 22px 24px;
  box-shadow: 0 1px 3px rgba(27, 42, 74, 0.06);
}
.card h2 { margin: 0 0 14px; font-size: 16px; color: var(--navy); }
.hidden { display: none !important; }
.hint { color: var(--muted); font-weight: 400; font-size: 12.5px; }

form label { display: block; font-size: 13px; font-weight: 600; margin: 12px 0 5px; }
form input, form textarea, form select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font: inherit;
  font-size: 14px;
}
.form-row { display: flex; gap: 14px; align-items: flex-end; margin-top: 14px; }
.form-row .inline { flex: 1; margin: 0; }
.form-row select { margin-top: 5px; }

button, .button {
  background: var(--accent);
  color: #fff;
  border: 0;
  border-radius: 8px;
  padding: 11px 22px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
}
button:hover, .button:hover { filter: brightness(1.06); }
button:disabled { opacity: 0.55; cursor: default; }

.stepper { list-style: none; margin: 6px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.stepper li {
  flex: 1 1 110px;
  text-align: center;
  font-size: 12px;
  padding: 9px 4px;
  border-radius: 8px;
  background: var(--bg);
  color: var(--muted);
  border: 1px solid var(--border);
  position: relative;
}
.stepper li.active {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
  animation: pulse 1.4s ease-in-out infinite;
}
.stepper li.done { background: #e7f4ec; border-color: #bfe3cd; color: var(--ok); }
.stepper li.failed { background: #fbeceb; border-color: #efc7c2; color: var(--err); }
@keyframes pulse { 50% { opacity: 0.75; } }

.detail { margin-top: 12px; font-size: 13px; color: var(--muted); min-height: 18px; }
.actions { margin-top: 14px; }
.error { margin-top: 14px; color: var(--err); font-size: 14px; }
.error button { background: var(--navy); margin-top: 6px; }

.list { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.list th { text-align: left; color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: 0.5px; }
.list th, .list td { padding: 9px 10px; border-bottom: 1px solid var(--border); }
.list .status { font-weight: 700; }
.list .status.complete { color: var(--ok); }
.list .status.failed { color: var(--err); }
.list a { color: var(--navy-light); font-weight: 600; }

/* Current Prototype Status */
#prototype-status h3 { margin: 22px 0 10px; font-size: 14px; color: var(--navy); }
.prose p { margin: 0; font-size: 13.5px; line-height: 1.6; }
.prose a { color: var(--navy-light); font-weight: 600; }
#prototype-status code {
  font-size: 12px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 1px 5px;
}
.status-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.status-list li {
  font-size: 13.5px;
  line-height: 1.55;
  padding-left: 26px;
  position: relative;
}
.status-list li::before {
  position: absolute;
  left: 0;
  top: 1px;
  font-size: 13px;
  font-weight: 700;
}
.status-list li.ok::before { content: "✓"; color: var(--ok); }
.status-list li.todo::before { content: "→"; color: var(--accent); }
.status-list a { color: var(--navy-light); font-weight: 600; }
.dev-notes { margin: 0; padding-left: 20px; font-size: 13.5px; line-height: 1.6; display: grid; gap: 6px; }
#prototype-status .list td { vertical-align: top; font-size: 13px; }
