:root {
  color-scheme: dark;
  --bg: #0f1115;
  --panel: #171a21;
  --panel-2: #1d222b;
  --line: #2b323d;
  --text: #f3f6f8;
  --muted: #9aa5b1;
  --green: #65d083;
  --green-2: #256f43;
  --danger: #ff6b6b;
  --blue: #7db7ff;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

button,
input,
select {
  font: inherit;
}

.shell {
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
  padding: 42px 0;
  display: grid;
  grid-template-columns: minmax(340px, 460px) minmax(0, 1fr);
  gap: 28px;
}

.composer {
  display: grid;
  align-content: start;
  gap: 22px;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2 {
  margin: 0;
  letter-spacing: 0;
}

h1 {
  max-width: 10ch;
  font-size: clamp(2.2rem, 7vw, 4.8rem);
  line-height: 0.94;
}

h2 {
  font-size: 1.2rem;
}

.panel,
.jobs {
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: 8px;
}

.panel {
  padding: 18px;
  display: grid;
  gap: 14px;
}

.dropzone {
  position: relative;
  display: grid;
  gap: 4px;
  padding: 18px;
  min-height: 96px;
  align-content: center;
  border: 1px dashed #4a5664;
  border-radius: 8px;
  background: #12161c;
  cursor: pointer;
}

.dropzone.subtle {
  min-height: 78px;
}

.dropzone input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.drop-title {
  font-size: 1rem;
  font-weight: 800;
}

.drop-subtitle,
label span,
.form-status,
.meta,
.logline {
  color: var(--muted);
}

label {
  display: grid;
  gap: 7px;
  min-width: 0;
}

label span {
  font-size: 0.76rem;
  font-weight: 700;
}

input:not([type="file"]),
select {
  width: 100%;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #10141a;
  color: var(--text);
  padding: 0 12px;
  outline: none;
}

input:focus,
select:focus {
  border-color: var(--green);
}

.grid {
  display: grid;
  gap: 12px;
}

.grid.two {
  grid-template-columns: 1fr 1fr;
}

.grid.three {
  grid-template-columns: 1fr 1fr 1fr;
}

.toggles {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  color: #d8dde3;
}

.toggles label {
  display: flex;
  align-items: center;
  gap: 8px;
}

.toggles input {
  width: 18px;
  height: 18px;
  accent-color: var(--green);
}

button {
  height: 44px;
  border: 0;
  border-radius: 7px;
  color: #07100a;
  background: var(--green);
  font-weight: 850;
  cursor: pointer;
}

button:disabled {
  opacity: 0.55;
  cursor: progress;
}

.ghost {
  height: 36px;
  padding: 0 14px;
  color: var(--text);
  background: var(--panel-2);
  border: 1px solid var(--line);
}

.form-status {
  min-height: 20px;
  margin: 0;
  font-size: 0.88rem;
}

.jobs {
  min-height: 620px;
  padding: 18px;
}

.jobs-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.job-list {
  display: grid;
  gap: 10px;
}

.empty {
  padding: 26px;
  color: var(--muted);
  border: 1px dashed var(--line);
  border-radius: 8px;
  text-align: center;
}

.job {
  display: grid;
  gap: 12px;
  padding: 14px;
  background: #11151b;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.job-top {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 14px;
}

.job-name {
  margin: 0 0 4px;
  font-weight: 850;
  overflow-wrap: anywhere;
}

.meta,
.logline {
  font-size: 0.82rem;
}

.status {
  flex: 0 0 auto;
  border-radius: 999px;
  padding: 5px 9px;
  font-size: 0.72rem;
  font-weight: 850;
  text-transform: uppercase;
}

.status.queued {
  color: #d9e8ff;
  background: #213044;
}

.status.running {
  color: #d9ffe4;
  background: var(--green-2);
}

.status.completed {
  color: #07100a;
  background: var(--green);
}

.status.failed {
  color: #fff1f1;
  background: #803535;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.download {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  height: 34px;
  padding: 0 12px;
  color: #07100a;
  background: var(--green);
  border-radius: 7px;
  font-weight: 850;
  text-decoration: none;
}

.download.secondary {
  color: var(--text);
  background: var(--panel-2);
  border: 1px solid var(--line);
}

.error {
  color: var(--danger);
}

@media (max-width: 860px) {
  .shell {
    grid-template-columns: 1fr;
    width: min(100% - 28px, 620px);
    padding: 24px 0;
  }

  h1 {
    max-width: 12ch;
  }
}

@media (max-width: 520px) {
  .grid.two,
  .grid.three {
    grid-template-columns: 1fr;
  }
}
