* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: #f0f7ef;
  color: #244b3b;
  font:
    13px/1.8 'Microsoft YaHei',
    sans-serif;
}
main {
  max-width: 1400px;
  margin: auto;
  padding: 25px 30px;
}
header {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid #d6e5cc;
  padding-bottom: 20px;
}
header b {
  font-size: 20px;
  font-weight: 500;
}
a {
  color: #437957;
  text-decoration: none;
}
.intro {
  margin: 30px 0 20px;
}
.intro > span {
  font:
    10px Consolas,
    monospace;
  letter-spacing: 2px;
  color: #a48b62;
}
h1 {
  font-size: 29px;
  margin: 8px 0;
}
p {
  color: #849675;
  font-size: 12px;
}
button,
.import {
  font:
    12px 'Microsoft YaHei',
    sans-serif;
  border: 1px solid #cbdcbe;
  background: #fbfff5;
  padding: 10px 15px;
  border-radius: 4px;
  color: #365c40;
  cursor: pointer;
}
button:disabled {
  opacity: 0.5;
  cursor: default;
}
.primary {
  background: #285e43;
  color: white;
  border-color: #285e43;
}
.toolbar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.import {
  display: flex;
  align-items: center;
  gap: 7px;
}
.import input {
  max-width: 180px;
  font-size: 10px;
}
#status {
  font-size: 12px;
  padding: 13px;
  margin: 18px 0;
  background: #e6f0dc;
  color: #77965f;
  white-space: pre-wrap;
}
#status.error {
  background: #fae9dc;
  color: #b07854;
}
nav {
  display: flex;
  gap: 5px;
  border-bottom: 1px solid #d4e3c8;
  padding-bottom: 12px;
  flex-wrap: wrap;
}
nav button.active {
  background: #e2edda;
  border-color: #9ebc8e;
}
.entity-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 20px 0;
}
.entity-top h2 {
  font-size: 19px;
  margin: 0;
}
.entity-top p {
  font-size: 11px;
  max-width: 850px;
}
.table-wrap {
  overflow: auto;
  border: 1px solid #d4e2c7;
  background: #fbfef5;
}
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 11px;
  white-space: nowrap;
}
td,
th {
  padding: 12px;
  border-bottom: 1px solid #e1ead6;
  text-align: left;
}
th {
  font-weight: 500;
  background: #eaf2e0;
  color: #849d70;
}
td button {
  padding: 5px 9px;
  font-size: 10px;
  margin-right: 6px;
}
td.wrap {
  white-space: normal;
  min-width: 140px;
  max-width: 250px;
}
.note {
  font-size: 10px;
  margin-top: 18px;
}
.instructions {
  border: 1px solid #d6e3ca;
  background: #f8fcf1;
  padding: 20px;
  margin: 25px 0;
}
.instructions h3 {
  font-size: 14px;
  margin-top: 0;
}
dialog {
  width: min(850px, 94vw);
  max-height: 90vh;
  overflow: auto;
  border: 1px solid #bdd4a9;
  border-radius: 7px;
  padding: 25px;
  background: #fcfff5;
  color: #385c3b;
}
dialog::backdrop {
  background: #24452f88;
}
.dialog-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.dialog-title h2 {
  font-size: 19px;
}
.dialog-title button {
  padding: 6px 12px;
}
#fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 20px;
  margin: 20px 0;
}
#fields label {
  font-size: 11px;
  color: #7a9665;
  display: block;
}
#fields input:not([type='checkbox']),
#fields select,
#fields textarea {
  display: block;
  width: 100%;
  border: 1px solid #c9dcbc;
  border-radius: 3px;
  padding: 10px;
  background: #fbfff5;
  color: #375d36;
  font:
    12px 'Microsoft YaHei',
    sans-serif;
  margin-top: 6px;
}
#fields textarea {
  min-height: 80px;
}
#fields .multi {
  max-height: 160px;
  overflow: auto;
  border: 1px solid #d3e3c6;
  padding: 10px;
  margin-top: 6px;
  background: #f4f9ec;
}
.multi label {
  margin: 5px 0;
}
.multi input {
  accent-color: #467f49;
}
#formError {
  color: #b87450;
  font-size: 12px;
  white-space: pre-wrap;
}
.dirty {
  color: #bb8b51;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid #d9b17a;
  outline-offset: 2px;
}
@media (max-width: 700px) {
  main {
    padding: 18px 14px;
  }
  header b {
    font-size: 17px;
  }
  h1 {
    font-size: 25px;
  }
  #fields {
    grid-template-columns: 1fr;
  }
  .toolbar button {
    font-size: 10px;
  }
  .entity-top {
    gap: 15px;
  }
  .entity-top p {
    font-size: 10px;
  }
  td,
  th {
    padding: 10px;
  }
  .import {
    flex-wrap: wrap;
  }
}
