
/* Existing UI polish: preserve layout, controls, metric fields and text scaling. */
html .v2-app .discover-view .route-header p {
  line-height: 1.45;
  text-transform: none;
}

html .v2-app .discover-view .discover-toolbar {
  align-items: center;
  padding-block: 8px;
}

html .v2-app .discover-view .discover-search {
  height: 36px;
  min-height: 36px;
  box-sizing: border-box;
  border-radius: 6px;
  padding: 0 10px;
}

html .v2-app .discover-view .discover-search input {
  line-height: 1.3;
  font-size: calc(11px * var(--preview-text-scale, 1));
}

html .v2-app .discover-view :is(.category-tabs button, .filter-button) {
  line-height: 1.25;
}

html .v2-app .discover-view .discover-table--managed .discover-row {
  align-items: center;
}

html .v2-app .discover-view .discover-table--managed :is(.value-cell strong, .dual-value strong, .dual-value > span, .tx-cell strong, .change) {
  font-size: calc(11px * var(--preview-text-scale, 1));
  font-variant-numeric: tabular-nums;
  line-height: 1.35;
}

html .v2-app .discover-view .discover-table--managed .discover-token > span {
  gap: 3px;
}

html .v2-app .discover-view .discover-table--managed .discover-token strong {
  line-height: 1.3;
}

html .v2-app .discover-view .discover-table--managed .risk-cell span {
  min-height: 23px;
  height: auto;
  padding: 2px 4px;
  box-sizing: border-box;
  font-size: calc(10px * var(--preview-text-scale, 1));
  line-height: 1.2;
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
}

html .v2-app .discover-view .discover-table--managed .discover-signal-cell {
  gap: 4px;
}

html .v2-app .discover-view .discover-table--managed .discover-signal-cell :is(strong, span) {
  line-height: 1.35;
  white-space: normal;
  overflow-wrap: anywhere;
}

html .v2-app .discover-view :is(button, input):focus-visible {
  outline: 2px solid #9ba6ff;
  outline-offset: 2px;
}

@media (max-width: 860px) {
  html .v2-app .app-header {
    gap: 8px;
    padding-inline: 9px;
  }

  html .v2-app .app-header .mobile-menu {
    flex: 0 0 44px;
    width: 44px;
    min-width: 44px;
    height: 44px;
  }

  html .v2-app .app-header .global-search {
    flex: 1 1 auto;
    width: auto;
    min-width: 44px;
    height: 44px;
  }

  html .v2-app .app-header .header-actions {
    flex: 0 0 auto;
  }

  html .v2-app .app-header .wallet-connect {
    width: 44px;
    min-width: 44px;
    height: 44px;
    padding-inline: 0;
    justify-content: center;
  }

  html .v2-app .discover-view .discover-search {
    height: 40px;
    min-height: 40px;
  }

  html .v2-app .discover-view .discover-table--managed .risk-cell span {
    font-size: calc(9px * var(--preview-text-scale, 1)) !important;
    white-space: normal;
    overflow: visible;
    padding: 2px 3px !important;
  }
}
