#selectNetwork,
.ks-global-chain-trigger,
.ks-chain-modal-overlay {
  display: none !important;
}

footer {
  display: none !important;
}

header nav .group > .flex.cursor-pointer > svg {
  display: none !important;
}

header nav[aria-label="Primary"] > :nth-child(n+2):nth-child(-n+6) {
  display: none !important;
}

button[aria-label="Support"],
button[aria-label="Support"] + div {
  display: none !important;
}

.ks-market-powered {
  display: none !important;
}

.ks-about-link {
  cursor: pointer;
}

#app > .flex.min-h-dvh {
  padding-bottom: 0 !important;
}

.ks-global-chain-trigger {
  min-height: 42px;
  border-radius: 999px !important;
  background: #151515 !important;
  color: #f4f7fb !important;
  cursor: pointer;
}

.ks-global-chain-inner {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-width: 140px;
  padding: 0 10px;
  font-weight: 800;
}

.ks-global-chain-inner > span {
  white-space: nowrap;
}

.ks-global-chain-chevron {
  color: #aab3bf;
}

.ks-chain-logo,
.ks-chain-logo-fallback {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  border-radius: 999px;
}

.ks-chain-logo-fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--chain-color, #31cb9e);
  color: #07130f;
  font-size: 9px;
  font-weight: 900;
}

.ks-chain-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: none;
  background: rgba(0, 0, 0, 0.54);
}

.ks-chain-modal-overlay[data-open="true"] {
  display: block;
}

.ks-chain-modal {
  width: min(800px, calc(100vw - 28px));
  max-height: min(732px, calc(100vh - 88px));
  margin: 92px 0 0 0;
  overflow: hidden;
  border-radius: 0 18px 18px 0;
  background: #202020;
  color: #f2f5f8;
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.58);
}

.ks-chain-modal-head {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(230px, 320px) 34px;
  align-items: center;
  gap: 16px;
  padding: 20px 20px 14px;
}

.ks-chain-modal-head h2 {
  margin: 0;
  color: #f5f7fa;
  font-size: 22px;
  font-weight: 900;
  letter-spacing: 0;
}

.ks-chain-search {
  display: flex;
  min-height: 38px;
  align-items: center;
  gap: 10px;
  padding: 0 12px;
  border-radius: 999px;
  background: #111;
  color: #aeb7c2;
}

.ks-chain-search input {
  width: 100%;
  border: 0;
  background: transparent;
  color: #f7fafc;
  font-size: 14px;
  font-weight: 700;
  outline: none;
}

.ks-chain-search input::placeholder {
  color: #8e96a1;
}

.ks-chain-close {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #f5f7fa;
  font-size: 22px;
  cursor: pointer;
}

.ks-chain-content {
  max-height: calc(min(732px, calc(100vh - 88px)) - 74px);
  overflow: auto;
  padding: 0 20px 24px;
}

.ks-chain-section-title {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 12px;
  margin: 10px 0;
  color: #a8b0bc;
  font-size: 12px;
  font-weight: 800;
}

.ks-chain-section-title::after {
  height: 1px;
  background: #505050;
  content: "";
}

.ks-chain-favorite-empty {
  display: flex;
  min-height: 60px;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
  border: 1px dashed #555;
  border-radius: 18px;
  color: #aab1bc;
  font-size: 13px;
  font-weight: 800;
}

.ks-chain-grid,
.ks-chain-favorites-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px 26px;
  margin-bottom: 24px;
}

.ks-chain-favorites-grid {
  margin-bottom: 10px;
}

.ks-chain-item {
  display: flex;
  min-width: 0;
  min-height: 54px;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  border: 0;
  border-radius: 13px;
  background: transparent;
  color: #aeb4bd;
  font-size: 15px;
  font-weight: 900;
  text-align: left;
  cursor: pointer;
}

.ks-chain-item:hover,
.ks-chain-item.is-selected {
  background: #101010;
  color: #fff;
}

.ks-chain-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ks-chain-item em {
  color: #ff4f80;
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
}

.ks-chain-spacer {
  flex: 1 1 auto;
}

.ks-chain-check {
  display: none;
  width: 16px;
  height: 16px;
  border-radius: 999px;
  background: #27d5a4;
  box-shadow: inset 0 0 0 3px rgba(0, 0, 0, 0.2);
}

.ks-chain-item.is-selected .ks-chain-check {
  display: block;
}

.ks-chain-star {
  display: inline-flex;
  width: 24px;
  height: 24px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #5d6671;
  font-size: 14px;
}

.ks-chain-star:hover,
.ks-chain-star.is-favorite {
  color: #f4d071;
}

@media (max-width: 760px) {
  .ks-global-chain-inner {
    min-width: 0;
  }

  .ks-global-chain-inner > span {
    max-width: 108px;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .ks-chain-modal {
    width: 100%;
    max-height: 100vh;
    min-height: 100vh;
    margin: 0;
    border-radius: 0;
  }

  .ks-chain-modal-head {
    position: sticky;
    top: 0;
    z-index: 1;
    grid-template-columns: 1fr 34px;
    background: #202020;
  }

  .ks-chain-search {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .ks-chain-content {
    max-height: calc(100vh - 96px);
  }

  .ks-chain-grid,
  .ks-chain-favorites-grid {
    grid-template-columns: 1fr;
    gap: 6px;
  }
}
