:root {
  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: #182423;
  background: #f5f7f6;
  font-size: 14px;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select {
  font: inherit;
}
button {
  cursor: pointer;
  border: 1px solid #d4ded9;
  background: white;
  padding: 10px 15px;
  border-radius: 8px;
  color: inherit;
}
button:hover {
  background: #edf3ef;
}
button:disabled {
  opacity: 0.5;
  cursor: wait;
}
button:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid #56a983;
  outline-offset: 2px;
}
input,
select {
  border: 1px solid #cbd6d0;
  background: white;
  border-radius: 7px;
  padding: 9px;
  min-width: 0;
}
label {
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 12px;
  font-weight: 600;
}
h1 {
  font-size: 30px;
  letter-spacing: -1px;
  margin: 5px 0 28px;
}
h2 {
  font-size: 18px;
  margin: 0 0 18px;
}
h3 {
  font-size: 14px;
  margin: 0 0 12px;
}
.muted {
  color: #72807a;
  line-height: 1.6;
}
.brand {
  font-size: 17px;
  letter-spacing: 2px;
  font-weight: 800;
  margin-bottom: 44px;
}
.eyebrow {
  font-size: 10px;
  letter-spacing: 2px;
  color: #77877f;
}
.badge {
  background: #e1ece5;
  color: #326648;
  padding: 8px 12px;
  border-radius: 20px;
  font-size: 11px;
}
#shell {
  display: grid;
  grid-template-columns: 215px 1fr;
  min-height: 100vh;
}
#shell[hidden],
*[hidden] {
  display: none !important;
}
aside {
  border-right: 1px solid #dde4df;
  padding: 30px 20px;
  background: #fcfdfc;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
}
nav {
  display: grid;
  gap: 7px;
}
nav button {
  text-align: left;
  background: transparent;
  border: 0;
}
nav button.selected {
  background: #e7f0e9;
  color: #25563c;
  font-weight: 700;
}
.quiet {
  margin-top: auto;
}
main {
  padding: 35px 40px;
  max-width: 1600px;
  width: 100%;
  min-width: 0;
}
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.card {
  padding: 25px;
  border: 1px solid #dfe6e1;
  background: white;
  border-radius: 13px;
  margin-bottom: 20px;
}
.filters {
  display: flex;
  align-items: flex-end;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.filters select[multiple] {
  min-height: 85px;
  min-width: 180px;
}
.kpis {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
  margin-bottom: 20px;
}
.kpi {
  background: #f5f8f6;
  border: 1px solid #e1e9e3;
  padding: 20px;
  border-radius: 10px;
}
.kpi strong {
  display: block;
  font-size: 28px;
  margin: 12px 0 8px;
  letter-spacing: -1px;
}
.legend {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  font-size: 11px;
  margin: 14px 0;
}
.swatch {
  width: 10px;
  height: 10px;
  display: inline-block;
  margin-right: 6px;
  border-radius: 3px;
}
.chart {
  width: 100%;
  height: 220px;
  overflow: visible;
}
.chart-scroll {
  overflow-x: auto;
  padding-top: 15px;
}
.chart text {
  font-size: 11px;
  fill: #748078;
}
.chart line {
  stroke: #e7ece9;
}
.table-wrap {
  overflow: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}
th {
  text-align: left;
  font-size: 10px;
  letter-spacing: 0.5px;
  color: #7a8780;
  padding: 12px;
  border-bottom: 1px solid #dce4de;
}
td {
  padding: 15px 12px;
  border-bottom: 1px solid #edf0ed;
  white-space: nowrap;
}
td:nth-child(2) {
  white-space: normal;
}
code {
  font-size: 11px;
  color: #68756f;
}
.pager {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  align-items: center;
  margin-top: 15px;
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.form-grid button {
  align-self: end;
  background: #235c40;
  color: white;
}
.login {
  margin: 12vh auto;
  width: min(420px, 90vw);
  padding: 30px;
  background: white;
  border: 1px solid #dee5df;
  border-radius: 15px;
}
.login form {
  display: grid;
  gap: 20px;
}
.login button {
  background: #235c40;
  color: white;
}
#notice {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: #192c23;
  color: white;
  padding: 16px 24px;
  border-radius: 10px;
  max-width: 90vw;
  z-index: 10;
}
.empty {
  padding: 50px;
  text-align: center;
  color: #77837b;
}
@media (max-width: 850px) {
  #shell {
    grid-template-columns: 1fr;
  }
  aside {
    height: auto;
    position: static;
    padding: 15px;
  }
  .brand {
    margin: 0 0 15px;
  }
  nav {
    display: flex;
    overflow: auto;
  }
  .quiet {
    margin-top: 15px;
    align-self: start;
  }
  main {
    padding: 25px 16px;
  }
  .kpis {
    grid-template-columns: 1fr;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  header .badge {
    display: none;
  }
}
aside,
nav {
  min-width: 0;
}

dialog {
  width: min(640px, calc(100vw - 32px));
  max-height: 90vh;
  overflow: auto;
  border: 1px solid #dfe6e1;
  border-radius: 13px;
  padding: 25px;
  color: inherit;
}
dialog::backdrop {
  background: #18242380;
}
#plan-error {
  color: #a12d2d;
}
