@font-face {
  font-family: Peak;
  src: local("Inter"), local("Arial");
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: #f4f5f1;
  color: #192018;
  font:
    14px Peak,
    Arial,
    sans-serif;
}
button,
a,
input {
  font: inherit;
}
button,
a {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
a {
  color: inherit;
  text-decoration: none;
}
button:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 3px solid #789532;
  outline-offset: 4px;
}
aside {
  width: 236px;
  position: fixed;
  height: 100dvh;
  background: #191e19;
  color: #fff;
  padding: 35px 24px;
  display: flex;
  flex-direction: column;
}
.wordmark {
  font-size: 39px;
  font-weight: 950;
  letter-spacing: -3px;
  font-style: italic;
}
.wordmark span {
  font-size: 13px;
  vertical-align: top;
  letter-spacing: 0;
  margin-left: 4px;
}
.eyebrow {
  font-size: 10px;
  letter-spacing: 1.8px;
  font-weight: 700;
}
aside > .eyebrow {
  color: #899185;
  margin-top: 13px;
  font-size: 8px;
}
nav {
  display: grid;
  gap: 10px;
  margin-top: 47px;
}
nav a {
  padding: 13px 14px;
  border-radius: 8px;
  display: flex;
  gap: 13px;
  color: #aeb5aa;
}
nav a.selected {
  color: #d9f66f;
  background: #30382a;
}
nav a:hover {
  background: #30382a;
}
.sidebar-bottom {
  margin-top: auto;
  border-top: 1px solid #383f36;
  padding-top: 24px;
}
.avatar {
  float: left;
  display: grid;
  place-items: center;
  background: #3d4734;
  color: #d9f66f;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  margin-right: 10px;
  font-size: 11px;
}
.sidebar-bottom b {
  font-size: 12px;
}
.sidebar-bottom small {
  display: block;
  color: #aeb5aa;
  font-size: 10px;
  margin-top: 5px;
}
.text-button {
  background: none;
  border: 0;
  padding: 8px 0;
  color: #606b57;
  font-size: 12px;
}
.sidebar-bottom .text-button {
  color: #aeb5aa;
  margin-top: 10px;
}
.workspace {
  margin-left: 236px;
  padding: 0 42px;
  max-width: 1850px;
}
header {
  height: 79px;
  border-bottom: 1px solid #dee1d8;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
}
.muted {
  color: #7b8375;
}
.tag {
  border: 1px solid #d9ded0;
  border-radius: 5px;
  padding: 7px 9px;
  font-size: 9px;
  letter-spacing: 1px;
  color: #68725d;
}
.heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 36px 0 28px;
  gap: 20px;
}
.heading .eyebrow {
  color: #7d876d;
}
h1 {
  font-size: clamp(26px, 2.7vw, 40px);
  font-weight: 650;
  letter-spacing: -1.5px;
  margin: 10px 0;
}
.dot {
  color: #9dbf31;
}
p {
  color: #7b8375;
  font-size: 12px;
  line-height: 1.6;
  margin: 6px 0;
}
.button {
  background: #d9f66f;
  color: #1b2514;
  border: 0;
  border-radius: 7px;
  padding: 14px 20px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  display: inline-flex;
  justify-content: space-between;
  gap: 25px;
  align-items: center;
}
.button:hover {
  background: #c9eb50;
}
.button:disabled {
  opacity: 0.5;
  cursor: wait;
}
.filters {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
#promotions { margin-top: 24px; }
#promotions p { color: #747d6c; font-size: 12px; line-height: 1.65; }
#promotions .filters { justify-content: flex-start; margin: 20px 0; }
#promotions label { display: grid; gap: 8px; font-size: 12px; }
#promotions select { background: #fff; border: 1px solid #dce2d4; border-radius: 7px; padding: 10px; max-width: 100%; }
#discount-chart { max-height: 380px; overflow-y: auto; padding-right: 10px; font-size: 12px; }
.campaign-result { border: 1px solid #e0e4d8; border-radius: 12px; padding: 20px; margin: 18px 0; }
.campaign-result h4 { font-size: 16px; margin: 0; }
.campaign-facts { display: grid; grid-template-columns: repeat(auto-fit,minmax(180px,1fr)); gap: 12px; margin: 20px 0; }
.campaign-fact { border-radius: 8px; background: #f4f6ef; padding: 12px; }
.campaign-fact small { display: block; font-size: 11px; color: #707b65; line-height: 1.5; }
.campaign-fact strong { display: block; font-size: 18px; margin-top: 7px; }
.campaign-result details { margin-top: 20px; font-size: 12px; }
.campaign-result summary { cursor: pointer; padding: 8px 0; }
.source-tabs {
  display: flex;
  background: #e8ebe3;
  padding: 4px;
  border-radius: 8px;
}
.source-tabs button {
  border: 0;
  background: none;
  border-radius: 5px;
  padding: 10px 13px;
  font-size: 11px;
  color: #748067;
}
.source-tabs .active {
  background: #fff;
  color: #253019;
  box-shadow: 0 1px 4px #18240c0b;
}
.dates {
  display: flex;
  gap: 9px;
  align-items: center;
  font-size: 10px;
  color: #808975;
}
.dates label {
  background: #fff;
  padding: 9px;
  border: 1px solid #e0e4d8;
  border-radius: 6px;
  display: flex;
  gap: 6px;
  align-items: center;
}
.dates input {
  border: 0;
  background: transparent;
  color: #39442f;
  font-size: 11px;
  max-width: 119px;
}
.apply {
  border: 0;
  background: #293222;
  color: #fff;
  border-radius: 5px;
  padding: 10px;
  font-size: 11px;
}
.data-note {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #89917e;
  font-size: 10px;
  padding: 12px 0;
}
.metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 15px;
}
.metric {
  background: #fff;
  border: 1px solid #e4e7df;
  border-radius: 11px;
  padding: 23px 20px;
  min-height: 151px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.metric.primary {
  background: #e3f4bc;
  border-color: #dbeab7;
}
.metric small {
  font-size: 11px;
  color: #657354;
}
.metric strong {
  font-size: clamp(24px, 2.2vw, 36px);
  letter-spacing: -1px;
  font-weight: 600;
  margin: 16px 0 11px;
}
.metric span {
  font-size: 10px;
  color: #7b876b;
}
.chart-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr);
  gap: 18px;
  margin: 23px 0;
}
.panel {
  background: #fff;
  border: 1px solid #e4e7df;
  border-radius: 11px;
  padding: 23px;
  margin-bottom: 20px;
  min-width: 0;
}
.chart-grid > .panel {
  margin: 0;
}
.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 20px;
}
h2 {
  font-size: 15px;
  font-weight: 600;
  margin: 0;
  letter-spacing: -0.25px;
}
.panel-head p {
  font-size: 10px;
  margin-top: 5px;
}
.legend {
  font-size: 10px;
  color: #8aab39;
  white-space: nowrap;
}
.chart {
  height: 225px;
  display: flex;
  align-items: center;
}
.chart svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}
.chart text {
  font: 9px Arial;
  fill: #8e9685;
}
.channel {
  margin: 20px 0;
}
.channel-head {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
}
.channel-head small {
  color: #8b9382;
  font-size: 10px;
  margin-left: 7px;
}
.bar-track {
  height: 7px;
  background: #f0f2eb;
  border-radius: 5px;
  margin-top: 11px;
  overflow: hidden;
}
.bar-fill {
  height: 100%;
  background: #a7c758;
  border-radius: 5px;
}
.channel:nth-child(2) .bar-fill {
  background: #303d29;
}
.channel:nth-child(3) .bar-fill {
  background: #cdd3c3;
}
.footnote {
  font-size: 10px;
  line-height: 1.7;
  color: #929a88;
  border-top: 1px solid #edf0e8;
  padding-top: 16px;
  margin-top: 18px;
}
.finance {
  background: #eef0e8;
  display: flex;
  align-items: center;
  gap: 32px;
  justify-content: space-between;
}
.finance h2 {
  margin-top: 9px;
}
.finance p {
  font-size: 10px;
}
.finance strong {
  display: block;
  font-size: 24px;
  margin: 7px 0;
}
.finance small,
.finance span {
  font-size: 10px;
  color: #7b856f;
}
.pill {
  border: 1px solid #d2d9c7;
  padding: 8px 12px;
  border-radius: 40px;
  white-space: nowrap;
}
.table-scroll {
  overflow-x: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 11px;
  white-space: nowrap;
}
th {
  text-align: left;
  font-size: 9px;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  color: #8a9380;
  font-weight: 500;
  padding: 13px 12px;
  background: #f7f8f4;
}
td {
  padding: 16px 12px;
  border-bottom: 1px solid #edf0e8;
}
td:first-child {
  font-weight: 500;
}
.number {
  text-align: right;
}
.source-pill {
  background: #edf3e1;
  color: #6b7b4f;
  padding: 5px 7px;
  border-radius: 4px;
  font-size: 9px;
}
.cancel {
  color: #a37663;
}
.empty {
  text-align: center;
  padding: 35px;
  color: #929a88;
}
.panel-head > .muted {
  font-size: 10px;
}
footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  font-size: 9px;
  color: #969d8d;
  padding: 9px 0 30px;
  line-height: 1.7;
}
#message {
  background: #fff0cc;
  border: 1px solid #eed9a7;
  padding: 14px;
  border-radius: 7px;
  margin-top: 16px;
  font-size: 12px;
  line-height: 1.6;
}
.login {
  min-height: 100dvh;
  background: #e7eadd;
  display: grid;
  place-items: center;
  padding: 24px;
}
.login-card {
  width: min(100%, 480px);
  padding: 42px;
  background: #fff;
  border-radius: 15px;
}
.login-card > .eyebrow {
  margin-top: 48px;
  color: #869276;
}
.login-card h1 {
  font-size: 43px;
  margin: 18px 0;
}
.login-card p {
  font-size: 14px;
  margin: 20px 0 30px;
}
.login-card .button {
  width: 100%;
}
.login-card small {
  display: block;
  color: #969d8d;
  font-size: 11px;
  line-height: 1.8;
  margin-top: 20px;
}
.login-note {
  font-size: 9px;
  letter-spacing: 1.8px;
  color: #7d886d;
  margin-top: 25px;
}
.login {
  align-content: center;
}
@media (min-width: 1700px) {
  .workspace {
    padding: 0 60px;
  }
}
@media (max-width: 1150px) {
  aside {
    width: 190px;
    padding: 28px 18px;
  }
  .workspace {
    margin-left: 190px;
    padding: 0 24px;
  }
  .metric {
    padding: 18px 14px;
  }
  .chart-grid {
    grid-template-columns: 1.4fr 1fr;
  }
  .finance {
    gap: 18px;
  }
  .finance > .pill {
    display: none;
  }
}
@media (max-width: 800px) {
  aside {
    position: relative;
    width: 100%;
    height: auto;
    padding: 17px 20px;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
  aside .wordmark {
    font-size: 28px;
  }
  aside > .eyebrow,
  .sidebar-bottom,
  nav {
    display: none;
  }
  .workspace {
    margin: 0;
    padding: 0 18px;
  }
  header {
    height: 53px;
  }
  .heading {
    padding: 25px 0;
    align-items: flex-start;
  }
  .heading h1 {
    font-size: 27px;
    letter-spacing: -1px;
  }
  .heading .button {
    padding: 12px;
    font-size: 10px;
  }
  .metrics {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  .metric {
    min-height: 138px;
  }
  .metric strong {
    font-size: 27px;
  }
  .chart-grid {
    grid-template-columns: 1fr;
  }
  .chart {
    height: 205px;
  }
  .finance {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
  }
  .panel {
    padding: 18px;
  }
  .source-tabs {
    width: 100%;
    justify-content: space-between;
  }
  .source-tabs button {
    padding: 10px;
    font-size: 10px;
  }
  .dates {
    width: 100%;
    justify-content: space-between;
  }
  .dates label {
    padding: 9px 6px;
  }
  .dates input {
    max-width: 104px;
    font-size: 10px;
  }
  footer {
    flex-direction: column;
    gap: 5px;
  }
  .panel-head > .muted {
    display: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
