.exchange-site h2 { margin: 0 0 14px; font-size: 21px; }
.exchange-site-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr)) auto;
  align-items: end;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  margin-bottom: 12px;
}
.exchange-site-form label { display: grid; gap: 5px; color: var(--muted); font-size: 13px; font-weight: 650; }
.exchange-site-form input { height: 38px; font-weight: 400; }
.exchange-site-form button { min-height: 38px; padding-inline: 16px; background: var(--accent); color: #fff; white-space: nowrap; }
.exchange-site-form button:hover { background: #4f308d; }
.exchange-site-list-header { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.exchange-site-list-header h3 { margin: 0; font-size: 15px; }
.exchange-site-reset, .exchange-site-retry { font-size: 13px; }
.exchange-site-status { margin: 5px 0 8px; color: var(--muted); font-size: 13px; }
.exchange-site-results { display: grid; gap: 9px; }
.exchange-site-card { min-width: 0; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.exchange-site-meta { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin-bottom: 9px; }
.exchange-site-meta strong { min-width: 0; overflow-wrap: anywhere; }
.exchange-site-meta time { color: var(--muted); font-size: 12px; white-space: nowrap; }
.exchange-site-pair {
  display: grid;
  grid-template-columns: clamp(112px, 19%, 150px) 24px minmax(0, 1fr);
  grid-template-areas: "wanted-label . offers-label" "wanted-list arrow offers-list";
  align-items: center;
  gap: 4px 8px;
}
.exchange-site-group { display: contents; }
.exchange-site-group strong { align-self: end; font-size: 12px; color: var(--muted); }
.exchange-site-group ul { display: flex; flex-wrap: wrap; min-width: 0; gap: 4px; margin: 0; padding: 0; list-style: none; }
.exchange-site-wanted strong { grid-area: wanted-label; color: var(--accent); }
.exchange-site-wanted ul { grid-area: wanted-list; }
.exchange-site-wanted .exchange-site-species { width: 100%; }
.exchange-site-offers strong { grid-area: offers-label; }
.exchange-site-offers ul { grid-area: offers-list; }
.exchange-site-species { display: flex; align-items: center; min-width: 0; max-width: min(100%, 180px); gap: 4px; padding: 2px 7px 2px 3px; border-radius: 7px; background: #f3f5f7; }
.exchange-site-species img { object-fit: contain; image-rendering: pixelated; flex: none; }
.exchange-site-species span { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 13px; }
.exchange-site-arrow { grid-area: arrow; place-self: center; color: var(--accent); font-size: 18px; line-height: 1; }
.exchange-site-more { display: block; margin: 12px auto; }
.exchange-site-more[hidden] { display: none; }
@media (max-width: 440px) {
  .exchange-site-form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .exchange-site-form button { grid-column: 1/-1; }
  .exchange-site-pair { grid-template-columns: minmax(0, 40%) 20px minmax(0, 1fr); column-gap: 6px; }
  .exchange-site-species img { width: 30px; height: 30px; }
}
