.csv-column-profiler-shell,
.csv-column-profiler-shell *,
.csv-column-profiler-shell *::before,
.csv-column-profiler-shell *::after {
  box-sizing: border-box;
}

.csv-column-profiler-shell {
  display: grid;
  gap: 24px;
  max-width: 100%;
  min-width: 0;
  overflow-x: clip;
  width: 100%;
}

.csv-column-profiler-page .section-inner {
  max-width: min(var(--max), 100%);
}

.csv-column-profiler-workbench {
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.34fr);
  max-width: 100%;
  min-width: 0;
}

.csv-column-profiler-panel,
.csv-column-profiler-side-panel,
.csv-column-profiler-card {
  background: #ffffff;
  border: 1px solid rgba(23, 32, 31, 0.12);
  border-radius: 8px;
  box-shadow: 0 14px 34px rgba(23, 32, 31, 0.07);
}

.csv-column-profiler-panel {
  display: grid;
  gap: 18px;
  max-width: 100%;
  min-width: 0;
  padding: 22px;
}

.csv-column-profiler-side {
  align-content: start;
  display: grid;
  gap: 14px;
  min-width: 0;
}

.csv-column-profiler-side-panel,
.csv-column-profiler-card {
  display: grid;
  gap: 12px;
  max-width: 100%;
  min-width: 0;
  padding: 18px;
}

.csv-column-profiler-heading,
.csv-column-profiler-subhead {
  align-items: start;
  display: flex;
  gap: 14px;
  justify-content: space-between;
}

.csv-column-profiler-heading h2,
.csv-column-profiler-side-panel h2,
.csv-column-profiler-card h3,
.csv-column-profiler-subhead h3,
.csv-column-profiler-empty h3 {
  color: #17201f;
  line-height: 1.3;
  margin: 0;
}

.csv-column-profiler-heading h2,
.csv-column-profiler-side-panel h2 {
  font-size: 20px;
}

.csv-column-profiler-card h3,
.csv-column-profiler-subhead h3,
.csv-column-profiler-empty h3 {
  font-size: 16px;
}

.csv-column-profiler-heading p,
.csv-column-profiler-side-panel p,
.csv-column-profiler-card p,
.csv-column-profiler-empty p,
.csv-column-profiler-help,
.csv-column-profiler-list li {
  color: #5f6c68;
  line-height: 1.6;
  margin: 0;
  overflow-wrap: anywhere;
}

.csv-column-profiler-chip {
  align-items: center;
  background: #e9f2ff;
  border: 1px solid rgba(43, 91, 143, 0.18);
  border-radius: 8px;
  color: #244f7f;
  display: inline-flex;
  flex: 0 0 auto;
  font-size: 12px;
  font-weight: 850;
  min-height: 30px;
  padding: 5px 9px;
  white-space: nowrap;
}

