:root {
  --ink:#17241e;
  --muted:#69756f;
  --cream:#f5f3ec;
  --green:#1f6647;
  --lime:#d8ef63;
  --line:#dfe4df;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: Arial, sans-serif;
}

.shell {
  display: grid;
  grid-template-columns: 255px 1fr;
  min-height: 100vh;
}

aside {
  background: #173b2d;
  color: white;
  padding: 28px 20px;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
}

.brand {
  display: flex;
  gap: 11px;
  align-items: center;
  margin-bottom: 42px;
}

.brand > b {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--lime);
  color: #173b2d;
  font: 800 22px Georgia;
}

.brand strong, .brand small {
  display: block;
}

.brand small {
  font-size: 9px;
  color: #9ab1a6;
  margin-top: 3px;
}

nav {
  display: grid;
  gap: 5px;
}

.navstep {
  border: 0;
  background: transparent;
  color: #a0b4aa;
  padding: 12px;
  text-align: left;
  border-radius: 8px;
  display: flex;
  gap: 11px;
  align-items: center;
}

.navstep > b {
  border: 1px solid #587166;
  border-radius: 50%;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  font-size: 10px;
}

.navstep span {
  font-weight: 700;
}

.navstep small {
  display: block;
  font-weight: 400;
  opacity: 0.6;
}

.navstep.active {
  background: #24533f;
  color: white;
}

.navstep.active > b {
  background: var(--lime);
  color: #173b2d;
}

.navstep.done > b {
  background: white;
  color: #173b2d;
}

.cash {
  margin-top: auto;
  background: #214b39;
  border: 1px solid #396150;
  padding: 15px;
  border-radius: 10px;
}

.cash small, .cash span {
  display: block;
  font-size: 9px;
  color: #a9bbb3;
}

.cash strong {
  font-size: 23px;
}

.cash i {
  display: block;
  height: 5px;
  background: #456755;
  margin: 10px 0;
}

.cash em {
  display: block;
  height: 100%;
  background: var(--lime);
}

#reset {
  border: 0;
  background: none;
  color: #adc0b7;
  text-align: left;
  margin-top: 12px;
}

main {
  min-width: 0;
}

header {
  height: 92px;
  background: white;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 40px;
  position: sticky;
  top: 0;
  z-index: 3;
}

header small, section > label, .panel > label {
  font-size: 9px;
  letter-spacing: 0.14em;
  font-weight: 800;
  color: #78827d;
}

h1, h2, h3 {
  font-family: Georgia, serif;
}

h1 {
  font-size: 24px;
  margin: 4px 0;
}

header button {
  border: 0;
  border-radius: 6px;
  padding: 11px 17px;
  font-weight: 700;
}

#next, #run {
  background: var(--green);
  color: white;
}

#help {
  padding: 11px 15px;
  margin-right: 6px;
}

section {
  display: none;
  padding: 38px 40px 60px;
  max-width: 1400px;
  margin: auto;
}

section.active {
  display: block;
}

.intro {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 30px;
  margin-bottom: 30px;
}

.intro h2 {
  font-size: 29px;
  margin: 0;
}

.intro p {
  max-width: 570px;
  color: var(--muted);
  margin: 0;
}

.grid {
  display: grid;
  gap: 13px;
  margin: 11px 0 25px;
}

.four {
  grid-template-columns: repeat(4, 1fr);
}

.three {
  grid-template-columns: repeat(3, 1fr);
}

.two {
  grid-template-columns: 1fr 1fr;
}

.cardx, .product, .channel, .panel, .kpis > div {
  background: white;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 17px;
}

.cardx, .channel {
  cursor: pointer;
}

.cardx.selected, .product.selected, .channel.selected {
  border: 2px solid var(--green);
  padding: 16px;
  box-shadow: 0 5px 18px #195a3012;
}

.cardx .icon, .product .icon {
  font-size: 25px;
}

.cardx h3, .product h3, .channel h3 {
  font-size: 17px;
  margin: 12px 0 5px;
}

.cardx p, .product p, .channel p {
  font-size: 11px;
  color: var(--muted);
  min-height: 31px;
}

.stats {
  border-top: 1px solid #edf0ed;
  padding-top: 9px;
  display: flex;
  justify-content: space-between;
  font-size: 10px;
}

