/**
 * Vote page shell: last stylesheet in index.html — wins over dex-snippet/snipped.css.
 * Sidebar hook: nav.dex-vote-fixed-nav (see index.html + apply-dex-snippet-nav.mjs).
 * Desktop: fixed to viewport, full visual viewport height; main column scrolls.
 * Chain list imgs: decoding="async" in HTML (not loading="lazy") — lazy inside overflow scroll often defers or skips icons.
 * Files that are real SVG must use .svg extension — .png containing SVG bytes will not render in <img>.
 */
/* /solana/MINT: не показывать заглушку Satoshi до ответа API */
html.dex-vote-token-loading #coin-name,
html.dex-vote-token-loading #coin-symbol,
html.dex-vote-token-loading #coin-avatar {
  visibility: hidden;
}

html {
  min-height: 100dvh;
  height: auto !important;
}

body.chakra-ui-dark {
  background-color: #17171c !important;
  min-height: 100dvh !important;
  height: auto !important;
  overflow-x: hidden !important;
  overflow-y: visible !important;
}

._j {
  position: relative !important;
  display: block !important;
  max-width: none !important;
  width: 100% !important;
  margin: 0 !important;
  padding-left: 0 !important;
  box-sizing: border-box !important;
  min-height: 100dvh !important;
  height: auto !important;
}

/* Tablet/desktop ≥768px */
@media (min-width: 768px) {
  body.chakra-ui-dark ._j {
    padding-left: 210px !important;
  }

  body.chakra-ui-dark ._j > nav.dex-vote-fixed-nav {
    position: fixed !important;
    left: 0 !important;
    top: 0 !important;
    right: auto !important;
    width: 210px !important;
    max-width: 210px !important;
    min-width: 210px !important;
    margin: 0 !important;
    /* Fallbacks then dvh/svh (mobile browser UI) */
    height: 100vh !important;
    min-height: 100vh !important;
    height: 100svh !important;
    min-height: 100svh !important;
    height: 100dvh !important;
    min-height: 100dvh !important;
    max-height: none !important;
    flex: unset !important;
    flex-shrink: unset !important;
    display: flex !important;
    flex-direction: column !important;
    z-index: 100 !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
    background: var(--chakra-colors-blue-1000, #111116) !important;
    border-right: 1px solid var(--chakra-colors-blue-950, #1d1d22) !important;
  }
}

/* Full width of main column (right of sidebar); IPFS Chakra resets strip chip styles from style-g8ynr.css — reassert below */
#dex-metas-slot.custom-mp5mpb,
#dex-metas-slot {
  display: block !important;
  width: 100% !important;
  max-width: none !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  box-sizing: border-box !important;
  position: relative !important;
  z-index: 2 !important;
  pointer-events: auto !important;
  min-height: 1px !important;
}

#dex-metas-slot .custom-1aipeii {
  position: relative;
  overflow: hidden;
  width: 100%;
  min-width: 0;
}

#dex-metas-slot .custom-7boy05 {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  gap: 8px !important;
  width: 100%;
  min-width: 0;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  padding: 4px 0 8px !important;
  scrollbar-width: thin;
  scrollbar-color: rgba(89, 116, 240, 0.4) transparent;
  -webkit-overflow-scrolling: touch;
}

#dex-metas-slot .custom-7boy05::-webkit-scrollbar {
  height: 6px;
}

#dex-metas-slot .custom-7boy05::-webkit-scrollbar-thumb {
  background: rgba(89, 116, 240, 0.35);
  border-radius: 3px;
}

/* Chip “Metas” — late CSS often clears background/border on a.chakra-button */
#dex-metas-slot a.chakra-button.custom-gquqkw {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  flex-shrink: 0 !important;
  padding: 8px 14px !important;
  border-radius: 9999px !important;
  border: 1px solid rgba(89, 116, 240, 0.45) !important;
  background: rgba(89, 116, 240, 0.14) !important;
  color: #f0f4ff !important;
  font-family: "Manrope", sans-serif !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  line-height: 1.25 !important;
  text-decoration: none !important;
  white-space: nowrap !important;
  box-sizing: border-box !important;
  -webkit-appearance: none !important;
  appearance: none !important;
  transition: background 0.15s, border-color 0.15s, opacity 0.15s !important;
}

