@font-face {
  font-family: Manrope;
  src: url(fonts/Manrope.ttf) format("truetype");
  font-display: swap;
  font-weight: 200 800;
}
:root {
  --ink: #172e42;
  --muted: #516579;
  --blue: #245fb8;
  --rule: #d8e1e9;
  --paper: #f4f7fa;
  --teal: #086f68;
  --danger: #a93440;
  --nav: #172d40;
  font-family: Manrope, system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-size: 14px;
  font-variant-numeric: tabular-nums;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}
button,
a,
input,
select,
textarea,
summary {
  outline-offset: 3px;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline: 3px solid #5999f4;
}
button,
select {
  cursor: pointer;
}
button,
.button {
  border: 1px solid #bdcbd8;
  border-radius: 8px;
  background: white;
  padding: 8px 13px;
  font-weight: 700;
}
button:hover,
.button:hover {
  background: #edf3fa;
}
button:disabled {
  opacity: 0.55;
  cursor: wait;
}
.primary {
  background: var(--blue);
  color: white;
  border-color: var(--blue);
}
.primary:hover {
  background: #1d509c;
}
a {
  color: var(--blue);
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1 {
  font-size: clamp(28px, 3vw, 42px);
  letter-spacing: -0.04em;
  line-height: 1.16;
}
h2 {
  font-size: 21px;
  letter-spacing: -0.035em;
}
h3 {
  font-size: 16px;
}
small,
.sub,
.meta {
  color: var(--muted);
}
small {
  font-size: 12px;
}
.sub {
  margin-top: 5px;
}
.meta {
  font-weight: 650;
  font-size: 12px;
}
.sidebar {
  width: 218px;
  background: var(--nav);
  color: #e4edf7;
  position: fixed;
  inset: 0 auto 0 0;
  display: flex;
  flex-direction: column;
  padding: 27px 14px;
  z-index: 2;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  color: white;
  padding: 0 10px 33px;
}
.brand strong {
  font-size: 20px;
  letter-spacing: -0.035em;
}
.brand strong span {
  display: block;
  color: #b9c9d7;
  font-weight: 500;
  letter-spacing: 0.02em;
  font-size: 12px;
}
.brandmark {
  display: inline-grid;
  place-items: center;
  width: 37px;
  height: 40px;
  border-radius: 11px 11px 15px 15px;
  background: #d8eafc;
  color: #20496c;
  font-size: 25px;
  font-weight: 800;
}
.sidebar nav {
  display: grid;
  gap: 5px;
}
.sidebar nav a {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 12px 10px;
  font-size: 13px;
  font-weight: 600;
  color: #c5d5e2;
  text-decoration: none;
  border-radius: 8px;
}
.sidebar nav a[aria-current] {
  background: #314b62;
  color: white;
  box-shadow: inset 3px 0 #8ebdf5;
}
.sidebar svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}
.account {
  border-top: 1px solid #435465;
  margin-top: auto;
  padding: 20px 4px 0;
  display: flex;
  gap: 10px;
  align-items: center;
}
.avatar {
  background: #3a5368;
  width: 33px;
  height: 33px;
  display: grid;
  place-items: center;
  border-radius: 50%;
}
.account small {
  display: block;
  color: #bdcbd6;
}
main {
  margin-left: 218px;
}
.topbar {
  background: white;
  border-bottom: 1px solid var(--rule);
  padding: 17px clamp(18px, 3vw, 48px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  font-weight: 650;
}
.topbar i {
  font-style: normal;
  color: #99a9b5;
  margin: 0 8px;
}
.access {
  color: #2c536f;
  border: 1px solid #cfdeea;
  border-radius: 6px;
  padding: 3px 8px;
}
.workspace {
  max-width: 1570px;
  margin: auto;
  padding: 27px clamp(16px, 3vw, 48px) 65px;
}
.heading,
.row,
.cardhead,
.actions,
.legend {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.heading,
.cardhead,
.row {
  justify-content: space-between;
}
.heading {
  margin-bottom: 23px;
}
.heading .meta {
  margin-bottom: 6px;
}
.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 17px 0;
}
.card,
.kpi {
  background: white;
  border: 1px solid var(--rule);
  border-radius: 14px;
  padding: 20px;
  min-width: 0;
}
.kpi {
  text-align: left;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 9px;
  font-weight: 500;
}
.kpi strong {
  font-size: clamp(22px, 2.4vw, 36px);
  letter-spacing: -0.04em;
  line-height: 1.15;
}
.kpi.feature,
.kpi.feature:hover {
  background: #204259;
  border-color: #204259;
  color: white;
}
.kpi.feature small {
  color: #c6dce7;
}
.kpi .klabel {
  font-weight: 700;
  font-size: 12px;
}
.kpi small {
  font-size: 11px;
}
.kpi .cause {
  font-size: clamp(18px, 1.7vw, 25px);
}
.cardhead {
  margin-bottom: 13px;
}
.cardhead h2 {
  margin-bottom: 2px;
}
.chartcard {
  padding: 21px 22px 10px;
}
.segments {
  display: inline-flex;
  background: #eef2f6;
  padding: 3px;
  border-radius: 8px;
  gap: 2px;
}
.segments button {
  border: 0;
  background: transparent;
  padding: 5px 10px;
  color: var(--muted);
  font-size: 12px;
}
.segments button.active {
  background: white;
  color: var(--ink);
  box-shadow: 0 1px 3px #1c364525;
}
.legend {
  gap: 19px;
  font-size: 12px;
  color: var(--muted);
  margin: 14px 0 3px;
}
.legend i {
  display: inline-block;
  width: 19px;
  height: 0;
  border-top: 3px solid var(--blue);
  margin: 0 5px 3px 0;
}
.legend .reserve {
  border-top: 2px dashed #aa6b2a;
}
.legend .variant {
  border-color: var(--teal);
  border-top-style: dashed;
}
.chart {
  width: 100%;
  display: block;
  touch-action: pan-y;
}
.chart text {
  font:
    12px Manrope,
    system-ui;
  fill: #536b7d;
}
.chart [role="button"] {
  cursor: pointer;
}
.chart [role="button"]:focus {
  outline: 2px solid var(--blue);
}
.chartfoot {
  border-top: 1px solid var(--rule);
  padding: 10px 0;
  color: var(--muted);
  font-size: 12px;
  min-height: 38px;
}
.columns {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 16px;
  margin-top: 16px;
}
.stack {
  display: grid;
  gap: 16px;
}
.data {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.data th,
.data td {
  text-align: left;
  border-bottom: 1px solid #e6ecf1;
  padding: 10px 8px;
  vertical-align: middle;
}
.data th {
  font-size: 11px;
  color: var(--muted);
  font-weight: 700;
}
.data tr:last-child td {
  border-bottom: 0;
}
.data .num {
  text-align: right;
  white-space: nowrap;
}
.scroll {
  overflow: auto;
}
.negative {
  color: var(--danger);
}
.positive {
  color: var(--teal);
}
.link {
  padding: 4px 0;
  border: 0;
  background: none;
  color: var(--blue);
  text-align: left;
}
.link:hover {
  background: none;
  text-decoration: underline;
}
.pill {
  display: inline-block;
  padding: 3px 7px;
  border-radius: 5px;
  font-weight: 650;
  font-size: 11px;
  background: #e9f1fb;
  color: #345a7a;
}
.note,
.warn {
  font-size: 13px;
  border-left: 3px solid #779ec7;
  background: #f0f5fa;
  padding: 10px 12px;
  margin: 10px 0;
}
.warn {
  border-color: #b26c35;
  background: #fff6e9;
  color: #754616;
}
.formgrid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(155px, 1fr));
  gap: 12px;
  margin: 14px 0;
}
.formgrid label,
label.field {
  font-size: 12px;
  font-weight: 700;
  display: grid;
  gap: 5px;
  align-content: start;
}
.formgrid input,
.formgrid select,
.field input,
textarea,
select {
  padding: 8px 9px;
  border: 1px solid #b9c8d6;
  border-radius: 6px;
  background: white;
  min-width: 0;
}
.formgrid input {
  width: 100%;
}
input[type="checkbox"] {
  accent-color: var(--blue);
}
.choice {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
}
details {
  padding: 9px 0;
}
summary {
  cursor: pointer;
  color: var(--blue);
  font-weight: 650;
}
dialog {
  border: 1px solid #b6c8d6;
  border-radius: 15px;
  padding: 24px;
  width: min(760px, 94vw);
  max-height: 88vh;
  overflow: auto;
  color: var(--ink);
}
dialog::backdrop {
  background: #13293c88;
}
.dialog-close {
  float: right;
}
.dialog-close button {
  border: none;
  font-size: 21px;
  padding: 0 7px;
}
dialog h2 {
  padding-right: 30px;
  margin-bottom: 12px;
}
#status:not(:empty) {
  position: fixed;
  bottom: 15px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 8;
  border-radius: 8px;
  background: #18364c;
  color: white;
  padding: 10px 18px;
  max-width: 90vw;
}
.monthly {
  display: grid;
  gap: 7px;
}
.bar {
  height: 7px;
  background: #e4ecf1;
  border-radius: 3px;
  overflow: hidden;
}
.bar span {
  display: block;
  height: 100%;
  background: #437eac;
}
.compact {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 11px 0;
  border-bottom: 1px solid var(--rule);
}
.compact:last-child {
  border: 0;
}
.login {
  min-height: 100vh;
  display: grid;
  place-items: center;
}
.login .card {
  padding: 40px;
}
.login h1,
.login p {
  margin: 15px 0;
}
textarea {
  width: 100%;
  min-height: 100px;
  font-family: monospace;
}
.section {
  margin-top: 18px;
}
.data button {
  font-size: 12px;
}
progress {
  width: 100%;
}
@media (max-width: 1050px) {
  .sidebar {
    width: 183px;
    padding-inline: 9px;
  }
  main {
    margin-left: 183px;
  }
  .workspace {
    padding-inline: 18px;
  }
  .columns {
    grid-template-columns: 1fr;
  }
  .sidebar nav a {
    font-size: 12px;
  }
  .card,
  .kpi {
    padding: 16px;
  }
}
@media (max-width: 760px) {
  .sidebar {
    position: static;
    width: auto;
    padding: 12px 14px 6px;
  }
  .brand {
    padding: 0 0 10px;
  }
  .brand strong {
    display: flex;
    align-items: center;
    gap: 8px;
  }
  .brandmark {
    width: 28px;
    height: 30px;
    font-size: 20px;
  }
  .sidebar nav {
    display: flex;
    overflow: auto;
  }
  .sidebar nav a {
    white-space: nowrap;
    padding: 9px;
  }
  .sidebar nav a[aria-current] {
    box-shadow: inset 0 -2px #8ebdf5;
  }
  .account {
    display: none;
  }
  main {
    margin: 0;
  }
  .workspace {
    padding: 18px 12px 50px;
  }
  .cards {
    gap: 7px;
  }
  .kpi {
    padding: 12px 9px;
  }
  .kpi .cause {
    font-size: 16px;
  }
  .topbar {
    padding: 9px 14px;
  }
  .heading {
    margin-bottom: 14px;
  }
  .chartcard {
    padding: 14px 10px 3px;
  }
  .columns {
    gap: 10px;
  }
  .chart text {
    font-size: 14px;
  }
  .legend {
    gap: 9px;
  }
}
@media (max-width: 460px) {
  .cards {
    grid-template-columns: 1fr 1fr;
  }
  .kpi:last-child {
    grid-column: span 2;
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
  }
  .kpi:last-child small {
    grid-column: span 2;
  }
  .segments button {
    padding: 5px 7px;
  }
  .heading .actions {
    margin-top: 6px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
  }
}