.insight {
  display: flex;
  align-items: center;
  gap: 13px;
  background: #e8eee7;
  border-left: 4px solid var(--green);
  padding: 14px 18px;
}

.insight p {
  margin: 3px 0;
  color: var(--muted);
  font-size: 11px;
}

.insight em {
  margin-left: auto;
  background: white;
  border-radius: 20px;
  padding: 6px 11px;
  font-style: normal;
  font-weight: 800;
  color: var(--green);
}

.product .top {
  display: flex;
  justify-content: space-between;
}

.toggle {
  width: 35px;
  height: 20px;
  padding: 3px;
  border-radius: 20px;
  background: #ccd3ce;
}

.toggle:after {
  content: "";
  display: block;
  width: 14px;
  height: 14px;
  background: white;
  border-radius: 50%;
}

.selected .toggle {
  background: var(--green);
}

.selected .toggle:after {
  margin-left: 15px;
}

.controls {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.controls label, .panel label {
  font-size: 9px;
  color: var(--muted);
  font-weight: 700;
}

.controls input, select {
  width: 100%;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 5px;
  margin-top: 4px;
}

.totals {
  background: #173b2d;
  color: white;
  padding: 17px 21px;
  border-radius: 9px;
  display: flex;
  gap: 55px;
  align-items: center;
}

.totals small, .totals strong {
  display: block;
}

.totals strong {
  font-size: 21px;
}

.totals span {
  margin-left: auto;
  color: #aec0b7;
  font-size: 11px;
}

.campaign {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  gap: 18px;
}

.channel {
  display: grid;
  grid-template-columns: 33px 1fr auto;
  gap: 9px;
}

.channel h3 {
  margin: 0;
}

.channel p {
  margin: 3px 0;
}

.range {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 8px 0 22px;
}

.range input {
  accent-color: var(--green);
}

.forecast {
  background: #edf3e8;
  padding: 16px;
  border-radius: 7px;
}

.forecast small, .forecast span, .forecast strong {
  display: block;
}

.forecast strong {
  font-size: 26px;
  color: var(--green);
}

.banner {
  background: #173b2d;
  color: white;
  padding: 24px 28px;
  border-radius: 11px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.banner h2 {
  margin: 5px 0;
}

.banner p {
  color: #afc1b8;
  margin: 0;
}

.banner i {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--lime);
  margin-right: 7px;
}

#run {
  border: 0;
  border-radius: 6px;
  padding: 13px 18px;
  background: var(--lime);
  color: #173b2d;
  font-weight: 800;
}

.kpis {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin: 16px 0;
}

.kpis span, .kpis small {
  display: block;
  color: var(--muted);
  font-size: 10px;
}

.kpis strong {
  display: block;
  font: 600 24px Georgia;
  margin: 5px 0;
}

.dash {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 13px;
}

#chart {
  height: 250px;
}

.decisions {
  display: grid;
  gap: 7px;
}

.decisions button {
  background: white;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 10px;
  text-align: left;
  font-weight: 700;
}

.decisions button.selected {
  border-color: var(--green);
  background: #eef4ed;
}

.decisions small {
  display: block;
  color: var(--muted);
}

.journal {
  margin-top: 13px;
}

#log {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 9px;
}

.log {
  border-left: 3px solid var(--green);
  background: #f6f7f3;
  padding: 11px;
}

.log small, .log strong {
  display: block;
}

.log p {
  font-size: 10px;
  margin: 5px 0;
}

.negative {
  color: #b74c38 !important;
}

@media (max-width: 900px) {
  .shell {
    grid-template-columns: 1fr;
  }

  aside {
    height: auto;
    position: static;
  }

  nav {
    grid-template-columns: repeat(4, 1fr);
  }

  .cash, #reset {
    display: none;
  }

  .four, .three {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 650px) {
  header, section {
    padding-left: 17px;
    padding-right: 17px;
  }

  .intro {
    display: block;
  }

  .intro p {
    margin-top: 8px;
  }

  .four, .three, .two, .campaign, .kpis, .dash, #log {
    grid-template-columns: 1fr;
  }

  .totals {
    gap: 15px;
    flex-wrap: wrap;
  }

  .totals span {
    margin: 0;
  }

  nav {
    grid-template-columns: 1fr 1fr;
  }
}