:root {
  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: #1d302b;
  background: #f6f7f5;
  font-size: 14px;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select,
textarea {
  font: inherit;
}
button {
  border: 1px solid #d6ded9;
  border-radius: 7px;
  padding: 9px 13px;
  background: white;
  color: inherit;
  cursor: pointer;
}
button:hover {
  background: #edf2ee;
}
button:disabled {
  opacity: 0.45;
  cursor: default;
}
input,
select,
textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #d6ded9;
  border-radius: 6px;
  background: white;
  color: inherit;
}
label {
  display: block;
  color: #64736c;
  font-size: 12px;
  line-height: 1.8;
}
textarea {
  min-height: 150px;
  font-family: ui-monospace, monospace;
}
.layout {
  display: grid;
  grid-template-columns: 225px 1fr;
  min-height: 100vh;
}
aside {
  background: #fff;
  border-right: 1px solid #e0e5df;
  padding: 30px 20px;
  position: sticky;
  top: 0;
  height: 100vh;
}
.brand {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.6px;
}
.muted {
  color: #718078;
}
.overline {
  font-size: 10px;
  letter-spacing: 1.8px;
  margin: 30px 0 18px;
  color: #8c9890;
}
nav {
  display: grid;
  gap: 7px;
}
nav button {
  text-align: left;
  border: 0;
  padding: 12px;
  color: #617268;
  background: none;
}
nav button.active {
  background: #e9f0e9;
  color: #264d3b;
  font-weight: 600;
}
header {
  background: white;
  border-bottom: 1px solid #e0e5df;
  padding: 22px 35px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
header select {
  width: auto;
}
main {
  padding: 34px;
  min-width: 0;
}
h1 {
  font-size: 29px;
  letter-spacing: -1px;
  margin: 0 0 8px;
}
h2 {
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 20px;
}
h3 {
  font-size: 15px;
}
p {
  line-height: 1.65;
}
.card {
  background: white;
  border: 1px solid #e0e5df;
  border-radius: 10px;
  padding: 24px;
  margin: 22px 0;
}
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
  margin: 25px 0;
}
.stat {
  background: white;
  border: 1px solid #e0e5df;
  border-radius: 9px;
  padding: 22px;
}
.stat strong {
  display: block;
  font-size: 24px;
  margin-top: 12px;
  font-weight: 600;
}
.filters,
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 13px;
  align-items: end;
}
.scroll {
  overflow: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 12px;
}
th {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.7px;
  color: #748279;
  background: #fafbf9;
}
td,
th {
  padding: 13px 10px;
  border-bottom: 1px solid #e6ebe5;
  vertical-align: top;
}
td {
  max-width: 400px;
  overflow-wrap: anywhere;
}
td button {
  padding: 3px 0;
  border: 0;
  text-align: left;
  color: #305e45;
  background: none;
}
pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  background: #f5f7f3;
  border: 1px solid #e2e7de;
  padding: 18px;
  border-radius: 7px;
  font-size: 12px;
}
dialog {
  width: min(1100px, 94vw);
  max-height: 90vh;
  padding: 27px;
  border: 1px solid #d5ded4;
  border-radius: 12px;
}
dialog::backdrop {
  background: #20372b66;
}
.actions {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  margin-top: 20px;
}
.error {
  color: #a03d37;
}
.notice {
  background: #f0f4ed;
  border: 1px solid #dce5d5;
  padding: 15px;
  border-radius: 7px;
  color: #53634f;
}
.login {
  max-width: 450px;
  margin: 12vh auto;
}
.login .card {
  padding: 35px;
}
.login label {
  margin: 18px 0;
}
.primary {
  background: #30583f;
  color: white;
  border-color: #30583f;
}
.primary:hover {
  background: #254631;
}
#toast {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #243e2d;
  color: white;
  padding: 14px 20px;
  border-radius: 8px;
  display: none;
  max-width: 450px;
}
.small {
  font-size: 12px;
}
code {
  font-size: 12px;
}
@media (max-width: 850px) {
  .layout {
    grid-template-columns: 1fr;
  }
  aside {
    position: static;
    height: auto;
    padding: 18px;
  }
  nav {
    display: flex;
    overflow: auto;
  }
  .overline {
    display: none;
  }
  main {
    padding: 20px;
  }
  header {
    padding: 16px;
  }
  .brand {
    margin-bottom: 15px;
  }
}
@media print {
  aside,
  header,
  button,
  #toast {
    display: none;
  }
  .layout {
    display: block;
  }
  .card {
    border: 0;
  }
  main {
    padding: 0;
  }
}
.layout > div,
aside {
  min-width: 0;
}
.layout {
  grid-template-columns: 225px minmax(0, 1fr);
}
@media (max-width: 850px) {
  .layout {
    grid-template-columns: minmax(0, 1fr);
  }
  nav button {
    flex-shrink: 0;
  }
  header {
    flex-wrap: wrap;
  }
}
@media (max-width: 450px) {
  .stats,
  .grid,
  .filters {
    grid-template-columns: minmax(0, 1fr);
  }
  .card {
    padding: 16px;
  }
  header > div {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
  }
  h1 {
    font-size: 25px;
  }
}
