:root {
  color-scheme: light dark;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  max-width: 960px;
  margin: 0 auto;
  padding: 1rem;
  line-height: 1.5;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0;
  border-bottom: 1px solid ButtonBorder;
  margin-bottom: 1.5rem;
}

header nav a {
  margin-left: 1rem;
}

form {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-width: 320px;
}

form label {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

input, select, button {
  padding: 0.4rem 0.6rem;
  font: inherit;
}

table {
  border-collapse: collapse;
  width: 100%;
}

th, td {
  text-align: left;
  padding: 0.4rem 0.6rem;
  border-bottom: 1px solid ButtonBorder;
}

.file-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.file-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.4rem 0;
  border-bottom: 1px solid ButtonBorder;
}

.error {
  color: #d32f2f;
}

.success {
  color: #2e7d32;
}

.progress {
  margin: 1rem 0;
}

progress {
  width: 100%;
}

a.button {
  display: inline-block;
  padding: 0.4rem 0.6rem;
  text-decoration: none;
  border: 1px solid ButtonBorder;
  border-radius: 4px;
  cursor: pointer;
}

@media (prefers-color-scheme: dark) {
  .error {
    color: #ff8a80;
  }

  .success {
    color: #81c784;
  }
}
