I tried changing the version to 0.17.18 and that did not resolve the issue.
However, on closer inspection I see that the CSS in the bundle generated by Esbuild is flattened partly. In production, that is. In development the CSS is completely flattened.
Some examples.
- Not flattened in production
 
# ORIGINAL
.separator {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 14px;
  color: rgb(135, 135, 135);
  margin-block: 6px;
  p {
    font-size: 0.9rem;
    margin-top: -8px;
    letter-spacing: 0.05rem;
  }
  hr {
    border: none;
    height: 2px;
    background-color: rgb(188, 188, 188);
  }
  &.for-auth {
    p {
      margin-top: -3px;
    }
  }
}
# PROD BUNDLE
.separator {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 14px;
    color: #878787;
    margin-block:6px;p {
        font-size: .9rem;
        margin-top: -8px;
        letter-spacing: .05rem;
    }
    hr {
        border: none;
        height: 2px;
        background-color: rgb(188,188,188);
    }
    &.for-auth {
        p {
            margin-top: -3px;
        }
    }
}
# DEV BUNDLE
.separator {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 14px;
  color: rgb(135, 135, 135);
  margin-block: 6px;
}
.separator p {
  font-size: 0.9rem;
  margin-top: -8px;
  letter-spacing: 0.05rem;
}
.separator hr {
  border: none;
  height: 2px;
  background-color: rgb(188, 188, 188);
}
.separator.for-auth p {
  margin-top: -3px;
}
- Partly flattened in production
 
# ORIGINAL
#layout-footer {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  height: var(--layout-footer-height);
  background-color: var(--panda-grey);
  -webkit-box-shadow: 0px 0px 9px 0px rgba(0,0,0,0.29);
  -moz-box-shadow: 0px 0px 9px 0px rgba(0,0,0,0.29);
  box-shadow: 0px 0px 9px 0px rgba(0,0,0,0.29);
  .footer-extention {
    display: none;
    position: absolute;
    bottom: 100%;
    width: 100%;
    padding: 12px;
    background-color: var(--panda-grey);
    color: white;
    .chevron-icon {
      cursor: pointer;
      position: absolute;
      top: 4px;
      right: 4px;
      border-radius: 50%;
      &:hover {
        background-color: #b04539;
      }
    }
    li {
      margin-block: 4px;
    }
  }
  # ... continues
}
# PROD BUNDLE
#layout-footer {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: var(--layout-footer-height);
    background-color: var(--panda-grey);
    -webkit-box-shadow: 0px 0px 9px 0px rgba(0,0,0,.29);
    -moz-box-shadow: 0px 0px 9px 0px rgba(0,0,0,.29);
    box-shadow: 0 0 9px rgba(0,0,0,.29)
}
#layout-footer .footer-extention {
    display: none;
    position: absolute;
    bottom: 100%;
    width: 100%;
    padding: 12px;
    background-color: var(--panda-grey);
    color: #fff;
    li {
        margin-block: 4px;
    }
}
#layout-footer .footer-extention .chevron-icon {
    cursor: pointer;
    position: absolute;
    top: 4px;
    right: 4px;
    border-radius: 50%
}
#layout-footer .footer-extention .chevron-icon:hover {
    background-color: #b04539
}
# ... continues
# DEV BUNDLE
#layout-footer {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  height: var(--layout-footer-height);
  background-color: var(--panda-grey);
  -webkit-box-shadow: 0px 0px 9px 0px rgba(0, 0, 0, 0.29);
  -moz-box-shadow: 0px 0px 9px 0px rgba(0, 0, 0, 0.29);
  box-shadow: 0px 0px 9px 0px rgba(0, 0, 0, 0.29);
}
#layout-footer .footer-extention {
  display: none;
  position: absolute;
  bottom: 100%;
  width: 100%;
  padding: 12px;
  background-color: var(--panda-grey);
  color: white;
}
#layout-footer .footer-extention .chevron-icon {
  cursor: pointer;
  position: absolute;
  top: 4px;
  right: 4px;
  border-radius: 50%;
}
#layout-footer .footer-extention .chevron-icon:hover {
  background-color: #b04539;
}
#layout-footer .footer-extention li {
  margin-block: 4px;
}
# ... continues