html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center, dl, dt, dd, ol, ul, li,
fieldset, form, label, legend, table, caption,
tbody, tfoot, thead, tr, th, td, article,
aside, canvas, details, embed, figure,
figcaption, footer, header, hgroup,
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
    margin: 0;
    padding: 0;
    border: 0;
    font-size: 100%;
    font: inherit;
    vertical-align: baseline;
}

*, *::before, *::after {
    font-size: inherit;
    box-sizing: border-box;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    border: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
}

:root {
    --color-cyan: #08bfc1;
    --color-green: #62c108;
    --color-red: #f50000;
}

body {
    background-color: #000;
    color: #fff;
    font-family: "Monaco", monospace;
    font-size: 18px;
    margin: 0;
    padding: 0;
    overflow-x: auto;
    overflow-y: auto;
}

.app-container {
    padding: 0;
    text-align: right;
    margin: 0;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    overflow-x: auto;
    overflow-y: auto;
}

.app-container::-webkit-scrollbar {
    height: 12px;
    width: 12px;
}

.app-container::-webkit-scrollbar-track {
    background: #333;
}

.app-container::-webkit-scrollbar-thumb {
    background: var(--color-cyan);
    border-radius: 6px;
}

.app-container::-webkit-scrollbar-thumb:hover {
    background: var(--color-cyan);
}

.app-container {
    scrollbar-width: thin;
    scrollbar-color: var(--color-cyan) #333;
}

body::-webkit-scrollbar {
    height: 12px;
    width: 12px;
}

body::-webkit-scrollbar-track {
    background: #333;
}

body::-webkit-scrollbar-thumb {
    background: var(--color-cyan);
    border-radius: 6px;
}

body::-webkit-scrollbar-thumb:hover {
    background: var(--color-cyan);
}

body {
    scrollbar-width: thin;
    scrollbar-color: var(--color-cyan) #333;
}

#root {
    width: 100%;
    overflow-x: auto;
    overflow-y: auto;
}

#root::-webkit-scrollbar {
    height: 12px;
    width: 12px;
}

#root::-webkit-scrollbar-track {
    background: #333;
}

#root::-webkit-scrollbar-thumb {
    background: var(--color-cyan);
    border-radius: 6px;
}

#root::-webkit-scrollbar-thumb:hover {
    background: var(--color-cyan);
}

#root {
    scrollbar-width: thin;
    scrollbar-color: var(--color-cyan) #333;
}

.crypto-rows {
  display: contents;
}

.crypto-rows > .crypto-row:first-child {
  margin-top: 5px;
}

.crypto-rows > .crypto-row + .crypto-row {
  margin-top: 2px;
}

.crypto-table {
  display: flex;
  flex-direction: column;
  width: 100%;
  margin: 0;
  max-width: 100%;
  min-height: 100%;
}

.crypto-header,
.crypto-row {
  display: grid;
  grid-template-columns: 0.65fr
    2.7fr
    1.25fr
    0.85fr
    0.95fr
    0.95fr
    0.95fr
    0.95fr
    1.05fr
    2.05fr
    1.75fr
    1.35fr
    0.95fr
    1.05fr
    0.95fr
    1.35fr;
  width: 100%;
}

.cap-short,
.rate-short {
  display: none;
}

@media (max-width: 1950px) {
  .crypto-header > :nth-child(14), .crypto-row > :nth-child(14) {
    display: none;
  }

  .crypto-header,
  .crypto-row {
    grid-template-columns: 0.65fr 2.7fr 1.25fr 0.85fr 0.95fr 0.95fr 0.95fr 0.95fr 1.05fr 2.05fr
      1.75fr 1.35fr 0.95fr 0.95fr 1.35fr;
  }
}

@media (max-width: 1845px) {
  .crypto-header > :nth-child(15), .crypto-row > :nth-child(15) {
    display: none;
  }

  .crypto-header,
  .crypto-row {
    grid-template-columns: 0.65fr 2.7fr 1.25fr 0.85fr 0.95fr 0.95fr 0.95fr 0.95fr 1.05fr 2.05fr
      1.75fr 1.35fr 0.95fr 1.35fr;
  }
}

@media (max-width: 1750px) {
  .crypto-header > :nth-child(13), .crypto-row > :nth-child(13) {
    display: none;
  }

  .crypto-header,
  .crypto-row {
    grid-template-columns: 0.65fr 2.7fr 1.25fr 0.85fr 0.95fr 0.95fr 0.95fr 0.95fr 1.05fr 2.05fr
      1.75fr 1.35fr 1.35fr;
  }
}

