:root {
  color-scheme: light;
  --ink: #171717;
  --muted: #666a70;
  --line: #d9dde3;
  --surface: #ffffff;
  --band: #f3f5f7;
  --accent: #0f766e;
  --accent-dark: #115e59;
}

* {
  box-sizing: border-box;
}

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

.shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 32px 0;
}

.topbar {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
  padding: 24px 0;
}

h1,
h2,
p {
  margin: 0;
}

h1 {
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1;
}

h2 {
  margin-bottom: 16px;
  font-size: 20px;
}

#status {
  margin-top: 8px;
  color: var(--muted);
}

section {
  margin-top: 24px;
}

.manual,
.notFound,
.tableWrap {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 20px;
}

.notFound {
  max-width: 560px;
  margin: 18vh auto 0;
}

.hidden {
  display: none !important;
}

form {
  display: grid;
  grid-template-columns: 160px 1fr 1fr 1fr auto;
  gap: 12px;
  align-items: end;
}

.importForm {
  grid-template-columns: minmax(240px, 1fr) auto;
}

label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
}

input,
select,
button {
  min-height: 42px;
  border-radius: 6px;
  font: inherit;
}

input,
select {
  width: 100%;
  border: 1px solid var(--line);
  padding: 0 12px;
  background: #fff;
  color: var(--ink);
}

button {
  border: 0;
  padding: 0 16px;
  background: var(--accent);
  color: #fff;
  cursor: pointer;
  font-weight: 700;
}

button:hover {
  background: var(--accent-dark);
}

button:disabled {
  cursor: wait;
  opacity: .65;
}

.message {
  min-height: 22px;
  margin-top: 12px;
  color: var(--muted);
}

ul.message {
  padding-left: 20px;
}

.tableWrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
}

th,
td {
  padding: 12px 10px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
  font-size: 14px;
}

th {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
}

a {
  color: var(--accent-dark);
  font-weight: 700;
}

@media (max-width: 760px) {
  .topbar,
  form {
    grid-template-columns: 1fr;
    display: grid;
  }
}
