.uc-box {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.95rem;
  margin-bottom: 0.6rem;
}

.uc-box label {
  flex: 0 0 160px;
  font-weight: 500;
}

.uc-box input[type="number"],
.uc-box select {
  height: 2.2rem;
  line-height: 2.2rem;
  font-size: 0.95rem;
  padding: 0 0.5rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  background-color: #fff;
  box-sizing: border-box;
}

.uc-box input[type="number"] {
  width: 90px;
  text-align: right;
  -moz-appearance: textfield;
}

.uc-box input::-webkit-outer-spin-button,
.uc-box input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.uc-box .uc-result {
  font-weight: 600;
  min-width: 80px;
  display: inline-block;
  text-align: right;
  color: #0073aa;
}

.uc-box span {
  font-weight: 600;
  user-select: none;
}

@media (max-width: 480px) {
  .uc-box {
    flex-direction: column;
    align-items: flex-start;
  }
  .uc-box label {
    margin-bottom: 0.2rem;
  }
}





/* Стили для блока плотности */
.uc-density-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.95rem;
  padding: 0.8rem;
  background-color: #f9f9f9;
  border-radius: 4px;
  border: 1px solid #e1e1e1;
}

.uc-density-controls label {
  flex: 0 0 160px;
  font-weight: 500;
  margin: 0;
}

.uc-density-controls input[type="number"] {
  width: 90px;
  height: 2.2rem;
  text-align: right;
}

.uc-density-controls select {
  min-width: 220px;
}

@media (max-width: 768px) {
  .uc-density-controls {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .uc-density-controls select {
    min-width: 200px;
    width: 100%;
  }
}