:root {
  font-family: "DM Sans", sans-serif;
  color: #203c35;
  background: #f5f6f2;
  font-synthesis: none;
  --green: #244f42;
  --muted: #76847b;
  --line: #e3e8df;
  --lime: #d6e9ab;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  outline-offset: 4px;
}
button,
a {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
a {
  color: inherit;
}
.shell {
  display: grid;
  grid-template-columns: 244px 1fr;
  min-height: 100vh;
}
.sidebar {
  background: #193e35;
  color: #fff;
  padding: 36px 23px;
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
}
.brand {
  font-family: Manrope, sans-serif;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -1px;
  display: flex;
  gap: 12px;
  align-items: center;
}
.brand-mark {
  border: 1px solid #9bbd94;
  border-radius: 9px;
  width: 39px;
  height: 44px;
  display: grid;
  place-content: center;
  color: #d6e9ab;
}
.brand small {
  display: block;
  font-family: "DM Sans", sans-serif;
  font-weight: 400;
  letter-spacing: 1.7px;
  font-size: 9px;
  text-transform: uppercase;
  margin-top: 5px;
  color: #b3c6b8;
}
.workspace {
  font-size: 10px;
  letter-spacing: 2px;
  color: #9bb6a7;
  margin: 48px 12px 17px;
}
.nav {
  display: grid;
  gap: 7px;
}
.nav button {
  border: 0;
  background: none;
  color: #c4d3c9;
  text-align: left;
  padding: 13px 14px;
  border-radius: 7px;
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 13px;
}
.nav button.active {
  background: #35594a;
  color: #e3f3c7;
}
.nav svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.6;
}
.sidebar-bottom {
  margin-top: auto;
  border-top: 1px solid #416053;
  padding-top: 22px;
  font-size: 11px;
  line-height: 1.8;
  color: #b7c9bd;
}
.sidebar-bottom strong {
  color: #e7f1df;
  display: block;
}
.avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-content: center;
  background: #dee8ca;
  color: #274b3b;
  font-size: 11px;
  font-weight: 700;
}
.profile {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-top: 22px;
}
.profile div:last-child {
  min-width: 0;
  overflow-wrap: anywhere;
}
.logout {
  color: #cad8cb;
  background: none;
  border: 0;
  padding: 0;
  font-size: 11px;
}
.main {
  min-width: 0;
}
.topbar {
  height: 83px;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 43px;
  background: #fff;
}
.breadcrumb {
  font-size: 12px;
  color: var(--muted);
}
.breadcrumb span {
  margin: 0 12px;
  color: #b7c0b5;
}
.top-actions {
  display: flex;
  gap: 13px;
  align-items: center;
  font-size: 11px;
}
.pill {
  border: 1px solid #d9e3cf;
  border-radius: 20px;
  padding: 7px 12px;
  color: #557447;
  background: #f6faef;
}
.pill:before {
  content: "●";
  font-size: 8px;
  margin-right: 6px;
}
.content {
  padding: 36px 43px 45px;
  max-width: 1630px;
  margin: auto;
}
.heading {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  margin-bottom: 28px;
}
.eyebrow {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  color: #7d8c69;
  margin-bottom: 8px;
  text-transform: uppercase;
}
h1 {
  font-family: Manrope, sans-serif;
  letter-spacing: -1.3px;
  font-size: 32px;
  font-weight: 800;
  margin: 0 0 8px;
}
h2 {
  font-family: Manrope, sans-serif;
  font-size: 16px;
  letter-spacing: -0.3px;
  margin: 0;
}
h3 {
  font-size: 14px;
  margin: 0;
}
p {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.65;
  margin: 5px 0;
}
.button {
  border: 1px solid #d9dfd4;
  border-radius: 6px;
  background: white;
  color: #365042;
  padding: 10px 15px;
  font-size: 12px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
}
.button.primary {
  background: var(--green);
  border-color: var(--green);
  color: white;
}
.button:hover {
  filter: brightness(0.96);
}
.button:disabled {
  opacity: 0.5;
  cursor: wait;
}
.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 22px 0;
}
.segmented {
  display: flex;
  border: 1px solid var(--line);
  padding: 4px;
  border-radius: 7px;
  background: #edf0e8;
}
.segmented button {
  border: 0;
  background: none;
  color: #71806f;
  font-size: 11px;
  padding: 8px 15px;
  border-radius: 4px;
}
.segmented button.active {
  background: white;
  color: #294f3c;
  box-shadow: 0 1px 4px #233b3310;
}
.filters {
  display: flex;
  gap: 9px;
  align-items: center;
}
select {
  background: white;
  border: 1px solid #d9dfd4;
  color: #385043;
  border-radius: 5px;
  padding: 9px 12px;
  font-size: 12px;
}
.summary {
  background: #eaf0df;
  border: 1px solid #e0e7d4;
  border-radius: 8px;
  padding: 15px 19px;
  display: flex;
  justify-content: space-between;
  gap: 15px;
  align-items: center;
}
.summary strong {
  font-size: 12px;
}
.summary p {
  font-size: 11px;
  color: #64765c;
  margin: 3px 0 0;
}
.summary .badge {
  white-space: nowrap;
}
.badge {
  font-size: 10px;
  border-radius: 4px;
  padding: 5px 8px;
  background: #edf1e6;
  color: #758364;
  display: inline-block;
}
.badge.good {
  background: #e6efe3;
  color: #49714c;
}
.badge.warn {
  background: #f6eddc;
  color: #9b7335;
}
.kpis {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 17px;
  margin: 23px 0;
}
.card {
  border: 1px solid var(--line);
  background: white;
  border-radius: 9px;
  overflow: hidden;
}
.kpi {
  padding: 20px;
}
.kpi-label {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: #76816f;
}
.kpi-icon {
  color: #7a9d6e;
}
.kpi-value {
  font-family: Manrope, sans-serif;
  font-size: 29px;
  font-weight: 800;
  letter-spacing: -1px;
  margin: 14px 0 6px;
}
.kpi p {
  font-size: 10px;
}
.track {
  height: 4px;
  background: #edf1e8;
  border-radius: 3px;
  margin: 17px 0 10px;
  overflow: hidden;
}
.track span {
  display: block;
  height: 100%;
  background: #9ab47b;
}
.grid {
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) minmax(260px, 1fr);
  gap: 20px;
}
.card-head {
  padding: 21px 23px 14px;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
}
.card-head p {
  font-size: 10px;
}
.card-body {
  padding: 8px 23px 22px;
}
.legend {
  font-size: 9px;
  color: #85917e;
  display: flex;
  gap: 12px;
}
.legend i {
  width: 8px;
  height: 8px;
  background: #9bb77a;
  display: inline-block;
  border-radius: 2px;
  margin-right: 4px;
}
.legend i.actual {
  background: #254c3c;
}
.chart {
  height: 205px;
  display: flex;
  gap: 9px;
  align-items: end;
  border-bottom: 1px solid var(--line);
  padding-top: 20px;
  margin-bottom: 10px;
  background: repeating-linear-gradient(
    to top,
    transparent 0,
    transparent 49px,
    #f0f2ec 50px
  );
}
.chart-col {
  height: 100%;
  flex: 1;
  display: flex;
  align-items: end;
  justify-content: center;
  gap: 3px;
  position: relative;
}
.chart-bar {
  background: #b7cb98;
  width: 17px;
  border-radius: 3px 3px 0 0;
  min-height: 1px;
}
.chart-bar.actual {
  background: #244f42;
  width: 12px;
}
.chart-labels {
  display: flex;
  gap: 9px;
  font-size: 9px;
  color: #87917f;
}
.chart-labels span {
  flex: 1;
  text-align: center;
}
.chart-note {
  font-size: 10px;
  margin-top: 17px;
}
.team-row {
  padding: 15px 0;
  border-bottom: 1px solid #edf0e8;
}
.team-row:last-child {
  border: 0;
}
.row-title {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  font-weight: 600;
}
.team-meta {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  color: #89927f;
  margin-top: 10px;
}
.team-row .track {
  margin: 12px 0 7px;
}
.table-card {
  margin-top: 22px;
}
.table-wrap {
  overflow-x: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 11px;
  white-space: nowrap;
}
th {
  font-weight: 500;
  color: #88917f;
  background: #fafbf7;
  font-size: 10px;
}
th,
td {
  padding: 15px 21px;
  border-bottom: 1px solid #edf0e8;
}
tbody tr:last-child td {
  border-bottom: 0;
}
td:first-child {
  font-weight: 500;
  color: #36513d;
}
.tiny {
  font-size: 10px;
  color: #87917d;
}
.text-button {
  border: 0;
  background: none;
  color: #4e7050;
  font-size: 11px;
  padding: 2px 0;
}
.empty {
  padding: 32px 20px;
  text-align: center;
  color: #819079;
  font-size: 12px;
  line-height: 1.9;
}
.footer {
  display: flex;
  justify-content: space-between;
  margin-top: 25px;
  font-size: 9px;
  color: #99a18e;
}
.event-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 17px 22px;
  border-top: 1px solid var(--line);
}
.date-box {
  width: 44px;
  background: #eef2e6;
  border: 1px solid #e1e7d8;
  border-radius: 5px;
  text-align: center;
  padding: 6px;
  flex-shrink: 0;
}
.date-box b {
  display: block;
  font-size: 19px;
}
.date-box span {
  font-size: 8px;
  text-transform: uppercase;
}
.event-info {
  flex: 1;
}
.event-info p {
  font-size: 10px;
}
.event-actions {
  display: flex;
  gap: 12px;
}
.notice {
  padding: 15px 19px;
  border: 1px solid #e6decb;
  background: #f8f3e7;
  border-radius: 7px;
  font-size: 11px;
  color: #8b7750;
  margin: 20px 0;
  line-height: 1.8;
}
.metric-note {
  font-size: 10px;
  color: #89927f;
  margin: 14px 0;
}
.login {
  max-width: 470px;
  margin: 12vh auto;
  background: white;
  border: 1px solid var(--line);
  padding: 48px;
  border-radius: 12px;
}
.login .brand {
  color: #244f42;
  margin-bottom: 35px;
}
.login p {
  margin: 15px 0 25px;
}
.loading {
  padding: 80px;
  text-align: center;
  color: #73836f;
}
dialog {
  border: 1px solid #dce3d4;
  border-radius: 12px;
  padding: 30px;
  max-width: 850px;
  width: calc(100% - 32px);
  max-height: 90vh;
  color: #294635;
}
dialog::backdrop {
  background: #152b2466;
  backdrop-filter: blur(3px);
}
dialog h2 {
  font-size: 22px;
  margin-bottom: 7px;
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 22px 0;
}
label {
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 11px;
  color: #6c7f66;
}
input,
textarea {
  border: 1px solid #dbe2d3;
  border-radius: 5px;
  padding: 10px;
  color: #2c4937;
  background: #fff;
  width: 100%;
  font-size: 12px;
}
textarea {
  min-height: 80px;
}
.full {
  grid-column: 1/-1;
}
.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  border-top: 1px solid var(--line);
  padding-top: 20px;
}
.weights {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 9px;
}
.weights input {
  padding: 7px;
  min-width: 0;
}
.form-error {
  color: #a23c2e;
  font-size: 12px;
  white-space: pre-wrap;
  margin: 10px 0;
}
#toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: #234c3e;
  color: white;
  border-radius: 7px;
  padding: 13px 22px;
  font-size: 12px;
  box-shadow: 0 5px 25px #0002;
  display: none;
  z-index: 5;
}
.link-list {
  display: grid;
  gap: 12px;
  padding: 20px;
}
.point-value {
  font-size: 37px;
  font-family: Manrope, sans-serif;
  font-weight: 800;
  margin: 15px 0;
}
.settings-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.settings-grid .card {
  padding: 24px;
}
.audit {
  margin-top: 20px;
}
.save-status {
  font-size: 10px;
  color: #778970;
}
.annual {
  font-size: 10px;
  color: #909a85;
  border-top: 1px solid var(--line);
  padding: 14px 22px;
}
@media (min-width: 1550px) {
  .kpi-value {
    font-size: 36px;
  }
  .chart {
    height: 250px;
  }
}
@media (max-width: 1150px) {
  .sidebar {
    padding: 30px 14px;
  }
  .shell {
    grid-template-columns: 205px 1fr;
  }
  .content {
    padding: 27px 25px;
  }
  .topbar {
    padding: 0 25px;
  }
  .kpis {
    gap: 10px;
  }
  .kpi {
    padding: 16px;
  }
  .grid {
    grid-template-columns: 1fr;
  }
  .kpi-value {
    font-size: 25px;
  }
  .heading {
    align-items: flex-start;
  }
}
@media (max-width: 760px) {
  .shell {
    display: block;
  }
  .sidebar {
    position: relative;
    height: auto;
    padding: 18px;
  }
  .brand {
    font-size: 19px;
  }
  .sidebar .workspace,
  .sidebar-bottom {
    display: none;
  }
  .nav {
    display: flex;
    overflow-x: auto;
    margin-top: 20px;
    gap: 2px;
  }
  .nav button {
    white-space: nowrap;
    padding: 10px;
  }
  .nav svg {
    display: none;
  }
  .topbar {
    height: 60px;
    padding: 0 18px;
  }
  .breadcrumb {
    font-size: 10px;
  }
  .top-actions .pill {
    display: none;
  }
  .content {
    padding: 25px 17px;
  }
  h1 {
    font-size: 27px;
  }
  .heading {
    flex-wrap: wrap;
    gap: 14px;
  }
  .kpis {
    grid-template-columns: 1fr 1fr;
  }
  .toolbar {
    flex-wrap: wrap;
  }
  .segmented button {
    padding: 8px 12px;
  }
  .summary {
    align-items: flex-start;
  }
  .summary .badge {
    display: none;
  }
  .settings-grid {
    grid-template-columns: 1fr;
  }
  .form-grid {
    grid-template-columns: 1fr 1fr;
  }
  .weights {
    grid-template-columns: repeat(4, 1fr);
  }
  .event-row {
    flex-wrap: wrap;
  }
  .event-actions {
    margin-left: 58px;
  }
  .footer {
    line-height: 1.8;
    gap: 20px;
  }
  .login {
    margin: 30px 17px;
    padding: 30px;
  }
  .chart {
    gap: 3px;
  }
  .chart-labels {
    gap: 3px;
  }
  .legend {
    display: none;
  }
}

.secondary .kpi-value {
  font-size: 23px;
}
.secondary .kpi {
  padding: 17px 20px;
}
