:root {
  --bg: #fff6ea;
  --panel: #ffffff;
  --ink: #1c2a3a;
  --muted: #5b6b7c;
  --accent: #ff5c4d;
  --accent-deep: #ff8a1f;
  --accent2: #2f9bff;
  --warn: #e8a317;
  --fail: #e5484d;
  --ok: #1fad66;
  --line: #ffe0c2;
  --chip: #fff0d6;
  --input: #fffaf3;
  --font: "Nunito", "Avenir Next", "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --shadow: 0 10px 28px rgba(255, 92, 77, 0.08), 0 2px 8px rgba(28, 42, 58, 0.04);
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: var(--font);
  background:
    radial-gradient(900px 520px at 8% -5%, #ffd6c9 0%, transparent 55%),
    radial-gradient(800px 480px at 95% 0%, #c8e7ff 0%, transparent 50%),
    radial-gradient(700px 400px at 50% 100%, #ffe9a8 0%, transparent 45%),
    var(--bg);
  color: var(--ink);
  min-height: 100vh;
}

.hero {
  padding: 2.5rem 2rem 1.5rem;
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; gap: 0.75rem; align-items: baseline; margin-bottom: 0.75rem; }
.logo {
  font-weight: 800;
  letter-spacing: 0.03em;
  color: var(--accent);
  font-size: 1.15rem;
}
.tag { color: var(--muted); font-size: 0.85rem; font-weight: 600; }
h1 {
  margin: 0 0 0.5rem;
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  background: linear-gradient(120deg, #ff5c4d 0%, #ff8a1f 45%, #2f9bff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.lede { margin: 0; max-width: 52rem; color: var(--muted); line-height: 1.55; font-weight: 500; }

.banner {
  margin: 1rem 2rem 0;
  padding: 0.75rem 1rem;
  border-radius: 12px;
  background: #fff3c4;
  border: 1px solid #f0c94d;
  color: #6a5200;
}
.banner.err {
  background: #ffe4e6;
  border-color: #fb7185;
  color: #9f1239;
}
.banner[hidden] { display: none; }
.banner code { font-family: var(--mono); }

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.5rem;
}
.panel-head h2 { margin: 0; }

.btn-ghost, .btn-small {
  background: #fff;
  color: var(--accent2);
  border: 1.5px solid #bfdfff;
  box-shadow: none;
  font-weight: 800;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  cursor: pointer;
}
.btn-ghost:hover, .btn-small:hover {
  filter: none;
  transform: none;
  background: #e8f4ff;
}
.btn-small { font-size: 0.75rem; }

button:disabled {
  opacity: 0.65;
  cursor: wait;
  transform: none;
}

.result {
  margin-top: 1rem;
  padding: 0.9rem 1rem;
  border-radius: 14px;
  background: linear-gradient(135deg, #fff0d6, #e8f4ff);
  border: 1px solid var(--line);
}
.result h3 { margin: 0 0 0.5rem; font-size: 0.9rem; color: var(--accent2); }
.result pre {
  margin: 0;
  white-space: pre-wrap;
  word-break: break-word;
  font-family: var(--mono);
  font-size: 0.88rem;
  color: #9a3412;
}
.result[hidden] { display: none; }

.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.1rem;
  padding: 1.25rem 2rem 3rem;
}
.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1.25rem;
  box-shadow: var(--shadow);
}
.panel.wide { grid-column: 1 / -1; }
.panel h2 {
  margin: 0 0 1rem;
  font-size: 1.08rem;
  font-weight: 800;
  color: var(--accent2);
}
.panel h3 { margin: 1.25rem 0 0.5rem; font-size: 0.9rem; color: var(--muted); font-weight: 700; }

label {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 0.75rem;
  font-weight: 700;
}
input, select, textarea, button {
  font: inherit;
  border-radius: 12px;
  border: 1.5px solid var(--line);
  background: var(--input);
  color: var(--ink);
  padding: 0.6rem 0.75rem;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: #ff9a7a;
  box-shadow: 0 0 0 3px rgba(255, 92, 77, 0.15);
}
button {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-deep) 100%);
  border: none;
  color: #fff;
  font-weight: 800;
  cursor: pointer;
  margin-top: 0.25rem;
  box-shadow: 0 8px 18px rgba(255, 92, 77, 0.28);
  transition: transform 0.12s ease, filter 0.12s ease;
}
button:hover {
  filter: brightness(1.05);
  transform: translateY(-1px);
}
.row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.5rem; }

.list { list-style: none; padding: 0; margin: 0; }
.list li { padding: 0.4rem 0; border-bottom: 1px solid var(--line); font-size: 0.9rem; }
.muted { color: var(--muted); }
code { font-family: var(--mono); font-size: 0.85em; color: #c2410c; }

table { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
th, td { text-align: left; padding: 0.6rem 0.4rem; border-bottom: 1px solid var(--line); }
th { color: var(--muted); font-weight: 700; }

.pill {
  display: inline-block;
  padding: 0.18rem 0.6rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 800;
  background: var(--chip);
  color: #9a3412;
}
.pill.succeeded { background: #d1fae5; color: #047857; }
.pill.failed { background: #fee2e2; color: #b91c1c; }
.pill.running, .pill.training, .pill.logging, .pill.registering {
  background: #dbeafe; color: #1d4ed8;
}
.pill.queued, .pill.pending { background: #fef3c7; color: #a16207; }

.chips { display: flex; flex-wrap: wrap; gap: 0.45rem; }
.chip {
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #fff0d6, #e8f4ff);
  border: 1px solid var(--line);
  font-size: 0.8rem;
  font-weight: 700;
  color: #334155;
}

footer {
  padding: 1rem 2rem 2rem;
  color: var(--muted);
  font-size: 0.8rem;
  border-top: 1px solid var(--line);
  font-weight: 600;
}

@media (max-width: 900px) {
  .grid { grid-template-columns: 1fr; padding: 1rem; }
  .row { grid-template-columns: 1fr; }
}
