* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: #f2f4f0;
  color: #1d2b27;
  font:
    15px Inter,
    Arial,
    sans-serif;
}
aside {
  background: #182420;
  color: #eff5ef;
  position: fixed;
  width: 210px;
  inset: 0 auto 0 0;
  padding: 24px 15px;
  display: flex;
  flex-direction: column;
}
.brand {
  font-size: 25px;
  font-weight: 800;
  letter-spacing: -1px;
  margin: 6px 4px 36px;
}
.brand i {
  color: #c5ed88;
}
nav {
  display: grid;
  gap: 5px;
}
button,
a.button {
  font: inherit;
  cursor: pointer;
  background: #fff;
  border: 1px solid #d2dbd4;
  border-radius: 8px;
  padding: 9px 13px;
  color: #253c30;
  text-decoration: none;
}
nav button {
  text-align: left;
  color: #d1ded5;
  background: none;
  border: none;
}
nav button.active,
.primary {
  background: #cced96;
  color: #203823;
  font-weight: bold;
}
#identity {
  margin-top: auto;
}
#identity button {
  display: block;
  margin-top: 8px;
}
main {
  margin-left: 210px;
  padding: 18px clamp(14px, 3vw, 48px);
}
header {
  color: #475d50;
  letter-spacing: 0.12em;
  font-size: 11px;
  font-weight: bold;
  border-bottom: 1px solid #d6dfd8;
  padding: 8px 0 17px;
  display: flex;
  justify-content: space-between;
}
h1 {
  font-size: 36px;
  letter-spacing: -1.5px;
}
h2 {
  font-size: 21px;
}
h3 {
  font-size: 16px;
}
.card,
dialog {
  background: white;
  border: 1px solid #d7dfd9;
  border-radius: 15px;
  padding: 19px;
  margin-bottom: 13px;
}
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 12px;
}
.unit {
  text-align: left;
  display: grid;
  gap: 7px;
}
.unit strong {
  font-size: 18px;
}
.muted,
small {
  color: #627366;
}
.tools {
  display: flex;
  gap: 9px;
  align-items: end;
  flex-wrap: wrap;
  margin: 12px 0;
}
label {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 13px;
  font-weight: 600;
}
input,
select {
  max-width: 100%;
  font: inherit;
  border: 1px solid #c5d1c8;
  background: white;
  border-radius: 7px;
  padding: 9px;
  color: #243e2d;
}
.scroll {
  overflow: auto;
}
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 14px;
}
th,
td {
  padding: 11px 8px;
  text-align: left;
  border-bottom: 1px solid #e4e9e4;
}
th {
  background: #eef3eb;
}
dialog {
  position: fixed;
  margin: auto;
  width: min(680px, 96vw);
  max-height: 90vh;
}
dialog::backdrop {
  background: #17271b88;
}
.close {
  float: right;
}
.close button {
  font-size: 20px;
  padding: 2px 8px;
}
.badge,
#notice:not(:empty) {
  background: #e5edda;
  border-radius: 7px;
  padding: 7px 11px;
}
.warn {
  color: #8c302a;
}
#feedback {
  font-weight: bold;
}
.metric {
  padding: 10px;
  background: #edf4e9;
  border-radius: 8px;
}
.metric strong {
  display: block;
  font-size: 23px;
}
.fields {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(145px, 1fr));
  gap: 9px;
}
.fields b {
  display: block;
}
iframe {
  width: 100%;
  height: 300px;
  border: 0;
}
button:disabled {
  opacity: 0.5;
  cursor: default;
}
@media (max-width: 760px) {
  aside {
    position: static;
    width: auto;
    padding: 9px 12px;
    display: block;
  }
  .brand {
    margin: 0 0 8px;
    font-size: 20px;
  }
  nav {
    display: flex;
    overflow: auto;
  }
  nav button {
    white-space: nowrap;
  }
  main {
    margin: 0;
    padding: 12px;
  }
  #identity {
    font-size: 11px;
    margin-top: 6px;
  }
  #identity button {
    display: inline;
    margin: 0 0 0 8px;
    padding: 2px 6px;
  }
  h1 {
    font-size: 28px;
    margin: 12px 0;
  }
  .card {
    padding: 12px;
  }
}
@media print {
  aside,
  header,
  .tools,
  #feedback,
  dialog,
  #notice {
    display: none !important;
  }
  main {
    margin: 0;
    padding: 0;
  }
  .scroll {
    overflow: visible;
  }
}
