:root {
  font-family:
    Inter,
    ui-sans-serif,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: #252c34;
  background: #f7f8fa;
  font-synthesis: none;
  --muted: #727b88;
  --border: #e4e7eb;
  --green: #20835e;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
main {
  max-width: 1320px;
  margin: auto;
  padding: 0 48px;
}
a {
  color: inherit;
  text-decoration: none;
}
.mono,
code,
pre {
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
}
.topbar {
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  font-weight: 650;
}
.brand-icon {
  display: grid;
  place-items: center;
  background: #ed5245;
  color: white;
  width: 32px;
  height: 32px;
  border-radius: 9px;
  font-size: 20px;
}
.divider {
  margin: 0 9px;
  color: #c6ccd3;
  font-weight: 400;
}
.muted {
  color: var(--muted);
  font-weight: 400;
}
.environment {
  border: 1px solid #dce1e7;
  background: white;
  border-radius: 20px;
  padding: 8px 12px;
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #399876;
}
.intro {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
  padding: 48px 0 38px;
}
.eyebrow {
  font-size: 10px;
  font-weight: 650;
  letter-spacing: 1.7px;
  color: var(--muted);
  margin: 0 0 14px;
}
h1 {
  font-size: 38px;
  letter-spacing: -1.4px;
  font-weight: 650;
  margin: 0 0 14px;
}
.description {
  color: var(--muted);
  font-size: 14px;
  margin: 0;
  line-height: 1.7;
}
.gem-info {
  display: grid;
  gap: 8px;
  font-size: 12px;
  line-height: 1.4;
  border-left: 1px solid var(--border);
  padding-left: 24px;
}
.gem-info strong {
  font-weight: 550;
}
.gem-info .mono {
  color: var(--muted);
  font-size: 11px;
}
.workspace {
  display: grid;
  grid-template-columns: 340px minmax(0, 1fr);
  gap: 32px;
  align-items: start;
}
.panel {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 2px 4px #17263503;
}
.bulk-composer {
  margin-top: 20px;
}
.composer {
  padding: 24px;
}
.section-title {
  display: flex;
  align-items: center;
  gap: 10px;
}
.step {
  font-family: ui-monospace, monospace;
  font-size: 11px;
  color: #8f98a3;
  background: #f2f4f6;
  padding: 5px 6px;
  border-radius: 4px;
}
h2 {
  font-size: 15px;
  margin: 0;
  font-weight: 600;
}
form {
  margin-top: 26px;
}
label {
  display: block;
  font-size: 12px;
  font-weight: 550;
  margin-bottom: 9px;
}
textarea,
select,
input {
  width: 100%;
  border: 1px solid #dce1e6;
  border-radius: 6px;
  background: white;
  padding: 11px;
  color: #303842;
  font: 13px inherit;
  line-height: 1.5;
}
textarea {
  font-family: inherit;
  resize: vertical;
  min-height: 100px;
}
select {
  height: 42px;
  font-size: 13px;
}
input {
  font-family: inherit;
  font-size: 13px;
  height: 42px;
}
textarea:focus,
select:focus,
input:focus {
  outline: 2px solid #ed524545;
  outline-offset: 1px;
  border-color: #ed5245;
}
.field-hint {
  font-size: 11px;
  color: #8a929d;
  margin: 7px 0 25px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin: 23px 0;
}
button {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 18px;
  background: #eb5446;
  color: #fff;
  border: 0;
  border-radius: 7px;
  font-size: 13px;
  font-weight: 600;
  padding: 13px;
  cursor: pointer;
}
button:hover {
  background: #d7493c;
}
button:disabled {
  opacity: 0.55;
  cursor: wait;
}
button span {
  font-size: 18px;
}
.notice {
  font-size: 12px;
  color: var(--green);
  line-height: 1.5;
  margin: 12px 0 0;
}
.notice:empty {
  display: none;
}
.connection {
  padding: 26px 12px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}
.connection dl {
  margin: 0;
  display: grid;
  gap: 6px;
}
.connection dt {
  color: #939ba5;
  font-size: 11px;
  margin-top: 4px;
}
.connection dd {
  margin: 0;
  color: #58616c;
  overflow-wrap: anywhere;
}
.connection p:last-child {
  border-top: 1px solid var(--border);
  padding-top: 16px;
  margin-top: 20px;
  font-size: 11px;
}
.activity-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 3px 0 21px;
  gap: 12px;
}
.live {
  font-size: 10px;
  color: #7c8690;
  white-space: nowrap;
}
.live .dot {
  margin-right: 5px;
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 22px;
}
.stat {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 9px;
  padding: 17px 20px;
  display: grid;
  gap: 12px;
}
.stat span {
  font-size: 11px;
  color: var(--muted);
}
.stat strong {
  font-size: 27px;
  font-weight: 550;
  line-height: 1;
}
.stat .dispatching {
  color: #b48429;
}
.stat .running {
  color: #427fb5;
}
.stat .completed {
  color: #20835e;
}
.stat .failed {
  color: #b65956;
}
.history {
  overflow: hidden;
}
.history-heading {
  padding: 20px 23px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.history-heading h3 {
  font-size: 12px;
  margin: 0;
  font-weight: 600;
}
.history-heading .muted {
  font-size: 10px;
}
.empty {
  text-align: center;
  padding: 61px 25px 67px;
}
.empty-icon {
  font-size: 26px;
  color: #a2abb6;
  background: #f4f6f8;
  border: 1px dashed #d8dfe5;
  width: 57px;
  height: 57px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  margin: 0 auto 22px;
}
.empty h3 {
  font-size: 14px;
  font-weight: 550;
}
.empty p {
  font-size: 12px;
  color: #8a939e;
  line-height: 1.6;
}
.flow {
  color: #b5bdc6;
  font-size: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 30px;
}
.flow span {
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: 6px 10px;
  color: #9099a4;
}
.run {
  padding: 22px 24px;
  border-bottom: 1px solid var(--border);
}
.run:last-child {
  border-bottom: 0;
}
.run-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.run-heading strong {
  font-size: 12px;
  font-weight: 600;
}
.run-number {
  color: #959da6;
  font-size: 11px;
  margin-right: 10px;
}
.badge {
  font-size: 10px;
  padding: 5px 8px;
  border-radius: 5px;
  white-space: nowrap;
  background: #f2f4f6;
  color: #747c87;
}
.badge.queued,
.badge.dispatching {
  background: #fff6de;
  color: #9a761e;
}
.badge.running {
  background: #edf4fc;
  color: #3976b1;
}
.badge.completed {
  background: #eaf6ef;
  color: #248357;
}
.badge.failed,
.badge.dispatch_failed {
  background: #fcefee;
  color: #b15047;
}
.message {
  font-size: 13px;
  line-height: 1.6;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  margin: 17px 0;
  color: #606a76;
}
.result-output,
.error-output {
  border-radius: 6px;
  padding: 12px 14px;
  margin-bottom: 15px;
  background: #f2f8f4;
  border: 1px solid #e3eee6;
}
.error-output {
  background: #fdf3f2;
  border-color: #f5e3e0;
}
.result-output span,
.error-output span {
  font-size: 9px;
  letter-spacing: 1.2px;
  font-weight: 600;
  color: #5b8a6b;
}
.error-output span {
  color: #b5675c;
}
pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  margin: 7px 0 0;
  font-size: 12px;
  line-height: 1.6;
}
.run-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  font-size: 10px;
  color: #8e97a2;
}
.run-hint {
  font-size: 11px;
  line-height: 1.6;
  color: #87919e;
}
.job-ids {
  font-size: 9px;
  line-height: 1.8;
  color: #a0a7b0;
  margin-top: 12px;
  overflow-wrap: anywhere;
}
.warning {
  color: #b15047 !important;
}
footer {
  border-top: 1px solid var(--border);
  margin-top: 35px;
  padding: 23px 0 32px;
  color: #979faa;
  font-size: 10px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}
@media (max-width: 1000px) {
  main {
    padding: 0 24px;
  }
  .workspace {
    grid-template-columns: 300px minmax(0, 1fr);
    gap: 20px;
  }
  .stats {
    gap: 8px;
  }
  .stat {
    padding: 14px;
  }
  .activity-heading {
    align-items: flex-start;
    flex-direction: column;
  }
  .gem-info {
    display: none;
  }
}
@media (max-width: 720px) {
  main {
    padding: 0 18px;
  }
  .topbar {
    height: 78px;
  }
  .brand .muted,
  .divider {
    display: none;
  }
  .intro {
    padding: 32px 0;
  }
  h1 {
    font-size: 31px;
  }
  .workspace {
    grid-template-columns: 1fr;
  }
  .connection {
    padding-bottom: 8px;
  }
  .activity-heading {
    flex-direction: row;
    align-items: center;
  }
  .stat {
    padding: 15px 10px;
  }
  .stat span {
    font-size: 10px;
  }
  .history-heading {
    padding: 18px;
  }
  .run {
    padding: 20px 18px;
  }
  .run-heading strong {
    font-size: 11px;
  }
  .run-number {
    margin-right: 6px;
  }
}
