.intensity-control {
  display: grid;
  grid-template-columns: auto 46px max-content 46px auto;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: -2px 0 14px;
}

.intensity-edge {
  color: #725f55;
  font-size: 17px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  text-transform: lowercase;
}

.intensity-arrow {
  min-width: 46px;
  min-height: 42px;
  padding: 6px;
  font-size: 24px;
  line-height: 1;
}

.intensity-levels {
  display: flex;
  justify-content: center;
  gap: 8px;
}

.intensity-levels span {
  display: grid;
  place-items: center;
  flex: 0 0 52px;
  width: 52px;
  height: 52px;
  color: #725f55;
  background: #f3eeee;
  border: 1px solid #ddcfca;
  border-radius: 8px;
  padding: 0;
  font-size: 20px;
  font-weight: 800;
  transition: color .15s, background .15s, border-color .15s;
}

.intensity-levels span.is-active {
  color: #fff;
  background: #48220f;
  border-color: #00c982;
  box-shadow: inset 0 0 0 1px #00c982;
}

@media (width <= 520px) {
  .intensity-control {
    grid-template-columns: 40px max-content 40px;
    justify-content: center;
    gap: 6px;
  }

  .intensity-edge {
    grid-row: 2;
    margin-top: 1px;
    font-size: 16px;
  }

  .intensity-edge-slow {
    grid-column: 1 / 2;
    justify-self: start;
  }

  .intensity-edge-active {
    grid-column: 3 / 4;
    justify-self: end;
  }

  .intensity-arrow {
    min-width: 40px;
    min-height: 40px;
  }

  .intensity-levels {
    gap: 6px;
  }

  .intensity-levels span {
    flex-basis: 46px;
    width: 46px;
    height: 46px;
  }
}