#dex-metas-slot a.chakra-button.custom-gquqkw:hover {
  background: rgba(89, 116, 240, 0.22) !important;
  border-color: rgba(89, 116, 240, 0.65) !important;
}

#dex-metas-slot a.chakra-button.custom-weogop {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  flex-shrink: 0 !important;
  padding: 6px 12px !important;
  border-radius: 9999px !important;
  border: 1px solid #2a2a38 !important;
  background: #16161f !important;
  color: #e8e8ed !important;
  font-family: "Manrope", sans-serif !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  line-height: 1.25 !important;
  text-decoration: none !important;
  white-space: nowrap !important;
  box-sizing: border-box !important;
  -webkit-appearance: none !important;
  appearance: none !important;
  transition: background 0.15s, border-color 0.15s !important;
}

#dex-metas-slot a.chakra-button.custom-weogop:hover {
  background: #1e1e2a !important;
  border-color: #3a3a4d !important;
}

#dex-metas-slot .chakra-text.custom-9hpz1u {
  font-size: 1em !important;
  line-height: 1 !important;
}

#dex-metas-slot .chakra-text.custom-10pty9q {
  color: #ffffff !important;
  font-weight: 600 !important;
  font-size: 13px !important;
}

#dex-metas-slot .chakra-text.custom-jm1wnh {
  display: inline-flex !important;
  align-items: center !important;
  gap: 4px !important;
  color: #a0a0b0 !important;
  font-size: 12px !important;
  font-weight: 600 !important;
}

#dex-metas-slot .chakra-text.custom-2mbms9 {
  color: #f0f4ff !important;
  font-weight: 600 !important;
}

#dex-metas-slot .chakra-icon.custom-13otjrl,
#dex-metas-slot .chakra-icon.custom-1ivkqil {
  flex-shrink: 0 !important;
}

/* snipped.css defines .custom-79elbk { position: relative } — restore fade overlay */
#dex-metas-slot .custom-79elbk {
  pointer-events: none !important;
  position: absolute !important;
  top: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 56px !important;
  z-index: 1 !important;
}

#dex-metas-slot .custom-ie12pj {
  width: 100% !important;
  height: 100% !important;
  background: linear-gradient(90deg, rgba(13, 13, 13, 0) 0%, #0d0d0d 85%) !important;
}

@media (max-width: 760px) {
  #dex-metas-slot .custom-79elbk {
    width: 40px !important;
  }
}

/* Footer: sibling of .dex-page-main — cancel 100vw breakout meant for nested layout; fill content column */
body.chakra-ui-dark ._j > footer._dc {
  width: 100% !important;
  max-width: none !important;
  position: relative !important;
  left: auto !important;
  right: auto !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  box-sizing: border-box !important;
}

/* Live feed: highlight new row (wins over Chakra / order issues; no CSS variables inside @keyframes) */
@keyframes dex-feed-row-flash {
  0% {
    background-color: rgba(89, 116, 240, 0.22);
    box-shadow: inset 0 0 0 1px rgba(89, 116, 240, 0.45);
  }
  100% {
    background-color: transparent;
    box-shadow: none;
  }
}

@keyframes dex-feed-row-flash-mobile {
  0% {
    background-color: rgba(89, 116, 240, 0.28);
    box-shadow: inset 0 0 0 1px rgba(89, 116, 240, 0.5);
  }
  100% {
    background-color: #121216;
    box-shadow: none;
  }
}

body.chakra-ui-dark .dex-page-main #_m > .feed-item.feed-item--new {
  border-radius: 8px;
  animation: dex-feed-row-flash 1.05s ease-out forwards !important;
}