.csv-column-profiler-field {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.csv-column-profiler-field label,
.csv-column-profiler-check span,
.csv-column-profiler-unlock label {
  color: #263331;
  font-size: 13px;
  font-weight: 850;
}

.csv-column-profiler-field textarea,
.csv-column-profiler-unlock input {
  background: #ffffff;
  border: 1px solid rgba(23, 32, 31, 0.18);
  border-radius: 8px;
  color: #17201f;
  font: inherit;
  min-width: 0;
  padding: 10px 12px;
  width: 100%;
}

.csv-column-profiler-field textarea {
  max-width: 100%;
  min-height: 260px;
  resize: vertical;
}

.csv-column-profiler-options {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.csv-column-profiler-check {
  align-items: center;
  background: #f8faf8;
  border: 1px solid rgba(23, 32, 31, 0.1);
  border-radius: 8px;
  display: flex;
  gap: 10px;
  min-height: 46px;
  padding: 10px 12px;
}

.csv-column-profiler-check input {
  accent-color: #244f7f;
  flex: 0 0 auto;
  height: 18px;
  width: 18px;
}

.csv-column-profiler-field textarea:focus-visible,
.csv-column-profiler-unlock input:focus-visible,
.csv-column-profiler-check input:focus-visible,
.csv-column-profiler-button:focus-visible,
.csv-column-profiler-buy:focus-visible {
  outline: 2px solid #244f7f;
  outline-offset: 2px;
}

.csv-column-profiler-actions,
.csv-column-profiler-export-actions,
.csv-column-profiler-unlock-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.csv-column-profiler-button,
.csv-column-profiler-buy {
  align-items: center;
  background: #17201f;
  border: 1px solid #17201f;
  border-radius: 8px;
  color: #ffffff;
  cursor: pointer;
  display: inline-flex;
  font: inherit;
  font-weight: 800;
  justify-content: center;
  min-height: 42px;
  padding: 10px 14px;
  text-decoration: none;
}

.csv-column-profiler-button.is-secondary,
.csv-column-profiler-buy.is-secondary {
  background: #ffffff;
  color: #17201f;
}

.csv-column-profiler-button:disabled {
  background: #edf2ef;
  border-color: #d5ded9;
  color: #7a8581;
  cursor: not-allowed;
}

.csv-column-profiler-status {
  align-items: center;
  color: #5f6c68;
  display: inline-flex;
  line-height: 1.5;
  min-height: 42px;
}

.csv-column-profiler-alert,
.csv-column-profiler-error {
  background: #fff4e6;
  border: 1px solid rgba(181, 91, 11, 0.22);
  border-radius: 8px;
  color: #7a3f08;
  line-height: 1.6;
  padding: 12px 14px;
}

.csv-column-profiler-error:empty {
  display: none;
}

.csv-column-profiler-results {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.csv-column-profiler-metric {
  background: #f8faf8;
  border: 1px solid rgba(23, 32, 31, 0.08);
  border-radius: 8px;
  display: grid;
  gap: 5px;
  min-height: 78px;
  padding: 12px;
}

.csv-column-profiler-metric span {
  color: #5f6c68;
  font-size: 12px;
  font-weight: 800;
}

.csv-column-profiler-metric strong {
  color: #17201f;
  font-size: 24px;
  line-height: 1.15;
}

.csv-column-profiler-preview-wrap {
  border: 1px solid rgba(23, 32, 31, 0.12);
  border-radius: 8px;
  min-width: 0;
  overflow: auto;
}

.csv-column-profiler-preview {
  border-collapse: collapse;
  min-width: 760px;
  width: 100%;
}

.csv-column-profiler-preview th,
.csv-column-profiler-preview td {
  border-bottom: 1px solid rgba(23, 32, 31, 0.08);
  color: #263331;
  font-size: 13px;
  line-height: 1.45;
  max-width: 260px;
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
  word-break: break-word;
}

.csv-column-profiler-preview th {
  background: #edf2ef;
  color: #17201f;
  font-weight: 850;
  position: sticky;
  top: 0;
}

.csv-column-profiler-empty {
  background: #f8faf8;
  border: 1px dashed #aebbb5;
  border-radius: 8px;
  display: grid;
  gap: 8px;
  padding: 18px;
}

.csv-column-profiler-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 20px;
}

.csv-column-profiler-unlock {
  display: grid;
  gap: 8px;
}

@media (max-width: 900px) {
  .csv-column-profiler-workbench,
  .csv-column-profiler-options,
  .csv-column-profiler-results {
    grid-template-columns: 1fr;
  }

  .csv-column-profiler-panel,
  .csv-column-profiler-side-panel,
  .csv-column-profiler-card {
    padding: 16px;
  }

  .csv-column-profiler-heading,
  .csv-column-profiler-subhead {
    display: grid;
  }

  .csv-column-profiler-field textarea {
    min-height: 220px;
  }
}

@media (max-width: 560px) {
  .csv-column-profiler-actions .csv-column-profiler-button,
  .csv-column-profiler-export-actions .csv-column-profiler-button,
  .csv-column-profiler-buy,
  .csv-column-profiler-unlock-row .csv-column-profiler-button {
    width: 100%;
  }
}
