[data-wd-demo="style-matched-catalogue-search"] .sm-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 18px;
  margin-bottom: 12px;
  align-items: flex-end;
}

[data-wd-demo="style-matched-catalogue-search"] .sm-field {
  display: grid;
  gap: 5px;
}

[data-wd-demo="style-matched-catalogue-search"] .sm-region {
  width: 180px;
}

[data-wd-demo="style-matched-catalogue-search"] .sm-desc {
  min-height: 68px;
  margin-bottom: 8px;
}

[data-wd-demo="style-matched-catalogue-search"] .sm-will,
[data-wd-demo="style-matched-catalogue-search"] .sm-query,
[data-wd-demo="style-matched-catalogue-search"] .sm-strip,
[data-wd-demo="style-matched-catalogue-search"] .sm-relax,
[data-wd-demo="style-matched-catalogue-search"] .sm-region-copy,
[data-wd-demo="style-matched-catalogue-search"] .sm-rules p {
  margin: 0 0 8px;
}

[data-wd-demo="style-matched-catalogue-search"] .sm-will {
  font-size: 12.5px;
  color: var(--wd-muted);
}

[data-wd-demo="style-matched-catalogue-search"] .sm-pick.is-on {
  background: var(--wd-primary);
  color: #fff;
}

[data-wd-demo="style-matched-catalogue-search"] .sm-query {
  font-size: 13px;
  color: var(--wd-text);
}

[data-wd-demo="style-matched-catalogue-search"] .sm-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 10px;
}

[data-wd-demo="style-matched-catalogue-search"] .sm-card {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  text-align: left;
  padding: 8px;
  border-radius: 8px;
  border: 1px solid var(--wd-border);
  background: var(--wd-surface);
  color: var(--wd-text);
  font: inherit;
  cursor: pointer;
}

[data-wd-demo="style-matched-catalogue-search"] .sm-card.is-picked {
  border-color: #6ea8fe;
  box-shadow: 0 0 0 1px #6ea8fe;
}

[data-wd-demo="style-matched-catalogue-search"] .sm-swatch {
  height: 52px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

[data-wd-demo="style-matched-catalogue-search"] .sw-rose { background: #6e3b4a; color: #f8dbe3; }
[data-wd-demo="style-matched-catalogue-search"] .sw-ink { background: #243044; color: #d5e2f5; }
[data-wd-demo="style-matched-catalogue-search"] .sw-plum { background: #4c3d66; color: #efe4fb; }
[data-wd-demo="style-matched-catalogue-search"] .sw-blue { background: #1d4e89; color: #d7e8ff; }
[data-wd-demo="style-matched-catalogue-search"] .sw-teal { background: #0f5f63; color: #d5f6f4; }
[data-wd-demo="style-matched-catalogue-search"] .sw-tan { background: #8a6844; color: #f8ecdc; }
[data-wd-demo="style-matched-catalogue-search"] .sw-lime { background: #3d6b32; color: #e5f6d8; }
[data-wd-demo="style-matched-catalogue-search"] .sw-brown { background: #5c4030; color: #f3e4d6; }
[data-wd-demo="style-matched-catalogue-search"] .sw-navy { background: #1e2a44; color: #d5def2; }
[data-wd-demo="style-matched-catalogue-search"] .sw-wine { background: #6b2d3c; color: #f8d5dc; }
[data-wd-demo="style-matched-catalogue-search"] .sw-sand { background: #8d7a55; color: #f8f1e2; }
[data-wd-demo="style-matched-catalogue-search"] .sw-olive { background: #4d5a32; color: #e7f0d4; }

[data-wd-demo="style-matched-catalogue-search"] .sm-name {
  display: block;
  font-weight: 650;
  font-size: 13px;
  line-height: 1.3;
}

[data-wd-demo="style-matched-catalogue-search"] .sm-meta {
  display: block;
  margin-top: 2px;
  font-size: 11.5px;
  color: var(--wd-muted);
}

[data-wd-demo="style-matched-catalogue-search"] .sm-keep {
  display: none;
  margin-top: 3px;
}

[data-wd-demo="style-matched-catalogue-search"] .sm-card.is-picked .sm-keep {
  display: inline-block;
}

[data-wd-demo="style-matched-catalogue-search"] .sm-strip {
  font-size: 12.5px;
  color: var(--wd-muted);
}

[data-wd-demo="style-matched-catalogue-search"] .sm-stat {
  font-size: 18px;
}

[data-wd-demo="style-matched-catalogue-search"] .sm-id {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 6px 0;
  border-bottom: 1px solid var(--wd-border);
  font-size: 13px;
}

[data-wd-demo="style-matched-catalogue-search"] .sm-id:last-child {
  border-bottom: 0;
}

[data-wd-demo="style-matched-catalogue-search"] .sm-rules p {
  display: flex;
  gap: 8px;
  align-items: baseline;
  font-size: 13px;
}

[data-wd-demo="style-matched-catalogue-search"] .sm-rules .wd-badge {
  flex: none;
  white-space: nowrap;
}

[data-wd-demo="style-matched-catalogue-search"] .wd-log {
  max-height: 96px;
}
