/* Market discovery: dense exchange-style widgets and a source-aware screener. */
.trending-ticker {
  min-width: 0;
  height: 30px;
  margin-bottom: 10px;
  border-bottom: 1px solid #222328;
  background: #08090b;
  overflow: hidden;
}
.trending-viewport {
  width: 100%;
  height: 100%;
  overflow: hidden;
  cursor: grab;
  touch-action: pan-y pinch-zoom;
  user-select: none;
  -webkit-user-select: none;
}
.trending-track {
  position: relative;
  display: flex;
  width: max-content;
  height: 100%;
  will-change: transform;
}
.trending-group {
  display: flex;
  flex-shrink: 0;
  align-items: center;
}
.market-overview .trending-asset {
  display: flex;
  align-items: center;
  gap: 5px;
  flex: 0 0 auto;
  height: 29px;
  padding: 0 9px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: #ededed;
  font-size: 11px;
  line-height: 1;
  white-space: nowrap;
  cursor: inherit;
}
.trending-asset .asset-logo {
  width: 14px;
  height: 14px;
  flex: 0 0 14px;
}
.trending-asset .asset-logo img {
  width: 14px;
  height: 14px;
  pointer-events: none;
}
.trending-asset strong {
  color: #9399a5;
  font-size: 10px;
  font-weight: 600;
}
.trending-price {
  font-weight: 600;
}
.trending-change {
  font-size: 10px;
}
.trending-asset .positive {
  color: #00d395;
}
.trending-asset .negative {
  color: #ff4b61;
}
.market-overview .trending-asset:hover {
  background: #ffffff05;
}
.trending-ticker.is-dragging .trending-viewport,
.trending-ticker.is-dragging .trending-asset {
  cursor: grabbing;
}
.trending-viewport:focus-visible {
  outline: 1px solid #727782;
  outline-offset: -2px;
}
.trending-empty {
  display: block;
  padding: 7px 9px;
  color: #89898f;
  font-size: 11px;
}
.trending-empty[hidden],
.trending-track[hidden] {
  display: none;
}
.overview-page .page-wrap {
  max-width: none;
  padding: 14px 16px 20px;
}
.overview-page .page-heading {
  display: none;
}
.overview-page .workspace-footer {
  margin-top: 18px;
  font-size: 9px;
}
.market-overview {
  --overview-panel: #111317;
  --overview-muted: #98a1af;
  color: #f0f3f8;
  min-width: 0;
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}
.overview-summary,
.overview-screener {
  border: 1px solid #292d33;
  border-radius: 6px;
  background: #090b0d;
}
.overview-summary {
  padding: 13px;
}
.overview-section-heading,
.overview-header-actions,
.overview-widget-heading,
.overview-toolbar,
.overview-toolbar-left,
.overview-toolbar-right,
.overview-table-footer {
  display: flex;
  align-items: center;
  gap: 9px;
}
.overview-section-heading {
  justify-content: space-between;
  margin-bottom: 12px;
}
.overview-section-heading h1 {
  font-size: 14px;
  letter-spacing: -0.2px;
}
.overview-feed-status {
  color: var(--overview-muted);
  font-size: 10px;
  margin-right: 7px;
}
.overview-feed-status::before {
  content: '';
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--green);
  margin-right: 6px;
  vertical-align: 1px;
}
.overview-feed-status.warning::before {
  background: #e5b35a;
}
.overview-widget-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}
.overview-widget {
  min-width: 0;
  min-height: 184px;
  background: var(--overview-panel);
  border: 1px solid #191c21;
  border-radius: 6px;
  padding: 12px;
  overflow: hidden;
}
.overview-widget-heading {
  justify-content: space-between;
  margin-bottom: 10px;
  gap: 6px;
}
.overview-widget h2 {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0;
  white-space: nowrap;
}
.overview-widget-action,
.overview-widget-status {
  color: var(--overview-muted);
  font-size: 9px;
  white-space: nowrap;
}
.overview-widget-action {
  border: 0;
  background: none;
  padding: 0;
}
.overview-widget-action:hover {
  color: white;
}
.overview-big-value {
  font-size: 26px;
  line-height: 1.3;
  font-weight: 650;
  letter-spacing: -0.8px;
  margin-bottom: 2px;
  position: relative;
}
.overview-volume-content {
  position: relative;
  min-height: 123px;
}
.widget-volume {
  position: relative;
  background:
    radial-gradient(ellipse at 100% 100%, #1c222e55, transparent 70%), var(--overview-panel);
}
.widget-volume::after {
  content: '';
  pointer-events: none;
  position: absolute;
  width: 125px;
  height: 160px;
  right: -24px;
  top: 64px;
  transform: rotate(35deg);
  background:
    repeating-linear-gradient(0deg, transparent 0 22px, #79869615 22px 23px),
    repeating-linear-gradient(90deg, transparent 0 22px, #79869615 22px 23px);
}
.overview-metric-caption {
  display: block;
  color: #a4adbc;
  font-size: 10px;
  margin: 4px 0 16px;
}
.overview-volume-meta {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 10px;
  position: relative;
  z-index: 1;
}
.overview-widget-note {
  color: #7d8798;
  font-size: 9px;
  margin-top: 10px;
  max-width: 260px;
}
.overview-contract-metric > .overview-ranking {
  margin-top: 14px;
}
.overview-contract-dialog {
  width: min(540px, calc(100vw - 28px));
  border: 1px solid #343f50;
  border-radius: 9px;
  background: #11161f;
  color: #e6eefb;
  padding: 24px;
}
.overview-contract-dialog::backdrop {
  background: #030710b8;
  backdrop-filter: blur(3px);
}
.overview-contract-dialog header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}
.overview-contract-dialog header button {
  background: none;
  border: 0;
  color: #b2c3df;
  font-size: 23px;
}
.overview-contract-dialog p {
  color: #8494ad;
  font-size: 11px;
  margin: 7px 0 15px;
}
.overview-contract-dialog dl {
  margin: 20px 0;
}
.overview-contract-dialog dl > div {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  padding: 9px 0;
  border-bottom: 1px solid #242d3c;
  font-size: 12px;
}
.overview-contract-dialog dt {
  color: #92a2ba;
}
.overview-contract-dialog dd {
  margin: 0;
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.overview-contract-dialog a {
  font-size: 11px;
}
.overview-widget-empty {
  color: #7f8998;
  min-height: 120px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 9px;
  line-height: 1.5;
}
.overview-widget-empty p {
  max-width: 270px;
  font-size: 10px;
}
.overview-widget-empty a {
  font-size: 9px;
  color: #9eabc0;
}
.overview-unavailable-value {
  color: #596272;
  font-size: 24px;
  line-height: 1;
}
.overview-ranking {
  width: 100%;
  border-collapse: collapse;
  white-space: nowrap;
  font-size: 10px;
}
.overview-ranking th {
  font-weight: 400;
  color: var(--overview-muted);
  font-size: 9px;
  padding-bottom: 6px;
  text-align: right;
}
.overview-ranking td {
  padding: 3px 0;
  text-align: right;
}
.overview-ranking th:first-child,
.overview-ranking td:first-child {
  text-align: left;
}
.overview-ranking td + td,
.overview-ranking th + th {
  padding-left: 6px;
}
.overview-market-link {
  display: inline-flex;
  gap: 7px;
  align-items: center;
  color: #f3f5fa;
  background: none;
  border: 0;
  padding: 0;
  white-space: nowrap;
  font-size: inherit;
  text-align: left;
}
.overview-market-link:hover strong {
  color: #8fb3ff;
}
.overview-market-link strong {
  font-weight: 600;
}
.overview-coin {
  flex-shrink: 0;
  width: 21px;
  height: 21px;
  border-radius: 50%;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  background: #273b52;
  color: #e5ecff;
  font-size: 11px;
  border: 1px solid #ffffff18;
}
.overview-ranking .overview-coin {
  width: 15px;
  height: 15px;
  font-size: 9px;
}
.coin-btc {
  background: #f7931a;
  color: white;
}
.coin-eth {
  background: #627eea;
  color: white;
}
.coin-sol {
  background: #172c2a;
  color: #78edc3;
}
.coin-xrp {
  background: #232426;
  color: white;
}
.coin-doge {
  background: #ba9f41;
  color: white;
}
.coin-ada {
  background: #1653b8;
  color: white;
}
.coin-ltc {
  background: #8c929b;
  color: white;
}
.coin-avax {
  background: #db4147;
  color: white;
}
.coin-dot {
  background: #bb1b69;
  color: white;
}
.coin-bch {
  background: #1caa79;
  color: white;
}
.coin-shib {
  background: #a1432a;
  color: white;
}
.overview-screener {
  margin-top: 8px;
}
.overview-tabs {
  display: flex;
  gap: 6px;
  border-bottom: 1px solid #282d34;
  padding: 0 9px;
  overflow-x: auto;
}
.overview-tabs button {
  background: none;
  color: #939cab;
  border: 0;
  border-bottom: 2px solid transparent;
  padding: 11px 8px 9px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}
.overview-tabs button:hover {
  color: white;
}
.overview-tabs button.active {
  border-bottom-color: #f1f4f8;
  color: white;
}
.overview-toolbar {
  justify-content: space-between;
  padding: 11px 10px 6px;
  flex-wrap: wrap;
}
.overview-quick-filters {
  display: flex;
  gap: 5px;
}
.overview-quick-filters button,
.overview-menu summary,
.overview-density,
.overview-toolbar select {
  background: #14171c;
  color: #b9c3d4;
  border: 1px solid #22272f;
  border-radius: 5px;
  padding: 4px 8px;
  font-size: 10px;
  line-height: 1.6;
}
.overview-quick-filters button:hover,
.overview-menu summary:hover,
.overview-density:hover {
  border-color: #48556a;
  color: white;
}
.overview-quick-filters button.active {
  color: #fff;
  border-color: #39414e;
  background: #2a2e35;
}
.overview-toolbar select {
  max-width: 150px;
}
.overview-toolbar-right {
  margin-left: auto;
}
.overview-menu {
  position: relative;
}
.overview-menu summary {
  list-style: none;
  cursor: pointer;
  white-space: nowrap;
  user-select: none;
}
.overview-menu summary::-webkit-details-marker {
  display: none;
}
.overview-menu[open] summary {
  border-color: #5e7bad;
  color: white;
}
.overview-menu-content {
  position: absolute;
  z-index: 15;
  right: 0;
  top: calc(100% + 7px);
  min-width: 215px;
  padding: 10px;
  background: #171b22;
  border: 1px solid #343c49;
  border-radius: 6px;
  box-shadow: 0 10px 35px #0008;
  display: grid;
  gap: 3px;
  max-height: 360px;
  overflow: auto;
}
.overview-menu-content label {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px;
  font-size: 11px;
  color: #c4ccda;
  cursor: pointer;
}
.overview-menu-content label:hover {
  background: #232a36;
  border-radius: 3px;
}
.overview-menu-content input[type='checkbox'] {
  width: 13px;
  height: 13px;
  accent-color: #5f91ff;
  margin: 0;
}
.overview-menu-content select {
  width: 130px;
}
.overview-search {
  display: flex;
  align-items: center;
  gap: 7px;
  background: #171b22;
  border: 1px solid #2d333d;
  border-radius: 5px;
  padding: 3px 7px;
}
.overview-search > span {
  color: #c1ccdf;
  font-size: 17px;
  line-height: 18px;
}
.overview-search input {
  width: 145px;
  min-width: 0;
  background: none;
  border: 0;
  box-shadow: none;
  outline: none;
  padding: 2px 0;
  color: #e7edf7;
  font-size: 10px;
}
.overview-search:focus-within {
  outline: 1px solid #699aff;
}
.overview-search kbd {
  font-size: 8px;
  color: #a0a8b7;
  background: #090c12;
  padding: 1px 3px;
  border-radius: 3px;
}
.overview-table-scroll {
  overflow-x: auto;
  min-height: 230px;
  max-height: 680px;
  scrollbar-width: thin;
}
.overview-market-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  white-space: nowrap;
  font-size: 11px;
}
.overview-market-table th {
  text-align: right;
  font-weight: 400;
  padding: 9px 13px;
  position: sticky;
  top: 0;
  background: #090b0d;
  z-index: 2;
  color: #8d9bb0;
  font-size: 10px;
}
.overview-market-table th:first-child {
  text-align: left;
}
.overview-market-table th button {
  background: none;
  border: 0;
  padding: 0;
  color: inherit;
  font-size: inherit;
}
.overview-sort {
  margin-left: 4px;
  font-size: 9px;
  color: #67778d;
}
.overview-market-table th[aria-sort='ascending'],
.overview-market-table th[aria-sort='descending'] {
  color: #c2d6f7;
}
.overview-market-table td {
  padding: 7px 13px;
  height: 38px;
  text-align: right;
  border-top: 1px solid transparent;
}
.overview-market-table td:first-child {
  text-align: left;
  min-width: 162px;
}
.overview-market-table tbody tr:hover {
  background: #141b26;
}
.overview-market-cell {
  display: flex;
  align-items: center;
  gap: 10px;
}
.overview-star {
  background: none;
  border: 0;
  color: #7b8da4;
  padding: 0;
  font-size: 15px;
  width: 15px;
  line-height: 22px;
}
.overview-star.selected {
  color: #f0f4fa;
}
.overview-star:hover {
  color: #a8c7ff;
}
.overview-name {
  color: #c9d1df;
}
.overview-source {
  display: flex;
  flex-direction: column;
  font-size: 9px;
  color: #afb9cc;
}
.overview-source small {
  font-size: 8px;
  margin-top: 1px;
}
.overview-stale-tag {
  font-size: 8px;
  color: #d5ae6d;
  background: #b8893220;
  border: 1px solid #b8893229;
  border-radius: 3px;
  padding: 1px 4px;
}
.overview-stale-cap {
  color: #a4aebd;
}
.overview-comfortable .overview-market-table td {
  padding-top: 13px;
  padding-bottom: 13px;
  height: 50px;
}
.overview-table-footer {
  border-top: 1px solid #252b34;
  justify-content: space-between;
  padding: 10px 13px;
  color: #78879c;
  font-size: 9px;
}
.overview-methodology {
  color: #718096;
  font-size: 9px;
  padding: 11px 3px 0;
  line-height: 1.7;
  max-width: 1200px;
}
.overview-methodology a {
  color: #91a5c7;
}
.overview-empty {
  text-align: center;
  padding: 45px 20px;
  color: #9ba7b9;
}
.overview-empty strong {
  color: #dce5f4;
  font-size: 13px;
  font-weight: 500;
}
.overview-empty p {
  font-size: 11px;
  margin-top: 9px;
}
.market-overview button:focus-visible,
.market-overview summary:focus-visible,
.market-overview select:focus-visible {
  outline: 2px solid #6c9cff;
  outline-offset: 3px;
}
@media (max-width: 1800px) {
  .overview-widget-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .overview-widget {
    min-height: 180px;
  }
}
@media (min-width: 1801px) and (max-width: 2150px) {
  .overview-ranking {
    font-size: 9px;
  }
  .overview-ranking th {
    font-size: 8px;
  }
  .overview-ranking .overview-market-link {
    gap: 4px;
  }
  .overview-widget {
    padding: 10px;
  }
  .overview-widget-status {
    display: none;
  }
}
@media (max-width: 1200px) {
  .overview-widget-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .overview-toolbar-right {
    margin-left: 0;
  }
  .overview-feed-status {
    display: none;
  }
}
@media (max-width: 600px) {
  .overview-page .page-wrap {
    padding: 10px 8px;
  }
  .overview-summary {
    padding: 10px;
  }
  .overview-widget-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .overview-widget {
    min-height: 165px;
  }
  .overview-widget-empty {
    min-height: 95px;
  }
  .overview-toolbar-left,
  .overview-toolbar-right {
    width: 100%;
    flex-wrap: wrap;
    gap: 6px;
  }
  .overview-toolbar-left > select {
    margin-left: auto;
  }
  .overview-search {
    flex: 1;
    min-width: 140px;
  }
  .overview-search input {
    width: 100%;
  }
  .overview-search kbd {
    display: none;
  }
  .overview-tabs {
    gap: 0;
  }
  .overview-tabs button {
    font-size: 11px;
    padding-left: 10px;
    padding-right: 10px;
  }
  .overview-table-footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }
  .overview-menu-content {
    min-width: 205px;
  }
}
