:root {
  color-scheme: dark;
  --bg: #0f1115;
  --panel: #171a21;
  --panel2: #1d222b;
  --text: #f3f5f7;
  --muted: #9da7b3;
  --line: #2b3240;
  --accent: #8ab4ff;
}

* {
  box-sizing: border-box;
}

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

.wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 32px 20px 60px;
}

.header {
  margin-bottom: 20px;
}

h1 {
  margin: 0 0 6px;
  font-size: 32px;
}

h3 {
  margin: 0 0 14px;
}

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 20px;
  margin: 16px 0;
  box-shadow: 0 12px 30px rgba(0,0,0,.18);
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
}

select,
input,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel2);
  color: var(--text);
  padding: 11px 12px;
  font: inherit;
}

textarea {
  resize: vertical;
  margin-top: 14px;
}

.check {
  flex-direction: row;
  align-items: center;
  margin-top: 14px;
}

.check input {
  width: auto;
}

.dropzone {
  border: 1px dashed #425066;
  border-radius: 18px;
  padding: 28px;
  margin-top: 18px;
  text-align: center;
  background: rgba(255,255,255,.02);
}

.dropzone.drag {
  border-color: var(--accent);
  background: rgba(138,180,255,.08);
}

.actions,
.downloads {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

button,
.btn {
  border: 0;
  border-radius: 12px;
  background: var(--accent);
  color: #06111f;
  padding: 11px 16px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

button:disabled,
.disabled {
  opacity: .45;
  pointer-events: none;
}

.secondary {
  background: #303846;
  color: var(--text);
}

.linkbtn {
  background: transparent;
  padding: 0;
  color: var(--accent);
  text-decoration: underline;
}

.muted {
  color: var(--muted);
}

.bar {
  height: 12px;
  border-radius: 999px;
  overflow: hidden;
  background: #262d39;
}

.bar > div {
  width: 0%;
  height: 100%;
  background: var(--accent);
  transition: width .25s ease;
}

pre {
  min-height: 260px;
  max-height: 70vh;
  overflow: auto;
  white-space: pre-wrap;
  word-break: break-word;
  background: #0b0d11;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px;
  line-height: 1.5;
}

@media (max-width: 780px) {
  .grid {
    grid-template-columns: 1fr;
  }

  .wrap {
    padding: 20px 12px 40px;
  }
}

.jobs-list {
  display: grid;
  gap: 14px;
}

.job-card {
  background: rgba(255,255,255,.025);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px;
}

.job-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 12px;
}

.job-head p {
  margin: 6px 0 0;
}

.job-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.small {
  padding: 8px 10px;
  font-size: 13px;
}

.compact {
  margin-top: 12px;
}

.error {
  color: #ff9b9b;
  white-space: pre-wrap;
}
