.market_intro {
  margin: 10px 0 8px;
  font-size: 12.5px;
}

.market_categories {
  margin-top: 2px;
}

.market_filters {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 10px;
}

.market_filters .economy_select {
  font-size: 14px;
  padding: 8px 10px;
}

.market_grid .it {
  width: 100%;
  font-family: inherit;
  color: inherit;
}

.market_card .price {
  color: var(--gold);
  font-size: 13.5px;
}

.market_card .bon {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.market_card_mine {
  opacity: 0.78;
}

.market_card_mine .bon {
  color: var(--green);
}

.market_more {
  margin-top: 10px;
}

.market_footer {
  position: sticky;
  bottom: calc(-20px - env(safe-area-inset-bottom, 0px));
  z-index: 2;
  margin: 14px -16px 0;
  padding: 10px 16px calc(14px + env(safe-area-inset-bottom, 0px));
  background: var(--soft);
  border-top: 1px solid var(--line);
}

.market_offline {
  display: grid;
  justify-items: center;
  gap: 8px;
  margin-top: 12px;
  padding: 22px 16px;
  text-align: center;
}

.market_offline svg {
  width: 72px;
  height: 72px;
  color: var(--ink2);
}

.market_offline b {
  font-family: var(--f-display);
  font-size: 19px;
}

.market_own_list {
  margin-top: 4px;
}

.market_own_row {
  grid-template-columns: 56px 1fr auto;
}

.market_own_row > div {
  min-width: 0;
}

.market_own_row .muted {
  display: block;
  font-size: 12px;
  line-height: 1.3;
  margin: 2px 0 5px;
}

.market_own_art {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.market_own_art svg {
  width: 56px;
  height: 56px;
}

.market_detail_top {
  display: grid;
  grid-template-columns: 128px 1fr;
  gap: 12px;
  align-items: center;
  margin-bottom: 10px;
}

.market_detail_art {
  width: 128px;
  height: 128px;
  border-radius: 20px;
  border: 2px solid var(--line);
  background: var(--surf);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.market_detail_art.b-comum {
  border-color: #bfebd2;
}

.market_detail_art.b-raro {
  border-color: #bcd8ff;
}

.market_detail_art.b-muitoraro {
  border-color: #ffc2e4;
}

.market_detail_art.b-lendario {
  border-color: #ffd970;
}

.market_detail_art.b-ultimate {
  border-color: #e0243a;
  box-shadow: 0 0 12px rgba(224, 36, 58, 0.5);
}

.market_detail_art svg {
  width: 116px;
  height: 116px;
}

.market_detail_info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.market_detail_info .muted {
  font-size: 12.5px;
  line-height: 1.3;
}

.market_detail_name {
  font-family: var(--f-display);
  font-size: 20px;
  line-height: 1.1;
}

.market_detail_price {
  font-size: 24px;
  color: var(--gold);
}

.market_detail_price svg {
  width: 22px;
  height: 22px;
}

.market_facts {
  padding: 12px;
}

.market_fact_row {
  display: grid;
  grid-template-columns: 1.3fr 1.3fr 0.7fr;
  gap: 6px;
}

.market_fact_row small {
  display: block;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink2);
}

.market_fact_row b {
  font-size: 13.5px;
  line-height: 1.2;
}

.market_chart_empty {
  margin-top: 8px;
  font-size: 12.5px;
}

.market_note {
  margin-top: 10px;
}

.market_price_field {
  margin-top: 12px;
}

.market_actions {
  margin-top: 12px;
}

.market_entry {
  margin: 0 0 12px;
  background: linear-gradient(135deg, rgba(155, 92, 255, 0.32), rgba(20, 12, 26, 0.75));
  border: 2px solid #9b5cff;
  color: inherit;
  font-family: inherit;
}

.market_shop_entry {
  position: absolute;
  left: 10px;
  bottom: 10px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--place-panel);
  color: var(--place-panel-ink);
  border: var(--ui-border) solid var(--ui-edge);
  border-radius: 99px;
  box-shadow: 0 var(--ui-drop) 0 var(--ui-edge);
  padding: 7px 12px 7px 9px;
  font-family: var(--f-display);
  font-size: 14px;
  line-height: 1;
}
.shop-stage-focused .market_shop_entry {
  display: none;
}
.market_shop_entry::after {
  content: "";
  position: absolute;
  inset: -8px -6px;
}
.market_shop_entry:active {
  transform: translateY(2px);
  box-shadow: 0 2px 0 var(--ui-edge);
}
.market_shop_entry svg {
  width: 20px;
  height: 20px;
}

.market_entry .muted {
  display: block;
  font-size: 12.5px;
  line-height: 1.3;
  margin-top: 3px;
}

.market_entry_icon {
  background: #2a1e3f;
  color: var(--ink);
}

.market_friends_entry {
  margin: 12px 12px 0;
  width: calc(100% - 24px);
}

.market_reference_price {
  font-size: 12px;
  font-weight: 900;
  color: var(--gold);
  line-height: 1.2;
}

.market_inventory_row {
  margin-top: 8px;
}

.market_inventory_row .btn.sm::after {
  top: -4.5px;
  bottom: -14px;
}

.market_test_table {
  margin-top: 8px;
}
