:root {
  color-scheme: light;
  --ink: #202624;
  --muted: #5b6964;
  --paper: #f5f7f2;
  --line: #d9dfd8;
  --rail: #edeee8;
  --mint: #d5f2df;
  --green: #07553d;
  --amber: #f7e9cd;
  font:
    16px/1.5 system-ui,
    sans-serif;
}
* {
  box-sizing: border-box;
}
[hidden] {
  display: none !important;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  min-height: 100vh;
}
button,
textarea {
  font: inherit;
}
a {
  color: var(--green);
  text-underline-offset: 0.22em;
}
button {
  cursor: pointer;
}
button:focus-visible,
a:focus-visible,
textarea:focus-visible,
pre:focus-visible {
  outline: 3px solid #087d63;
  outline-offset: 3px;
}
.top {
  min-height: 76px;
  padding: 14px max(22px, calc((100vw - 1300px) / 2));
  display: flex;
  align-items: center;
  gap: 24px;
  background: #182622;
  color: #eef7ef;
  border-bottom: 4px solid #7bc5a0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: inherit;
  text-decoration: none;
  font-size: 1.32rem;
  font-weight: 765;
  white-space: nowrap;
}
.mark {
  display: flex;
  gap: 3px;
  align-items: flex-end;
  transform: skew(-13deg);
}
.mark i {
  width: 5px;
  height: 13px;
  background: #8de1ae;
}
.mark i:nth-child(2) {
  height: 18px;
}
.mark i:nth-child(3) {
  height: 23px;
}
.project {
  font-size: 0.88rem;
  color: #bad1c5;
  overflow-wrap: anywhere;
}
.identity {
  margin-left: auto;
  display: flex;
  gap: 14px;
  align-items: center;
  font-size: 0.9rem;
}
.button {
  display: inline-block;
  background: #07553d;
  color: #fff;
  border: 1px solid #07553d;
  border-radius: 7px;
  padding: 8px 16px;
  font-weight: 650;
  text-decoration: none;
  white-space: nowrap;
}
.button:hover {
  background: #064530;
}
.top .button {
  background: #a6ecc0;
  color: #122b20;
  border-color: #a6ecc0;
}
.quiet {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--ink);
  border-radius: 6px;
  padding: 5px 11px;
  font-size: 0.86rem;
  white-space: nowrap;
}
.quiet:hover {
  background: #dfe9de;
}
.top .quiet {
  border-color: #78988b;
  color: #eff8f1;
}
.top .quiet:hover {
  background: #25453a;
}
.notice {
  margin: 16px auto 0;
  padding: 12px 16px;
  max-width: 1300px;
  border: 1px solid #a7c6b5;
  border-radius: 8px;
  background: #e5f3e8;
}
.layout {
  max-width: 1300px;
  margin: 24px auto;
  display: grid;
  grid-template-columns: minmax(230px, 305px) minmax(0, 1fr);
  gap: 23px;
  padding: 0 18px;
  min-height: 72vh;
}
.rail,
.workspace {
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}
.rail {
  background: var(--rail);
  padding: 16px;
}
.rail-top,
.heading,
.card-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.rail h1,
h2,
h3,
p {
  margin: 0;
}
.rail h1 {
  font-size: 1.22rem;
}
.tabs {
  margin: 16px 0;
  display: flex;
  gap: 5px;
  padding: 4px;
  background: #e1e6df;
  border-radius: 8px;
}
.tabs button {
  flex: 1;
  background: none;
  border: 0;
  border-radius: 6px;
  padding: 6px 4px;
  color: #40564c;
  font-size: 0.82rem;
  white-space: nowrap;
}
.tabs button[aria-pressed="true"] {
  background: #fafcf7;
  color: #183b2d;
  font-weight: 700;
  box-shadow: 0 1px 4px #23402c22;
}
.runs {
  display: grid;
  gap: 7px;
}
.run {
  width: 100%;
  text-align: left;
  background: #f7f9f4;
  border: 1px solid #d7ded6;
  border-radius: 8px;
  padding: 10px;
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: center;
  color: var(--ink);
}
.run[aria-current="true"] {
  background: var(--mint);
  border-color: #73ad90;
}
.run:hover {
  border-color: #669c83;
}
.run-label {
  font-weight: 720;
}
.state {
  background: #e3eae3;
  color: #405348;
  border-radius: 999px;
  padding: 3px 9px;
  font-size: 0.72rem;
  font-weight: 750;
  white-space: nowrap;
}
.state[data-state="WAITING_HUMAN"] {
  background: var(--amber);
  color: #72501a;
}
.state[data-state="RUNNING"] {
  background: var(--mint);
  color: var(--green);
}
.muted,
.small,
.empty p {
  color: var(--muted);
  font-size: 0.87rem;
}
.load {
  margin-top: 10px;
}
.workspace {
  background: #fdfefa;
  padding: clamp(18px, 3vw, 32px);
}
.empty {
  display: grid;
  align-content: center;
  justify-content: center;
  text-align: center;
  min-height: 100%;
  padding: 30px 0;
}
.heading {
  margin-bottom: 2px;
}
.heading h2 {
  font-size: clamp(1.65rem, 3.8vw, 2.5rem);
  line-height: 1.16;
  letter-spacing: -0.045em;
}
.small {
  overflow-wrap: anywhere;
}
.card {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 18px;
  margin-top: 24px;
  background: #f6f8f3;
}
.card h3 {
  font-size: 1rem;
}
.question-text {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  margin: 9px 0;
}
.accepted {
  padding: 10px 12px;
  border-left: 3px solid #6ca987;
  background: #eaf4e9;
}
form {
  display: grid;
  gap: 8px;
  margin-top: 16px;
}
form label {
  font-weight: 650;
  font-size: 0.88rem;
}
form .button {
  justify-self: start;
}
textarea {
  width: 100%;
  background: white;
  border: 1px solid #aebdb4;
  border-radius: 7px;
  padding: 9px;
  resize: vertical;
  color: #202624;
}
code {
  display: block;
  font-size: 0.8rem;
  overflow-wrap: anywhere;
  margin-top: 6px;
  color: #476456;
}
pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  background: #1d2924;
  color: #eff8f0;
  padding: 14px;
  border-radius: 8px;
  max-height: 60vh;
  overflow: auto;
  font:
    0.82rem/1.55 ui-monospace,
    monospace;
}
@media (max-width: 720px) {
  .layout {
    grid-template-columns: 1fr;
    margin-top: 14px;
    gap: 12px;
  }
  .top {
    min-height: 58px;
    gap: 10px;
    padding: 10px 16px;
  }
  .project,
  .identity span {
    display: none;
  }
  .rail {
    padding: 10px 13px;
  }
  .notice {
    margin-inline: 18px;
  }
  .rail .runs {
    max-height: 245px;
    overflow: auto;
  }
  .empty {
    min-height: 150px;
  }
}

.start-form {
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 7px;
}
.start-form label {
  grid-column: 1/-1;
}
.start-form input {
  min-width: 0;
  border: 1px solid #aebdb4;
  border-radius: 6px;
  padding: 6px 8px;
  font: inherit;
  font-size: 0.88rem;
}
.start-form button {
  padding: 6px 9px;
  font-size: 0.82rem;
}
