.crm-core [role="tabpanel"][hidden] {
  display: none;
}
.crm-core-overview[hidden] {
  display: none;
}
.crm-core-tabs .crm-match-entry {
  margin-left: auto;
  color: #0b827b;
}
.crm-core-tabs .crm-match-entry[aria-selected="true"] {
  color: #0b827b;
  border-color: #0b827b;
}
.creator-matching {
  display: grid;
  gap: 18px;
  min-width: 0;
}
.match-intro,
.match-section-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
}
.match-intro h3 {
  font-size: 21px;
  letter-spacing: -0.03em;
  margin: 7px 0;
}
.match-intro p,
.match-section-title p {
  margin: 0;
  color: #66758b;
  line-height: 1.7;
  font-size: 12px;
}
.match-version,
.match-count {
  flex-shrink: 0;
  padding: 7px 10px;
  border: 1px solid #bce0dc;
  border-radius: 6px;
  color: #0b827b;
  font-size: 11px;
  background: #f2fbf9;
}
.match-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding: 0;
  margin: 0;
  list-style: none;
  border-bottom: 1px solid #dce6ed;
}
.match-steps li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 0;
  color: #7a8799;
  font-size: 12px;
}
.match-steps b {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  background: #edf1f5;
  border-radius: 50%;
  font:
    600 12px ui-monospace,
    monospace;
}
.match-steps .is-ready {
  color: #0b827b;
}
.match-steps .is-ready b {
  color: #fff;
  background: #0b827b;
}
.match-panel {
  min-width: 0;
  padding: 20px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
}
.match-section-title {
  margin-bottom: 18px;
}
.match-section-title h3 {
  margin: 0 0 6px;
  font-size: 16px;
}
.match-section-title .button {
  flex-shrink: 0;
}
.match-input-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.creator-matching label:not(.match-product-tag) {
  display: grid;
  min-width: 0;
  gap: 7px;
  margin: 0;
}
.creator-matching label > span:first-child {
  font-size: 11px;
  color: #617086;
}
.creator-matching input:not([type="checkbox"]),
.creator-matching select,
.creator-matching textarea {
  width: 100%;
  min-width: 0;
  min-height: 38px;
  padding: 9px 11px;
  border: 1px solid #dce4ee;
  border-radius: 7px;
  color: #102039;
  background: #fff;
  font: inherit;
  font-size: 12px;
  box-sizing: border-box;
}
.creator-matching textarea {
  resize: vertical;
  line-height: 1.8;
}
.match-full,
.match-source {
  grid-column: 1 / -1;
}
.match-source,
.match-rule-note {
  font-size: 11px;
  color: #66758b;
  line-height: 1.8;
  margin: 0;
  overflow-wrap: anywhere;
}
.match-saved {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid #e9eef3;
}
.match-tag-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.match-tag-grid fieldset {
  min-width: 0;
  margin: 0;
  padding: 12px;
  border: 1px solid #dfe9e8;
  border-radius: 8px;
}
.match-tag-grid legend {
  padding: 0 6px;
  color: #0b827b;
  font-size: 12px;
  font-weight: 600;
}
.creator-matching .match-product-tag {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 7px 0;
  cursor: pointer;
}
.match-product-tag input {
  margin-top: 2px;
}
.match-product-tag span {
  min-width: 0;
}
.match-product-tag strong,
.match-product-tag small {
  display: block;
  overflow-wrap: anywhere;
}
.match-product-tag strong {
  color: #20354b;
  font-size: 12px;
}
.match-product-tag small {
  margin-top: 4px;
  color: #718195;
  font-size: 10px;
  line-height: 1.6;
}
.match-muted {
  color: #8290a2;
  line-height: 1.7;
  font-size: 12px;
  margin: 6px 0;
}
.match-add-tag {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr) auto;
  align-items: end;
  gap: 10px;
  margin: 16px 0;
}
.match-rules {
  border-top: 1px solid #e8edf3;
  padding: 16px 0;
}
.match-rules summary {
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  color: #364b64;
}
.match-rules .match-input-grid {
  margin: 16px 0;
}
.match-rule-note + .match-rule-note {
  margin-top: 7px;
}
.match-confirm {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 16px;
  border-top: 1px solid #e8edf3;
}
.match-confirm > span {
  margin-right: auto;
  font-size: 11px;
  color: #718195;
}
.match-notice {
  padding: 14px 16px;
  background: #fff9ed;
  border: 1px solid #f2dfb7;
  color: #846021;
  border-radius: 8px;
  font-size: 12px;
  line-height: 1.8;
}
.match-result-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-bottom: 16px;
}
.match-result-tabs button {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 13px;
  border: 1px solid #e0e7ef;
  border-radius: 7px;
  background: #fff;
  color: #66758b;
  font: inherit;
  cursor: pointer;
}
.match-result-tabs button[aria-pressed="true"] {
  color: #0b827b;
  border-color: #91c9c1;
  background: #f1faf8;
}
.match-result-tabs b {
  font:
    600 13px ui-monospace,
    monospace;
}
.match-result-toolbar {
  display: flex;
  align-items: end;
  flex-wrap: wrap;
  gap: 12px;
  padding: 14px;
  margin: 0 -4px 16px;
  background: #f5f8fb;
  border-radius: 8px;
}
.match-result-toolbar label:first-child {
  flex: 1;
  min-width: 180px;
}
.match-result-toolbar > span {
  margin: 0 auto 12px 0;
  font-size: 12px;
  color: #617086;
}
.match-result-list {
  display: grid;
  gap: 12px;
}
.match-result-card {
  min-width: 0;
  padding: 18px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
}
.match-person {
  display: flex;
  align-items: center;
  gap: 12px;
}
.match-person > div:not(.match-score) {
  min-width: 0;
}
.match-person strong {
  font-size: 14px;
  overflow-wrap: anywhere;
}
.match-person small {
  display: block;
  margin-top: 5px;
  color: #718195;
  font-size: 11px;
  overflow-wrap: anywhere;
}
.match-evidence-level {
  display: block;
  margin-top: 7px;
  color: #0b827b;
  font-size: 10px;
}
.match-score {
  margin-left: auto;
  text-align: right;
  flex-shrink: 0;
}
.match-score strong {
  font:
    700 30px ui-monospace,
    monospace;
  color: #0b827b;
}
.match-score small {
  display: inline;
  margin-left: 4px;
}
.match-dimension-bars {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 18px 0;
}
.match-dimension-bars > div {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 6px;
  font-size: 10px;
  color: #66758b;
}
.match-dimension-bars progress {
  grid-column: 1 / -1;
  grid-row: 2;
  width: 100%;
  height: 5px;
  border: 0;
  appearance: none;
  border-radius: 4px;
  overflow: hidden;
  background: #e8eff1;
}
.match-dimension-bars progress::-webkit-progress-bar {
  background: #e8eff1;
}
.match-dimension-bars progress::-webkit-progress-value {
  background: #198f84;
}
.match-dimension-bars progress::-moz-progress-bar {
  background: #198f84;
}
.match-reasons,
.match-conflict,
.match-warning {
  font-size: 11px;
  line-height: 1.8;
  overflow-wrap: anywhere;
  margin: 8px 0;
}
.match-reasons {
  color: #52677e;
}
.match-conflict {
  color: #b54444;
}
.match-warning {
  color: #997024;
}
.match-card-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  margin-top: 12px;
}
.match-detail {
  padding: 20px;
  color: #52677e;
  font-size: 12px;
  line-height: 1.8;
}
.match-detail section {
  padding: 12px 0;
  border-top: 1px solid #e2e8f0;
}
.match-detail h3 {
  color: #0b827b;
  font-size: 14px;
  margin: 0 0 8px;
}
.match-detail p {
  overflow-wrap: anywhere;
}
.match-detail strong,
.match-detail p > span {
  display: block;
}
@media (max-width: 1000px) {
  .match-intro,
  .match-section-title {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }
  .match-dimension-bars {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 600px) {
  .crm-core-tabs {
    gap: 15px;
  }
  .crm-core-tabs button {
    font-size: 13px;
  }
  .match-panel {
    padding: 14px;
  }
  .match-input-grid,
  .match-tag-grid,
  .match-add-tag {
    grid-template-columns: minmax(0, 1fr);
  }
  .match-steps li {
    align-items: flex-start;
    flex-direction: column;
    font-size: 11px;
    gap: 7px;
  }
  .match-result-toolbar {
    padding: 10px;
  }
  .match-result-toolbar label,
  .match-result-toolbar label:first-child {
    width: 100%;
    min-width: 0;
  }
  .match-person {
    gap: 8px;
  }
  .match-score strong {
    font-size: 24px;
  }
  .match-card-actions {
    justify-content: flex-start;
    flex-wrap: wrap;
  }
  .match-confirm {
    justify-content: flex-start;
  }
}