@media (max-width: 1655px) {
  .crypto-header > :nth-child(6), .crypto-row > :nth-child(6) {
    display: none;
  }

  .crypto-header,
  .crypto-row {
    grid-template-columns: 0.65fr 2.7fr 1.25fr 0.85fr 0.95fr 0.95fr 0.95fr 1.05fr 2.05fr 1.75fr
      1.35fr 1.35fr;
  }
}

@media (max-width: 1560px) {
  .crypto-header > :nth-child(8), .crypto-row > :nth-child(8) {
    display: none;
  }

  .crypto-header,
  .crypto-row {
    grid-template-columns: 0.65fr 2.7fr 1.25fr 0.85fr 0.95fr 0.95fr 1.05fr 2.05fr 1.75fr 1.35fr
      1.35fr;
  }
}

@media (max-width: 1465px) {
  .crypto-header > :nth-child(9), .crypto-row > :nth-child(9) {
    display: none;
  }

  .crypto-header,
  .crypto-row {
    grid-template-columns: 0.65fr 2.7fr 1.25fr 0.85fr 0.95fr 0.95fr 2.05fr 1.75fr 1.35fr 1.35fr;
  }
}

@media (max-width: 1360px) {
  .crypto-header > :nth-child(16), .crypto-row > :nth-child(16) {
    display: none;
  }

  .crypto-header,
  .crypto-row {
    grid-template-columns: 0.65fr 2.7fr 1.25fr 0.85fr 0.95fr 0.95fr 2.05fr 1.75fr 1.35fr;
  }
}

@media (max-width: 1225px) {
  .crypto-header > :nth-child(7), .crypto-row > :nth-child(7) {
    display: none;
  }

  .crypto-header,
  .crypto-row {
    grid-template-columns: 0.65fr 2.7fr 1.25fr 0.85fr 0.95fr 2.05fr 1.75fr 1.35fr;
  }
}

@media (max-width: 1130px) {
  .crypto-header > :nth-child(11), .crypto-row > :nth-child(11) {
    display: none;
  }

  .crypto-header,
  .crypto-row {
    grid-template-columns: 0.65fr 2.7fr 1.25fr 0.85fr 0.95fr 2.05fr 1.35fr;
  }
}

@media (max-width: 955px) {
  .crypto-header > :nth-child(4), .crypto-row > :nth-child(4) {
    display: none;
  }

  .crypto-header,
  .crypto-row {
    grid-template-columns: 0.65fr 2.7fr 1.25fr 0.95fr 2.05fr 1.35fr;
  }
}

@media (max-width: 870px) {
  .crypto-header > :nth-child(12), .crypto-row > :nth-child(12) {
    display: none;
  }

  .crypto-header,
  .crypto-row {
    grid-template-columns: 0.65fr 2.7fr 1.25fr 0.95fr 2.05fr;
  }
}

@media (max-width: 735px) {
  .cap-full,
  .rate-full {
    display: none;
  }

  .cap-short,
  .rate-short {
    display: inline;
  }

  .crypto-header,
  .crypto-row {
    grid-template-columns:
      0.6fr 2.45fr 0.95fr 0.85fr 0.85fr;
  }
}

@media (max-width: 569px) {
  .crypto-header,
  .crypto-row {
    grid-template-columns:
      0.6fr 1.6fr 0.95fr 0.85fr 0.85fr;
  }
}

@media (max-width: 479px) {
  .crypto-header > :nth-child(1), .crypto-row > :nth-child(1) {
    display: none;
  }

  .crypto-header,
  .crypto-row {
    grid-template-columns:
      1.5fr 0.95fr 0.85fr 0.85fr;
  }
}

@media (max-width: 414px) {
  .crypto-header > :nth-child(5), .crypto-row > :nth-child(5) {
    display: none;
  }

  .crypto-header,
  .crypto-row {
    grid-template-columns:
      1.4fr 0.95fr 0.85fr;
  }
}

.table-top {
  display: block;
  position: sticky;
  position: -webkit-sticky;
  top: 0;
  z-index: 40;
  min-width: 100%;
}

.crypto-header {
  background-color: var(--color-green);
  color: #000;
  font-weight: normal;
  min-width: 100%;
}

