.enf-intro h1 { margin: 0 0 8px; font-size: 26px; }
.enf-intro p { margin: 0; max-width: 70ch; }
.hint { font-weight: 400; font-size: 13px; color: var(--muted); }
[hidden] { display: none !important; }

.enf-filters { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px 18px; display: flex; flex-direction: column; gap: 16px; }
.enf-q h2 { margin: 0 0 8px; font-size: 16px; }
.enf-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.enf-chips button {
  border: 1px solid var(--line); background: var(--surface); border-radius: 99px; padding: 6px 14px; font: inherit; font-size: 14px; cursor: pointer; color: var(--text);
}
.enf-chips button[aria-pressed="true"] { background: var(--text); color: var(--bg); border-color: var(--text); }
.enf-chips button span { color: var(--muted); font-size: 12px; }
.enf-chips button[aria-pressed="true"] span { color: inherit; opacity: .7; }
.enf-search { max-width: 520px; position: relative; }
.enf-pieces { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.enf-pieces li { display: flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 12px; padding: 6px 8px; background: var(--surface-2); }
.enf-pieces img { width: 44px; height: 36px; object-fit: contain; background: #fff; border-radius: 6px; }
.enf-pieces b { font-size: 13px; display: block; max-width: 220px; }
.enf-pieces select { font: inherit; font-size: 12px; padding: 2px 4px; border-radius: 6px; border: 1px solid var(--line); background: var(--surface); color: var(--text); max-width: 160px; }
.enf-pieces .rm { border: 0; background: none; color: var(--muted); font-size: 18px; cursor: pointer; }

.enf-results-head h2 { margin: 0; font-size: 19px; }
.enf-results-head p { margin: 4px 0 0; }
.enf-sets { list-style: none; margin: 12px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.enf-sets li { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; display: flex; flex-direction: column; }
.enf-sets .pic { aspect-ratio: 4 / 3; background: #fff; display: block; }
.enf-sets .pic img { width: 100%; height: 100%; object-fit: contain; }
.enf-sets .in { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.enf-sets h3 { margin: 0; font-size: 15px; line-height: 1.25; }
.enf-sets h3 a { color: inherit; text-decoration: none; }
.enf-sets .meta { font-size: 12px; color: var(--muted); }
.enf-sets .match { align-self: flex-start; font-size: 12px; font-weight: 700; border-radius: 99px; padding: 2px 9px; background: var(--surface-2); }
.enf-sets .match.full { background: var(--green-bg); color: var(--green); }
.enf-sets .acts { display: flex; gap: 6px; flex-wrap: wrap; margin-top: auto; }
.enf-sets .acts .btn { padding: 6px 10px; font-size: 13px; }
.enf-sets .had[disabled] { opacity: .8; cursor: default; }
@media (max-width: 520px) {
  .enf-sets { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .enf-sets .acts .btn { flex: 1 1 100%; justify-content: center; }
}
