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

* {
  box-sizing: border-box;
}

body {
  margin: 0;
}

.login-body {
  min-height: 100vh;
  display: grid;
  place-items: center;
}

.login-shell {
  width: min(420px, calc(100% - 32px));
}

.login-panel {
  background: #ffffff;
  border: 1px solid #d8dee5;
  border-radius: 8px;
  padding: 28px;
  box-shadow: 0 12px 30px rgba(29, 39, 48, 0.08);
}

.login-panel h1,
.login-panel p {
  margin-top: 0;
}

.login-form {
  display: grid;
  gap: 14px;
}

.login-form label {
  display: grid;
  gap: 6px;
  font-weight: 700;
}

.shell {
  width: min(960px, calc(100% - 32px));
  margin: 40px auto;
}

.topbar,
.section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.topbar {
  margin-bottom: 18px;
}

.topbar h1,
.topbar p,
.section-title h2,
.section-title p {
  margin: 0;
}

.topbar p,
.section-title p {
  color: #5d6b78;
}

.panel,
.jobs,
.analysis {
  background: #ffffff;
  border: 1px solid #d8dee5;
  border-radius: 8px;
  padding: 24px;
  box-shadow: 0 12px 30px rgba(29, 39, 48, 0.08);
}

.jobs {
  margin-top: 18px;
}

.analysis {
  margin-top: 18px;
}

.heading h1,
.heading h2,
.jobs h2 {
  margin: 0 0 8px;
  font-size: 24px;
  line-height: 1.2;
}

.heading p {
  margin: 0 0 20px;
  color: #5d6b78;
}

.form {
  display: grid;
  grid-template-columns: 1fr 160px 100px;
  gap: 10px;
}

.form.single-action {
  grid-template-columns: 1fr 120px;
}

input,
select,
button {
  min-height: 44px;
  border-radius: 6px;
  border: 1px solid #c3ccd5;
  font: inherit;
}

button.secondary {
  border-color: #c3ccd5;
  background: #ffffff;
  color: #1d2730;
}

input,
select {
  padding: 0 12px;
  background: #ffffff;
}

button {
  border-color: #1f6feb;
  background: #1f6feb;
  color: #ffffff;
  font-weight: 700;
  cursor: pointer;
}

button:disabled {
  opacity: 0.6;
  cursor: wait;
}

.message {
  min-height: 22px;
  color: #5d6b78;
}

.hidden {
  display: none;
}

.items {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.item {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 12px;
  align-items: start;
  padding: 12px;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
}

.item input {
  min-height: auto;
  margin-top: 3px;
}

.item span,
.item small {
  display: grid;
  gap: 3px;
}

.item small,
.selection {
  color: #5d6b78;
}

.job {
  display: grid;
  gap: 8px;
  padding: 14px 0;
  border-top: 1px solid #e6ebf0;
}

.job:first-child {
  border-top: 0;
}

.job-title {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-weight: 700;
}

.status {
  color: #5d6b78;
  font-weight: 600;
}

.error {
  color: #b42318;
}

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

.files a {
  color: #0b5cad;
}

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

  .shell {
    margin: 20px auto;
  }
}
