/* Auction House / Market — account palette */
.market-search {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}
.market-search input {
  flex: 1 1 220px;
  min-width: 0;
  padding: 0.65rem 0.85rem;
  background: var(--bg-card, #221e17);
  border: 1px solid rgba(232, 226, 212, 0.14);
  border-radius: 3px;
  color: var(--bone, #e8e2d4);
  font: inherit;
}
.market-search input:focus {
  outline: none;
  border-color: var(--patina, #7c8f6a);
}

.stats-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-bottom: 1rem;
}
.stat-chip {
  background: var(--bg-card, #221e17);
  border: 1px solid rgba(232, 226, 212, 0.12);
  border-radius: 3px;
  padding: 0.55rem 0.85rem;
  font-size: 0.82rem;
  color: var(--bone-dim, #a39c8c);
}
.stat-chip strong {
  display: block;
  font-family: var(--font-display, Georgia, serif);
  font-size: 1.15rem;
  color: var(--gold, #c9a227);
  font-weight: 600;
  margin-top: 0.1rem;
}

.item-cell {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 0;
}
.item-icon {
  width: 36px;
  height: 36px;
  object-fit: contain;
  background: rgba(0,0,0,0.25);
  border-radius: 3px;
  flex: 0 0 auto;
}
.item-icon.missing {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  color: var(--bone-dim);
}
.item-title {
  font-family: var(--font-display, Georgia, serif);
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1.2;
}
.item-sub {
  font-size: 0.75rem;
  color: var(--bone-dim, #a39c8c);
}

.price-cell {
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  color: var(--gold, #c9a227);
  text-align: right !important;
  white-space: nowrap;
}
.badge-sale {
  display: inline-block;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding: 0.12rem 0.35rem;
  border-radius: 2px;
  background: rgba(201, 162, 39, 0.2);
  color: #e6c86a;
}
.badge-sale.ep { background: rgba(100, 140, 180, 0.25); color: #a8c4dc; }
.badge-sale.real { background: rgba(168, 80, 58, 0.25); color: #e0a090; }

.clickable { cursor: pointer; }
.clickable:hover .item-title { color: var(--patina, #7c8f6a); }

.hint {
  font-size: 0.85rem;
  color: var(--bone-dim, #a39c8c);
  margin-bottom: 1rem;
}
