.container {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
}

.columnsLayout {
  display: flex;
  gap: 0;
  height: 100%;
  min-height: 0;
  overflow: auto;
  align-items: stretch;
}

.column {
  flex: 1 1 0;
  min-width: 320px;
  padding: 0 16px;
  overflow: visible;

  &:first-child {
    padding-left: 0;
  }

  &:last-child {
    padding-right: 0;
  }
}

.columnHeader {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  line-height: 1.3;
  color: var(--bit-text-color-light, #8b8d98);
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--bit-border-color-lightest, rgba(0, 0, 0, 0.06));
}

.columnDivider {
  width: 1px;
  background: var(--bit-border-color-lightest, rgba(0, 0, 0, 0.08));
  flex-shrink: 0;
  margin: 0 8px;
}

.controlsList {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 14px 12px;
  align-items: start;
}

.controlRow {
  display: block;
  min-width: 0;
  margin: 0;
  padding: 0;
}

.controlRowWide {
  grid-column: 1 / -1;
}

.controlMain {
  display: grid;
  grid-template-rows: auto minmax(34px, auto);
  align-content: start;
  row-gap: 6px;
  flex: 1;
  min-width: 0;
}

.controlInput {
  min-width: 0;
}

.controlLabel {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 0;
  min-height: 20px;

  label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    color: var(--bit-text-color-light, #8b8d98);
  }
}

.sourceTag {
  font-size: 10px;
  line-height: 14px;
  padding: 1px 5px;
  border-radius: 3px;
  text-transform: capitalize;
  font-weight: 500;
}

.tagCommon {
  background: rgba(108, 92, 231, 0.08);
  color: var(--bit-accent-color, #6c5ce7);
}

.tagBase {
  background: rgba(255, 152, 0, 0.08);
  color: #e65100;
}

.tagCompare {
  background: rgba(33, 150, 243, 0.08);
  color: #1565c0;
}

.loader {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  color: var(--skeleton-color, #e0e0e0);
}

@media (max-width: 900px) {
  .column {
    min-width: 240px;
  }

  .controlsList {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}

.emptyState {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 32px 16px;
  text-align: center;
}

.emptyStateIconWrap {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--bit-border-color-lightest, rgba(0, 0, 0, 0.04));
  display: flex;
  align-items: center;
  justify-content: center;
}

.emptyStateIcon {
  width: 18px;
  height: 18px;
  color: var(--bit-text-color-light, #8b8d98);
}

.emptyStateText {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.emptyStateTitle {
  font-size: 12px;
  font-weight: 600;
  color: var(--on-background-color, #1c2024);
}

.emptyStateSubtitle {
  font-size: 12px;
  color: var(--bit-text-color-light, #8b8d98);
  line-height: 1.5;
}
