#main-content:has(.crm-core) > .page-header {
  display: none;
}
.crm-core {
  --crm-ink: #102039;
  --crm-muted: #66758b;
  --crm-line: #e2e8f0;
  --crm-blue: #2563eb;
  gap: 14px;
  color: var(--crm-ink);
  font-size: 13px;
}
.crm-core-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 8px 0 4px;
}
.crm-core-header h2 {
  margin: 6px 0;
  font-size: 25px;
  letter-spacing: -0.04em;
}
.crm-core-header p {
  margin: 0;
  color: var(--crm-muted);
  font-size: 13px;
  line-height: 1.7;
}
.crm-header-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  flex-shrink: 0;
}
.crm-core .button {
  min-height: 36px;
  padding: 8px 12px;
  font-size: 12px;
  line-height: 1.4;
  white-space: normal;
}
.crm-core .button:disabled,
.crm-core button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}
.crm-core-overview {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid var(--crm-line);
  border-radius: 14px;
  background: #fff;
}
.crm-core-overview article {
  padding: 12px 18px;
  border-right: 1px solid var(--crm-line);
}
.crm-core-overview article:last-child {
  border: 0;
}
.crm-core-overview span,
.crm-core-overview small {
  display: block;
  color: var(--crm-muted);
  font-size: 12px;
  line-height: 1.5;
}
.crm-core-overview strong {
  display: block;
  margin: 6px 0;
  font:
    700 25px ui-monospace,
    SFMono-Regular,
    monospace;
  letter-spacing: -0.04em;
}
.crm-core-overview article:nth-child(2) strong {
  color: #158b85;
}
.crm-core-tabs {
  display: flex;
  gap: 28px;
  border-bottom: 1px solid var(--crm-line);
}
.crm-core-tabs button {
  padding: 10px 3px;
  border: 0;
  border-bottom: 3px solid transparent;
  background: none;
  color: var(--crm-muted);
  font-size: 15px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
}
.crm-core-tabs button[aria-selected="true"] {
  border-bottom-color: var(--crm-blue);
  color: var(--crm-blue);
}
.crm-core [role="tabpanel"] {
  display: grid;
  gap: 14px;
  min-width: 0;
}
.crm-section-intro,
.crm-operations-intro {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 4px 0;
}
.crm-section-intro h3,
.crm-operations-intro h3,
.crm-results-head h3,
.crm-match-heading h3 {
  margin: 0 0 6px;
  font-size: 16px;
}
.crm-section-intro p,
.crm-operations-intro p,
.crm-match-heading p {
  margin: 0;
  color: var(--crm-muted);
  font-size: 12px;
  line-height: 1.7;
}
.crm-section-intro > div:last-child {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.crm-mode-switch {
  display: flex;
  flex-shrink: 0;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--crm-line);
  border-radius: 9px;
  background: #eef2f7;
}
.crm-mode-switch button {
  padding: 8px 14px;
  border: 0;
  border-radius: 6px;
  background: none;
  color: var(--crm-muted);
  font: inherit;
  cursor: pointer;
}
.crm-mode-switch button[aria-pressed="true"] {
  color: var(--crm-blue);
  background: #fff;
  box-shadow: 0 2px 5px #1020390d;
  font-weight: 700;
}
.crm-filter-panel,
.crm-product-match,
.crm-results {
  min-width: 0;
  border: 1px solid var(--crm-line);
  border-radius: 14px;
  background: #fff;
}
.crm-filter-panel,
.crm-product-match {
  padding: 14px;
}
.crm-filter-line {
  display: grid;
  grid-template-columns: minmax(180px, 1.5fr) repeat(3, minmax(110px, 1fr)) auto;
  gap: 12px;
  align-items: end;
}
.crm-core .crm-search {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 40px;
  padding: 0 12px;
  margin: 0;
  border: 1px solid var(--crm-line);
  border-radius: 8px;
  color: #8b9bb0;
}
.crm-search input {
  width: 100%;
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--crm-ink);
  font: inherit;
  outline: none;
}
.crm-filter-panel label:not(.crm-search),
.crm-product-fields label,
.crm-selection-bar > label:has(select) {
  display: grid;
  gap: 7px;
  min-width: 0;
}
.crm-filter-panel label > span,
.crm-product-fields label > span,
.crm-selection-bar > label > span {
  color: var(--crm-muted);
  font-size: 11px;
  font-weight: 600;
}
.crm-filter-panel select,
.crm-filter-panel input[type="number"],
.crm-product-fields select,
.crm-product-fields input,
.crm-selection-bar select {
  width: 100%;
  min-width: 0;
  min-height: 40px;
  padding: 8px 10px;
  border: 1px solid var(--crm-line);
  border-radius: 8px;
  background: #fff;
  color: var(--crm-ink);
  font: inherit;
  font-size: 12px;
}
.crm-advanced {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  padding-top: 16px;
}
.crm-filter-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 10px;
  margin-top: 10px;
  border-top: 1px solid #edf1f5;
  color: var(--crm-muted);
  font-size: 11px;
}
.crm-filter-footer > div {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.crm-filter-footer select {
  width: auto;
  max-width: 240px;
  min-height: 34px;
}
.crm-product-match {
  background: #f8faff;
  border-left: 3px solid var(--crm-blue);
}
.crm-product-fields {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(220px, 1.6fr) auto;
  gap: 12px;
  align-items: end;
  margin-top: 16px;
}
.crm-analysis-terms {
  margin: 14px 0 0;
  color: #50637d;
  font-size: 11px;
  line-height: 1.7;
  overflow-wrap: anywhere;
}
.crm-results {
  overflow: hidden;
}
.crm-results-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px;
}
.crm-results-head span {
  color: var(--crm-muted);
  font-size: 12px;
}
.crm-selection-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  padding: 12px 18px;
  background: #f6f8fb;
  border-block: 1px solid var(--crm-line);
  font-size: 12px;
}
.crm-selection-bar > label {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0;
}
.crm-selection-bar > span {
  color: var(--crm-muted);
  margin-right: auto;
}
.crm-selection-bar > small {
  flex-basis: 100%;
  color: var(--crm-muted);
  line-height: 1.6;
}
.crm-selection-bar > label:has(select) {
  display: flex;
  align-items: center;
}
.crm-selection-bar > label select {
  width: 150px;
  min-height: 34px;
}
.crm-selection-bar .button {
  min-height: 34px;
  padding: 7px 10px;
}
.crm-core input[type="checkbox"] {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  accent-color: var(--crm-blue);
}
.crm-table-scroll {
  max-width: 100%;
  overflow-x: auto;
}
.crm-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  min-width: 850px;
}
.crm-table th {
  padding: 12px;
  border-bottom: 1px solid var(--crm-line);
  background: #fafbfd;
  color: var(--crm-muted);
  font-size: 11px;
  text-align: left;
}
.crm-table th:first-child {
  width: 52px;
}
.crm-table th:nth-child(2) {
  width: 19%;
}
.crm-table th:nth-child(3) {
  width: 20%;
}
.crm-table th:nth-child(4) {
  width: 12%;
}
.crm-table th:nth-child(5) {
  width: 12%;
}
.crm-table th:last-child {
  width: 162px;
}
.crm-table td {
  padding: 15px 12px;
  border-bottom: 1px solid #edf1f5;
  vertical-align: middle;
  overflow-wrap: anywhere;
  font-size: 12px;
}
.crm-table tbody tr:hover {
  background: #fafcff;
}
.crm-table td small {
  display: block;
  margin-top: 6px;
  color: var(--crm-muted);
  font-size: 11px;
  line-height: 1.6;
}
.crm-table td:last-child .button {
  min-height: 30px;
  margin: 2px 4px 2px 0;
  padding: 5px 8px;
  font-size: 11px;
}
.crm-profile-link {
  padding: 0;
  border: 0;
  background: none;
  color: var(--crm-ink);
  font-size: 13px;
  font-weight: 700;
  font-family: inherit;
  text-align: left;
  cursor: pointer;
}
.crm-profile-link:hover {
  color: var(--crm-blue);
}
.crm-channel {
  display: inline-block;
  margin-top: 6px;
  padding: 3px 6px;
  background: #f0f4fa;
  color: #526784;
  border-radius: 4px;
  font-size: 10px;
}
.crm-tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}
.crm-tag-list button {
  max-width: 100%;
  padding: 4px 7px;
  border: 1px solid #dbe6f6;
  border-radius: 5px;
  color: #45638e;
  background: #f4f7fc;
  font: inherit;
  font-size: 10px;
  overflow-wrap: anywhere;
  cursor: pointer;
}
.crm-match-score {
  color: var(--crm-blue);
  font:
    700 15px ui-monospace,
    monospace;
}
.crm-muted {
  color: #94a3b8;
}
.crm-delete {
  margin-left: 3px;
  padding: 5px 1px;
  border: 0;
  color: #b35a5a;
  background: none;
  font: inherit;
  font-size: 11px;
  cursor: pointer;
}
.crm-pagination {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  padding: 14px 18px;
  font-size: 12px;
  color: var(--crm-muted);
}
.crm-pagination > span:first-child {
  margin-right: auto;
}
.crm-empty {
  display: grid;
  justify-items: center;
  gap: 10px;
  padding: 48px 20px;
  color: var(--crm-muted);
  text-align: center;
}
.crm-empty h3 {
  margin: 0;
  color: var(--crm-ink);
  font-size: 16px;
}
.crm-empty p {
  max-width: 460px;
  margin: 0 0 6px;
  font-size: 12px;
  line-height: 1.7;
}
.crm-profile-details,
.crm-suggestion-dialog {
  padding: 20px;
}
.crm-profile-details > div:not(.modal-footer) {
  display: grid;
  grid-template-columns: 100px minmax(0, 1fr);
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid #edf1f5;
  font-size: 12px;
}
.crm-profile-details span {
  color: var(--crm-muted);
}
.crm-profile-details strong {
  min-width: 0;
  font-weight: 500;
  overflow-wrap: anywhere;
}
.crm-suggestion-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px 0;
  border-bottom: 1px solid var(--crm-line);
  cursor: pointer;
}
.crm-suggestion-row p {
  margin: 8px 0 0;
  color: var(--crm-muted);
  font-size: 11px;
  line-height: 1.7;
}
.crm-suggestion-row b {
  color: var(--crm-blue);
}
.crm-core button:focus-visible,
.crm-core select:focus-visible,
.crm-core input:focus-visible {
  outline: 2px solid #84a8ff;
  outline-offset: 3px;
}
@media (max-width: 1200px) {
  .crm-filter-line {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .crm-core .crm-search {
    grid-column: 1 / -1;
  }
  .crm-filter-line > .button {
    justify-self: start;
  }
}
@media (max-width: 900px) {
  .crm-core-header,
  .crm-section-intro,
  .crm-operations-intro {
    align-items: flex-start;
    flex-direction: column;
  }
  .crm-core-overview {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .crm-core-overview article:nth-child(2) {
    border-right: 0;
  }
  .crm-core-overview article:nth-child(-n + 2) {
    border-bottom: 1px solid var(--crm-line);
  }
  .crm-advanced {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .crm-product-fields {
    grid-template-columns: minmax(0, 1fr);
  }
  .crm-product-fields > .button {
    justify-self: start;
  }
  .crm-filter-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}
@media (max-width: 520px) {
  .crm-core {
    gap: 15px;
  }
  .crm-core-header h2 {
    font-size: 24px;
  }
  .crm-header-actions {
    width: 100%;
  }
  .crm-header-actions > .button {
    flex: 1;
  }
  .crm-core-overview article {
    padding: 14px;
  }
  .crm-core-overview strong {
    font-size: 24px;
  }
  .crm-core-overview small {
    font-size: 10px;
  }
  .crm-filter-line,
  .crm-advanced {
    grid-template-columns: minmax(0, 1fr);
  }
  .crm-filter-panel,
  .crm-product-match {
    padding: 14px;
  }
  .crm-filter-footer select {
    width: 100%;
    max-width: 100%;
  }
  .crm-filter-footer > div {
    width: 100%;
  }
  .crm-selection-bar {
    align-items: flex-start;
    padding: 12px;
  }
  .crm-selection-bar > label:has(select) {
    width: 100%;
  }
  .crm-pagination {
    gap: 8px;
    padding: 12px;
    flex-wrap: wrap;
  }
  .crm-pagination > span:first-child {
    width: 100%;
  }
}