.crypto-header .crypto-column {
  gap: 0.333em;
  cursor: pointer;
}

.crypto-header .crypto-column.sorted {
  background-color: var(--color-cyan);
}

.crypto-header .crypto-name {
  justify-content: flex-start;
}

.crypto-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap-reverse;
  margin-top: auto;
  font-size: 14px;
  gap: 0.25em 0.9em;
  text-align: left;
  padding: 0.35em 0.9em;
  background-color: var(--color-cyan);
  color: #000;
  font-weight: bold;
  white-space: nowrap;
  min-width: 100%;
}

.crypto-row:is(:hover, .selected, .pinned) {
  background-color: var(--color-cyan);
  color: #000;
  min-width: 100%;
}

.crypto-row:is(:hover, .selected, .pinned) .crypto-name-link {
  color: inherit;
}

.crypto-row:is(:hover, .selected, .pinned) .crypto-rate {
  color: #000;
}

.crypto-row:is(:hover, .selected, .pinned) .crypto-allTimeHighUSD {
  color: #000;
}

.crypto-row:is(:hover, .selected, .pinned) .crypto-change[data-polarity="positive"],
.crypto-row:is(:hover, .selected, .pinned) .crypto-change[data-polarity="negative"],
.crypto-row:is(:hover, .selected, .pinned) .crypto-change[data-polarity=""] {
  color: #000;
}

.crypto-row:is(:hover, .selected, .pinned) .crypto-badge {
  color: #000;
}

