:root {
  --ink: #152f39;
  --slate: #526571;
  --line: #cdd9dc;
  --paper: #f3f6f6;
  --accent: #13725c;
  --dark: #102f39;
  --tint: #e7f2ec;
  color-scheme: light;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-size: 15px;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select {
  font: inherit;
}
button,
a,
summary {
  touch-action: manipulation;
}
button,
summary {
  cursor: pointer;
}
a {
  color: var(--accent);
  overflow-wrap: anywhere;
}
button:focus-visible,
input:focus-visible,
select:focus-visible,
summary:focus-visible,
a:focus-visible {
  outline: 3px solid #69a894;
  outline-offset: 3px;
}
.container {
  width: min(1220px, calc(100% - 56px));
  margin: auto;
}
.bar {
  background: var(--dark);
  color: #fff;
}
.top {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 65px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.45px;
}
.mark {
  display: grid;
  place-items: center;
  width: 35px;
  height: 35px;
  border: 1px solid #8dbfae;
  border-radius: 6px;
  background: #163f46;
  color: #b6e6ce;
  font-family: "IBM Plex Mono", Consolas, monospace;
  letter-spacing: -2px;
  font-size: 20px;
  padding-right: 2px;
}
.bartext {
  color: #b3c3c5;
  border-left: 1px solid #4b666b;
  padding-left: 23px;
  font-size: 13px;
}
.signout {
  margin-left: auto;
  color: #dbe8e6;
  border: 1px solid #536c71;
  border-radius: 5px;
  background: transparent;
  padding: 6px 13px;
}
h1 {
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.08;
  letter-spacing: -1.7px;
  margin: 40px 0 24px;
  font-weight: 650;
}
h2 {
  font-size: 21px;
  letter-spacing: -0.55px;
  line-height: 1.25;
  margin: 0 0 19px;
}
h3 {
  font-size: 16px;
  margin: 22px 0 9px;
}
p {
  line-height: 1.5;
}
.grid {
  display: grid;
  grid-template-columns: minmax(300px, 0.85fr) minmax(340px, 1.45fr);
  gap: 18px;
  align-items: start;
}
.card,
.login,
dialog {
  background: white;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 24px;
}
.drop {
  position: relative;
  display: flex;
  align-items: center;
  flex-direction: column;
  justify-content: center;
  min-height: 135px;
  gap: 7px;
  text-align: center;
  padding: 18px 10px;
  border: 1.5px dashed #8ba89e;
  background: #f2f8f5;
  border-radius: 6px;
  cursor: pointer;
}
.drop span:last-of-type,
.choice small,
.muted,
.eyebrow {
  color: var(--slate);
}
.drop span:last-of-type,
.choice small {
  font-size: 12px;
  line-height: 1.4;
}
.drop strong {
  max-width: 100%;
  overflow-wrap: anywhere;
}
.upload-icon {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  color: var(--accent);
  border: 1px solid #a8cbbd;
  border-radius: 5px;
  font-size: 21px;
  line-height: 1;
}
.drop input {
  position: absolute;
  inset: 0;
  opacity: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
}
.drop:focus-within,
.drop.drag {
  outline: 2px solid var(--accent);
  background: var(--tint);
}
fieldset {
  border: 0;
  padding: 0;
  margin: 20px 0 14px;
}
legend,
label:not(.drop) {
  font-size: 13px;
  font-weight: 600;
}
legend {
  padding: 0;
  margin-bottom: 9px;
}
.choice {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin: 8px 0 12px;
}
.choice input {
  accent-color: var(--accent);
  margin: 2px 0;
}
.choice small,
.choice b {
  display: block;
}
.choice small {
  font-weight: 400;
  margin-top: 3px;
}
.options {
  font-size: 13px;
  border-top: 1px solid var(--line);
  padding: 14px 0;
}
.options div {
  padding-top: 12px;
}
.options label,
.login label {
  display: block;
  margin: 10px 0 7px;
}
input:not([type="file"]):not([type="radio"]),
select {
  border: 1px solid #aebec2;
  border-radius: 5px;
  padding: 10px 12px;
  color: var(--ink);
  background: white;
  max-width: 100%;
}
.options input,
.login input {
  width: 100%;
}
.primary,
.download,
.plain,
.openjob {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--accent);
  color: #fff;
  border: 1px solid transparent;
  border-radius: 5px;
  padding: 10px 15px;
  font-weight: 600;
  text-decoration: none;
}
.primary {
  width: 100%;
  justify-content: space-between;
}
.primary:hover,
.download:hover {
  background: #0b5747;
}
.primary:disabled {
  opacity: 0.6;
}
.plain,
.openjob {
  background: #fff;
  color: var(--accent);
  border-color: var(--line);
  padding: 7px 11px;
  font-size: 13px;
}
.error {
  color: #a02c23;
}
.error:empty {
  margin: 0;
}
.sectionhead {
  display: flex;
  align-items: center;
  gap: 12px;
}
.sectionhead h2 {
  margin: 0;
}
.counter,
.pill {
  background: #edf2f2;
  color: #40565a;
  border-radius: 4px;
  padding: 4px 7px;
  font-size: 11px;
  font-weight: 650;
}
.pill.ok {
  background: #d9eee2;
  color: #1c5f45;
}
.pill.failed {
  background: #f8e6df;
  color: #853f27;
}
.empty {
  padding: 33px 0 16px;
  color: var(--slate);
  max-width: 390px;
}
.job {
  padding: 17px 0;
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 7px;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
}
.job:last-child {
  border-bottom: 0;
}
.job b,
.wide h2 {
  overflow-wrap: anywhere;
}
.job small {
  color: var(--slate);
  line-height: 1.5;
}
.job .actions {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  grid-column: 1/-1;
}
.job progress {
  width: 100%;
  height: 5px;
  grid-column: 1/-1;
  accent-color: var(--accent);
}
.results {
  margin: 20px 0 50px;
}
.wide,
.filters,
.downloads {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.wide {
  justify-content: space-between;
}
.downloads a {
  font-size: 13px;
}
.eyebrow {
  font-size: 12px;
  margin: 0 0 6px;
}
.metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 35px;
  border-bottom: 1px solid var(--line);
  padding: 20px 0;
  margin-bottom: 17px;
}
.metric {
  display: grid;
  gap: 3px;
}
.metric strong {
  font-size: 26px;
  font-variant-numeric: tabular-nums;
}
.metric small {
  color: var(--slate);
}
.filters {
  margin: 12px 0 16px;
}
.filters input {
  min-width: min(320px, 100%);
}
.tablewrap {
  overflow-x: auto;
}
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 13px;
  line-height: 1.4;
}
th,
td {
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid #e1e7e7;
  padding: 11px 9px;
}
th {
  color: var(--slate);
  background: var(--paper);
  font-weight: 600;
  white-space: nowrap;
}
td:nth-child(3) {
  font-family: "IBM Plex Mono", Consolas, monospace;
}
.auth {
  min-height: 100vh;
  display: grid;
  place-items: center;
  background: #eaf0ef;
}
.login {
  width: min(405px, calc(100% - 32px));
  padding: 32px;
  box-shadow: 0 14px 40px #16343912;
}
.login h1 {
  font-size: 31px;
  letter-spacing: -1px;
  margin: 30px 0 8px;
}
.login .muted {
  margin: 0 0 23px;
}
.login button {
  margin-top: 18px;
}
dialog {
  max-width: min(650px, 95vw);
  width: 100%;
  max-height: 85vh;
  overflow: auto;
  color: var(--ink);
}
dialog::backdrop {
  background: #102e3980;
}
dialog .sectionhead {
  justify-content: space-between;
}
dialog h2 {
  font-size: 20px;
}
dialog img {
  display: block;
  max-width: 100%;
  max-height: 290px;
  object-fit: contain;
  margin: 10px 0;
}
dialog article {
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
dialog article p {
  margin: 5px 0;
  font-size: 14px;
}
dialog small {
  color: var(--slate);
}
[hidden] {
  display: none !important;
}
@media (max-width: 760px) {
  .container {
    width: calc(100% - 28px);
  }
  .grid {
    grid-template-columns: 1fr;
  }
  .card {
    padding: 18px;
  }
  .bartext {
    display: none;
  }
  h1 {
    margin: 26px 0 18px;
  }
  .metrics {
    gap: 12px 20px;
  }
  .tablewrap table {
    min-width: 660px;
  }
}
@media (prefers-reduced-motion: no-preference) {
  button,
  a {
    transition: background 0.15s ease;
  }
}

#settingsDialog { width: min(32rem, 94vw); }
.keyform fieldset { display: grid; gap: .6rem; padding: 1rem; margin: 1rem 0; }
.keyform input[type=password] { width: 100%; }
.keyform input[type=checkbox] { width: auto; }
.keyform legend { font-weight: 650; }
.keyform small { color: #47675e; }
.keyform .sectionhead { align-items: center; }
