:root {
  color-scheme: light;
  font-family: system-ui, sans-serif;
  color: #252525;
  background: #f5f3ee;
}

body {
  margin: 0;
}

main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem 1rem 4rem;
}

h1,
h2 {
  color: #382f20;
}

section {
  margin-top: 2rem;
  padding: 1.25rem;
  background: #fff;
  border: 1px solid #d9d4c9;
  border-radius: 0.35rem;
}

form {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: end;
}

label {
  display: grid;
  gap: 0.35rem;
  font-weight: 600;
}

input,
button {
  box-sizing: border-box;
  min-height: 2.5rem;
  padding: 0.55rem 0.7rem;
  border: 1px solid #918a7c;
  border-radius: 0.25rem;
  font: inherit;
}

input:disabled {
  background: #eee;
}

button {
  color: #fff;
  background: #37631d;
  border-color: #37631d;
  cursor: pointer;
}

button:hover {
  filter: brightness(0.92);
}

button.secondary {
  color: #332f27;
  background: #eeeae2;
  border-color: #aaa397;
}

button.danger {
  background: #a22d27;
  border-color: #a22d27;
}

.form-actions,
.section-heading,
.actions {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.section-heading {
  justify-content: space-between;
}

.section-heading h2 {
  margin: 0;
}

.status {
  min-height: 1.5rem;
  color: #37631d;
  font-weight: 600;
}

.status.error {
  color: #a22d27;
}

.table-wrap {
  margin-top: 1rem;
  overflow-x: auto;
}

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

th,
td {
  padding: 0.7rem;
  border: 1px solid #d9d4c9;
  text-align: left;
  white-space: nowrap;
}

th {
  background: #eeeae2;
}

@media (max-width: 600px) {
  form,
  label,
  input,
  .form-actions {
    width: 100%;
  }
}