.crypto-column {
  text-align: right;
  white-space: nowrap;
  overflow: hidden;
  padding: 0 0.667em;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.sort-arrow {
  flex-shrink: 0;
}

.sort-arrow-name {
  flex-shrink: 0;
}

.pin-button {
  background: none;
  border: none;
  color: inherit;
  font-family: inherit;
  font-size: 1em;
  line-height: 1;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  visibility: hidden;
}

.pin-icon {
  display: block;
  width: 15px;
  height: 15px;
  background-color: #000;
  -webkit-mask: url('/pin.png') no-repeat center / contain;
  mask: url('/pin.png') no-repeat center / contain;
}

.crypto-row:hover .pin-icon,
.pin-button.is-pinned .pin-icon {
  transform: translateZ(0);
}

.crypto-row:hover .pin-button,
.pin-button.is-pinned {
  visibility: visible;
}

.crypto-rank {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 2px;
  padding-left: 0;
}

@media (hover: none) {
  .pin-button {
    visibility: visible;
  }
}

.pin-button:hover {
  opacity: 0.7;
}

.crypto-name {
  text-align: left;
  display: flex;
  align-items: center;
  padding: 0 0.667em;
  min-width: 0;
  justify-content: flex-start;
  overflow: hidden;
  margin-right: calc(-1 * (var(--rate-slack-short, 0ch) + max(0px, var(--price-track, 0px) - var(--widest-rate-short, 0ch) - var(--name-gap, 1.5ch))));
}

@media (min-width: 736px) {
  .crypto-name {
    margin-right: calc(-1 * (var(--rate-slack, 0ch) + max(0px, var(--price-track, 0px) - var(--widest-rate, 0ch) - var(--name-gap, 1.5ch))));
  }
}

.crypto-name-icon-link {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.crypto-logo {
  margin-right: 0.5em;
  width: 1.222em;
  height: 1.222em;
  flex-shrink: 0;
}

.crypto-logo--invert {
  filter: invert(1);
}

.crypto-logo-fallback {
  display: inline-block;
  background: #222;
  border: 1px solid #444;
  border-radius: 2px;
}

.crypto-name-text {
  display: flex;
  align-items: center;
  min-width: 0;
  overflow: hidden;
  flex: 0 1 auto;
}

.crypto-name-link {
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
  color: #fff;
  text-decoration: none;
  display: inline-block;
  width: 100%;
}

.crypto-name-link:hover {
  text-decoration: underline !important;
}

.crypto-badges {
  display: flex;
  align-items: center;
  gap: 0.333em;
  flex-shrink: 0;
  margin-left: 0.5em;
}

.crypto-badge {
  font-size: 0.722em;
  white-space: nowrap;
}

.crypto-badge-ath {
  color: var(--color-cyan);
}

.crypto-badge-new {
  color: var(--color-green);
}

.crypto-badge-dead {
  color: #fff;
}

.crypto-badge-skull {
  display: inline-block;
  width: 1.15em;
  height: 1.15em;
  vertical-align: -0.2em;
  margin-right: 0.15em;
  background-color: currentColor;
  -webkit-mask: url('/skull.png') no-repeat center / contain;
  mask: url('/skull.png') no-repeat center / contain;
}

.crypto-rate,
.crypto-allTimeHighUSD {
  color: var(--color-cyan);
}

.crypto-change[data-polarity="positive"] {
  color: var(--color-green);
}

.crypto-change[data-polarity="negative"] {
  color: var(--color-red);
}

.crypto-change[data-polarity=""] {
  color: #fff;
}

.crypto-change {
  padding: 0 0.667em;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  white-space: nowrap;
  overflow: hidden;
}

.crypto-empty {
  padding: 48px 24px;
  text-align: center;
  color: #888;
}

.footer-link {
  color: #000;
  text-decoration: none;
}

.footer-link:visited,
.footer-link:hover {
  color: #000;
}

.footer-info {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 0.333em;
  min-width: 0;
}


.footer-item {
  white-space: nowrap;
}

.footer-stale {
  font-weight: bold;
}

.footer-stale-warn {
  color: #8a4500;
}

.footer-stale-alert {
  color: #8b0000;
}

.footer-controls {
  display: flex;
  align-items: center;
  gap: 0.25em 1em;
  flex-wrap: wrap;
  justify-content: center;
  width: 100%;
  min-width: 100%;
  padding: 0.35em 0.9em;
  font-size: 14px;
  text-align: left;
  background-color: var(--color-cyan);
  color: #000;
  font-weight: bold;
}

.footer-limit,
.footer-search {
  display: inline-flex;
  align-items: center;
}

.search-input,
.footer-limit select {
  font-family: inherit;
  font-size: 1em;
  font-weight: inherit;
  background: #000;
  color: var(--color-cyan);
  border: 1px solid #000;
  text-align: center;
  padding: 0 0.3em;
  outline: none;
}

.footer-limit select option {
  background: #000;
  color: var(--color-cyan);
  font-weight: bold;
}

.search-input {
  width: 9em;
}

.search-input::placeholder {
  color: var(--color-cyan);
  opacity: 1;
}

.search-input:focus::placeholder {
  color: transparent;
}

.search-input:focus,
.footer-limit select:focus {
  border-color: #fff;
  box-shadow: 0 0 0 1px #000;
}

.search-input,
.footer-limit select {
  -webkit-appearance: none;
  appearance: none;
  border-radius: 0;
}

.footer-limit select {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 6'%3E%3Cpath fill='%2308bfc1' d='M0 0h10L5 6z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.4em center;
  background-size: 0.55em auto;
  padding-right: 1.4em;
  padding-left: 0.6em;
}

@media (max-width: 1159px) {
  .crypto-footer {
    justify-content: center;
    text-align: center;
    gap: 4px 10px;
  }

  .footer-info {
    justify-content: center;
    flex: 0 1 auto;
  }
}

@media (max-width: 1009px) {
  .crypto-table {
    min-height: 0;
  }

  body,
  #root,
  .app-container,
  .crypto-table,
  .table-top,
  .footer-controls,
  .crypto-header,
  .crypto-row {
    min-width: 0;
  }

  html {
    height: auto;
    overflow-x: hidden;
    overflow-y: auto;
  }

  body {
    height: auto;
    overflow: visible;
  }

  #root,
  .app-container {
    height: auto;
    overflow: visible;
    position: static;
    display: block;
  }

  .crypto-table {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    min-height: 100dvh;
    overflow: visible;
  }

  .footer-controls {
    padding: 6px 8px;
    gap: 0.25em 0.75em;
  }

  .crypto-footer {
    order: 0;
    position: static;
    margin-top: auto;
    bottom: auto;
    padding: 6px 8px;
    flex-wrap: wrap;
    gap: 0;
  }

  .footer-info {
    flex: 1 1 100%;
    justify-content: center;
    font-size: 11px;
    line-height: 1.45;
    opacity: 0.78;
    gap: 0 0.5em;
    margin-top: 3px;
  }

  .footer-info {
    order: 2;
  }

  .search-input,
  .footer-limit select {
    font-size: 16px;
  }

  .footer-item {
    white-space: normal;
  }

  .search-input {
    width: 110px;
  }
}

@media (hover: none) {
  .search-input,
  .footer-limit select {
    font-size: 16px;
  }
}
