:root {
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #17212b;
  background: #f3f6f8;
}

* { box-sizing: border-box; }

body { margin: 0; }

.topbar {
  min-height: 64px;
  padding: 0 6vw;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #102b3f;
  color: #fff;
}

.brand { color: #fff; font-weight: 700; text-decoration: none; }
.account, .account form { display: flex; align-items: center; gap: 1rem; }
.account { color: #d7e5ed; font-size: .9rem; }
.link-button { border: 0; background: none; color: #a9d8f0; cursor: pointer; font: inherit; }
.container { width: min(900px, 90vw); margin: 3rem auto; }
.heading { margin-bottom: 1.5rem; }
.heading h1, h1 { margin: .25rem 0 .5rem; }
.eyebrow { color: #397c9e; font-size: .76rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.panel { padding: 1.5rem; margin: 1rem 0; border: 1px solid #dbe3e8; border-radius: 12px; background: #fff; box-shadow: 0 5px 20px #16364b0a; }
.narrow { max-width: 560px; margin: 5vh auto; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.field { display: flex; flex-direction: column; gap: .5rem; font-weight: 650; }
.field input, .field select { width: 100%; padding: .75rem; border: 1px solid #c5d2da; border-radius: 7px; background: #fff; color: inherit; font: inherit; }
.field small, small, .muted { color: #667783; font-weight: 400; line-height: 1.5; }
.full { grid-column: 1 / -1; }
.button { display: inline-block; padding: .75rem 1.15rem; border: 0; border-radius: 7px; background: #12658d; color: white; font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; }
.button:hover { background: #0e5274; }
.button:disabled { background: #9aaab3; cursor: not-allowed; }
.button[hidden] { display: none; }
#cost-estimate[hidden] { display: none; }
.container:has(#job-form) { margin-top: 1.5rem; }
.job-heading { margin-bottom: .75rem; }
.job-heading h1 { font-size: 1.6rem; }
#job-form { padding: 1.1rem; gap: .85rem 1rem; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); }
#job-form .field { min-width: 0; gap: .35rem; font-size: .9rem; }
#job-form .field input, #job-form .field select { padding: .55rem .65rem; }
#job-form .field small { font-size: .78rem; line-height: 1.4; }
#job-form .notice { margin: 0; padding: .7rem .8rem; font-size: .88rem; }
#job-form .notice p { margin: .4rem 0; }
.json-example { font-size: .8rem; color: #51616b; }
.json-example summary { cursor: pointer; width: fit-content; }
.json-example pre { margin: .5rem 0 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.actions { display: flex; flex-wrap: wrap; gap: 1rem; }
.notice { padding: .9rem 1rem; margin: 1rem 0; border-radius: 8px; background: #edf5f8; line-height: 1.5; }
.notice.warning { background: #fff4d8; color: #684c05; }
.notice.error { background: #ffeded; color: #8e2525; }
.summary { display: flex; gap: 3rem; }
.summary div { display: flex; flex-direction: column; gap: .2rem; }
.summary strong { font-size: 1.45rem; }
.summary span, .muted { color: #667783; }
.status { display: inline-block; width: fit-content; padding: .25rem .55rem; border-radius: 999px; background: #e8edf0; font-size: .82rem; }
.status-succeeded { background: #e4f6e8; color: #216934; }
.status-partial, .status-running { background: #fff2d6; color: #76520c; }
.status-failed { background: #ffeded; color: #8e2525; }
.status-queued { background: #e8edf0; color: #51616b; }
.prompt-list { list-style: none; padding: 0; margin: 0; }
.prompt-list li { display: flex; justify-content: space-between; gap: 1rem; align-items: center; padding: .85rem 0; border-top: 1px solid #edf0f2; }
.prompt-list li div { display: flex; flex-direction: column; gap: .25rem; }
.error-text { color: #a12e2e; }
code { overflow-wrap: anywhere; }

@media (max-width: 620px) {
  .container { margin: 1.5rem auto; }
  .form-grid { grid-template-columns: 1fr; }
  #job-form { grid-template-columns: minmax(0, 1fr); }
  .summary { justify-content: space-between; gap: .75rem; }
  .account span { display: none; }
}
