* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: #f5f6f2;
  color: #19342e;
  font:
    16px/1.5 Inter,
    system-ui,
    sans-serif;
}
header {
  background: #143e36;
  color: white;
  padding: 16px max(5vw, 20px);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.identity {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
}
.identity b {
  border: 1px solid #87a99b;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  font: 32px Georgia;
}
.identity small {
  display: block;
  color: #c1d2ca;
  font-size: 12px;
  font-weight: 400;
}
main {
  max-width: 1260px;
  margin: 0 auto;
  padding: clamp(24px, 5vw, 64px) 5vw;
}
h1,
h2 {
  font-family: Georgia, serif;
  font-weight: 500;
  margin: 0;
  line-height: 1.15;
}
h1 {
  font-size: clamp(38px, 5vw, 58px);
}
h2 {
  font-size: 30px;
}
.over {
  letter-spacing: 0.16em;
  font-weight: 700;
  font-size: 11px;
  color: #466c5e;
  margin: 0 0 12px;
}
.heading,
.tools,
.metrics {
  display: flex;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}
button,
input,
select {
  font: inherit;
  border: 1px solid #adbbb2;
  border-radius: 6px;
  background: white;
  color: inherit;
  padding: 9px 13px;
}
button {
  cursor: pointer;
  font-weight: 600;
}
header button {
  color: #143e36;
}
button:hover {
  border-color: #17614b;
}
button:disabled {
  opacity: 0.5;
  cursor: wait;
}
.primary {
  background: #196044;
  color: white;
  border-color: #196044;
}
.metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin: 30px 0;
}
.metric {
  background: #fff;
  border-top: 3px solid #8ba798;
  padding: 15px 18px;
}
.metric strong {
  display: block;
  font: 32px Georgia;
}
.metric small,
label,
legend,
th {
  font-size: 13px;
  font-weight: 600;
}
label {
  display: grid;
  gap: 5px;
}
.tools {
  align-items: end;
  margin-bottom: 16px;
}
.table {
  overflow: auto;
  background: #fff;
  border: 1px solid #d9dfd7;
  border-radius: 8px;
}
table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  white-space: nowrap;
}
th,
td {
  padding: 12px;
  border-bottom: 1px solid #e1e5df;
}
th {
  background: #eaf0e8;
}
td {
  font-size: 14px;
}
td small {
  display: block;
  color: #52665c;
}
.chip {
  border-radius: 14px;
  padding: 3px 9px;
  background: #eceee8;
}
.approved {
  background: #dcefe3;
}
.pending {
  background: #fff0c9;
}
.paused {
  background: #f5dddd;
}
td button {
  font-size: 12px;
  padding: 5px 8px;
  margin: 2px;
}
.tools input {
  min-width: min(310px, 80vw);
}
#login,
dialog {
  background: #fff;
  border: 1px solid #d8dfd6;
  border-radius: 12px;
  padding: clamp(20px, 4vw, 40px);
  max-width: 470px;
}
#login {
  margin: 3vh auto;
}
#login h1 {
  font-size: 38px;
}
form label,
fieldset {
  margin: 15px 0;
}
dialog {
  width: 90%;
  color: inherit;
}
dialog::backdrop {
  background: #102b2480;
}
fieldset {
  border: 1px solid #ccd6cf;
  border-radius: 6px;
}
#notice,
#editError {
  color: #78452a;
}
#updated {
  font-size: 13px;
  color: #56685e;
}
a {
  color: #215b46;
}
[hidden] {
  display: none !important;
}
@media (max-width: 650px) {
  .metrics {
    grid-template-columns: 1fr 1fr;
  }
  .heading > div {
    margin: 8px 0;
  }
  .tools {
    align-items: stretch;
  }
  .metric {
    padding: 10px;
  }
  .table {
    margin: 0 -8px;
  }
}