@media (max-width: 760px) {
  body.chakra-ui-dark .dex-page-main #_m > .feed-item.feed-item--new {
    animation: dex-feed-row-flash-mobile 1.05s ease-out forwards !important;
  }
}

/* FAQ: Phantom screenshot — half column width (overrides global :where(img) { max-width: 100% } from snipped.css) */
._vc .faq-error-img-wrap,
._xc ._vc .faq-error-img-wrap {
  width: 50% !important;
  max-width: 50% !important;
  box-sizing: border-box !important;
}

._vc .faq-error-example,
._xc ._vc .faq-error-example {
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
}

.dex-page-main {
  display: block !important;
  max-width: 1200px !important;
  width: 100% !important;
  position: relative !important;
  z-index: 1 !important;
  height: auto !important;
  min-height: 0 !important;
  margin-left: auto !important;
  margin-right: auto !important;
  overflow-x: hidden !important;
  box-sizing: border-box;
  font-family: "Manrope", sans-serif !important;
  color: #18181d;
}

body.chakra-ui-dark ._j > nav.dex-vote-fixed-nav .custom-6su6fj,
body.chakra-ui-dark ._j > nav.dex-vote-fixed-nav .custom-7qet1i,
body.chakra-ui-dark ._j > nav.dex-vote-fixed-nav .custom-gdkc3w,
body.chakra-ui-dark ._j > nav.dex-vote-fixed-nav .custom-1ue5puf {
  flex-shrink: 0 !important;
  width: 100% !important;
  max-width: 100% !important;
}

body.chakra-ui-dark ._j > nav.dex-vote-fixed-nav .custom-gdkc3w {
  order: 0 !important;
}

body.chakra-ui-dark ._j > nav.dex-vote-fixed-nav .custom-e6mt7p {
  flex: 1 1 auto !important;
  min-height: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  overflow: hidden !important;
}

body.chakra-ui-dark ._j > nav.dex-vote-fixed-nav .custom-ylcyx5 {
  flex: 1 1 auto !important;
  min-height: 0 !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
}

/* Keep top sidebar row horizontal (logo / collapse / mobile search); column breaks spacing vs. absolute collapse */
body.chakra-ui-dark ._j > nav.dex-vote-fixed-nav .custom-1vmlpe2 {
  flex-direction: row !important;
  align-items: center !important;
  justify-content: space-between !important;
  flex-wrap: nowrap !important;
  gap: 0 !important;
  height: 50px !important;
  min-height: 50px !important;
}

body.chakra-ui-dark ._j > nav.dex-vote-fixed-nav .custom-1ue5puf {
  display: flex !important;
  flex-shrink: 0 !important;
  margin-top: auto !important;
  background: var(--chakra-colors-blue-1000, #111116) !important;
  border-top: 1px solid var(--chakra-colors-blue-950, #1d1d22) !important;
}

body.chakra-ui-dark ._j > nav.dex-vote-fixed-nav .custom-1xush0e {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: wrap !important;
  justify-content: center !important;
  align-items: center !important;
  width: 100% !important;
  gap: 8px !important;
}

@media (min-width: 62em) {
  body.chakra-ui-dark ._j > nav.dex-vote-fixed-nav .custom-1xush0e {
    gap: 4px !important;
  }
}

@media (max-width: 767px) {
  body.chakra-ui-dark ._j {
    padding-left: 0 !important;
  }

  body.chakra-ui-dark ._j > nav.dex-vote-fixed-nav {
    position: relative !important;
    left: auto !important;
    top: auto !important;
    bottom: auto !important;
    right: auto !important;
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: min(55vh, 520px) !important;
    border-right: none !important;
    border-bottom: 1px solid var(--chakra-colors-blue-950, #1d1d22) !important;
  }

  .dex-page-main {
    max-width: none !important;
  }
}
