.ai-match-panel {
  margin: 16px 0;
  padding: 18px;
  border: 1px solid var(--border, #252535);
  border-radius: 12px;
  background: var(--card, #131320);
}
.ai-match-panel h4 { margin: 0; font-size: 17px; color: var(--text, #eeeef5); }
.ai-match-copy { margin: 5px 0 14px; color: var(--muted, #9b9bad); font-size: 13px; line-height: 1.55; }
.ai-match-fields { display: grid; grid-template-columns: minmax(180px, 0.7fr) minmax(260px, 1.3fr); gap: 12px; align-items: end; }
.ai-match-field { display: grid; gap: 6px; min-width: 0; }
.ai-match-field label { color: var(--text, #eeeef5); font-size: 12px; font-weight: 700; }
.ai-match-field select, .ai-match-field textarea {
  width: 100%; min-height: 44px; border: 1px solid var(--border2, #2e2e42); border-radius: 8px;
  padding: 10px 12px; color: var(--text, #eeeef5); background: var(--bg, #08080f); font: inherit;
}
.ai-match-field textarea { min-height: 76px; resize: vertical; }
.ai-match-submit { margin-top: 12px; min-height: 42px; }
.ai-match-status { min-height: 20px; margin: 10px 0 0; color: var(--muted, #9b9bad); font-size: 13px; }
.ai-match-status[data-kind="error"] { color: var(--danger, #ff7777); }
.ai-match-results { display: grid; gap: 8px; margin-top: 12px; }
.ai-match-result { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px; border: 1px solid var(--border, #252535); border-radius: 8px; background: var(--card2, #1a1a2b); }
.ai-match-result strong { display: block; color: var(--text, #eeeef5); }
.ai-match-result p { margin: 4px 0 0; color: var(--muted, #9b9bad); font-size: 12px; line-height: 1.5; }
.ai-match-result .ai-match-price { white-space: nowrap; color: var(--gold, #f4b942); font-weight: 800; }
.ai-match-result button { grid-column: 1 / -1; justify-self: start; }
@media (max-width: 640px) {
  .ai-match-panel { padding: 14px; }
  .ai-match-fields { grid-template-columns: 1fr; }
  .ai-match-result { grid-template-columns: minmax(0, 1fr); }
  .ai-match-result .ai-match-price { white-space: normal; }
}
