/* BitClac v258: safe token artwork bounds and precise control alignment. */

/*
 * Market rows use a slightly larger transparent box than the artwork itself.
 * This preserves every edge of irregular token marks without bringing back
 * the old square tile.
 */
html body[data-page="home"] .market-pulse-coin-v254 .crypto-rates-logo,
html body[data-page="home"] .market-pulse-coin-v254 .crypto-rates-logo:hover,
html body[data-page="home"] .crypto-market-table tbody tr:hover .crypto-rates-logo,
html body[data-page="home"] .crypto-market-table tbody tr:focus-visible .crypto-rates-logo {
  box-sizing: border-box !important;
  width: 30px !important;
  height: 30px !important;
  min-width: 30px !important;
  min-height: 30px !important;
  flex: 0 0 30px !important;
  display: grid !important;
  place-items: center !important;
  overflow: visible !important;
  padding: 2px !important;
  border: 0 !important;
  border-radius: 0 !important;
  outline: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  filter: none !important;
  transform: none !important;
  isolation: auto !important;
}

html body[data-page="home"] .market-pulse-coin-v254 .crypto-rates-logo::before {
  display: none !important;
  content: none !important;
}

html body[data-page="home"] .market-pulse-coin-v254 .crypto-rates-logo img {
  box-sizing: border-box !important;
  width: 26px !important;
  height: 26px !important;
  min-width: 0 !important;
  min-height: 0 !important;
  max-width: 26px !important;
  max-height: 26px !important;
  display: block !important;
  overflow: visible !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  outline: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  object-fit: contain !important;
  object-position: center !important;
  transform: none !important;
  filter: drop-shadow(0 0 .65px rgba(235, 241, 248, .42)) !important;
}

html body[data-page="home"] .market-pulse-coin-v254 .crypto-rates-logo.is-fallback {
  overflow: hidden !important;
  padding: 2px !important;
}

html body[data-page="home"] .market-pulse-coin-v254 .crypto-rates-logo-text {
  inset: 2px !important;
  width: auto !important;
  height: auto !important;
  overflow: hidden !important;
  font-size: 8px !important;
  line-height: 1 !important;
}

/* Replace the native edge-hugging arrow with an inset chevron. */
html body[data-page="home"] .market-pulse-category-filter-v254 {
  position: relative !important;
}

html body[data-page="home"] .market-pulse-category-filter-v254 select {
  appearance: none !important;
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  padding-right: 44px !important;
  background-image: none !important;
}

html body[data-page="home"] .market-pulse-category-filter-v254::after {
  position: absolute;
  right: 17px;
  bottom: 17px;
  width: 7px;
  height: 7px;
  border-right: 2px solid #dbe3ec;
  border-bottom: 2px solid #dbe3ec;
  content: "";
  pointer-events: none;
  transform: rotate(45deg);
  transform-origin: center;
}

/* The selected token on the home liquidation map stays raw, but is readable. */
html body[data-page="home"] .home-coin-summary-v244 {
  grid-template-columns: 48px minmax(220px, 1fr) auto !important;
}

html body[data-page="home"] .home-coin-summary-v244 .crypto-rates-main-coin {
  width: 48px !important;
  min-width: 48px !important;
  display: grid !important;
  place-items: center !important;
  overflow: visible !important;
}

html body[data-page="home"] .home-selected-token-v257 {
  box-sizing: border-box !important;
  width: 42px !important;
  height: 42px !important;
  min-width: 42px !important;
  min-height: 42px !important;
  max-width: 42px !important;
  max-height: 42px !important;
  display: block !important;
  overflow: visible !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  outline: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  filter: none !important;
  object-fit: contain !important;
  object-position: center !important;
  pointer-events: none !important;
  cursor: default !important;
  transform: none !important;
}

html body[data-page="home"] .home-selected-token-v257-fallback {
  width: 42px !important;
  height: 42px !important;
  min-width: 42px !important;
  min-height: 42px !important;
  display: grid !important;
  place-items: center !important;
  overflow: hidden !important;
  padding: 2px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  pointer-events: none !important;
}

@media (max-width: 760px) {
  html body[data-page="home"] .home-coin-summary-v244 {
    grid-template-columns: 44px minmax(0, 1fr) !important;
  }

  html body[data-page="home"] .home-coin-summary-v244 .crypto-rates-main-coin {
    width: 44px !important;
    min-width: 44px !important;
  }

  html body[data-page="home"] .home-selected-token-v257,
  html body[data-page="home"] .home-selected-token-v257-fallback {
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
    min-height: 40px !important;
    max-width: 40px !important;
    max-height: 40px !important;
  }
}
