/* defi board */
.df-stats { grid-template-columns: repeat(6, minmax(0, 1fr)); margin-bottom: 16px; }
.df-stats .sv { font-size: 22px; }
.df-stats .ss { overflow-wrap: anywhere; }

/* tvl chart */
.df-hist .panel-h { flex-wrap: wrap; row-gap: 10px; }
.df-hist .panel-h .sp { flex-wrap: wrap; justify-content: flex-end; }
.df-hist .sel { min-width: 160px; }
.df-hover { display: flex; flex-wrap: wrap; gap: 4px 18px; padding: 12px 18px 0; font-size: 13.5px; color: var(--text-2); min-height: 33px; font-variant-numeric: tabular-nums; }
.df-hover b { font-weight: 680; color: var(--text); }
.df-hover b.up { color: var(--up); }
.df-hover b.down { color: var(--down); }
.df-hd { color: var(--text); font-weight: 620; }

/* chain table */
.df-ctbl td { padding-top: 7px; padding-bottom: 7px; }
.df-ctbl tbody tr { cursor: pointer; }
.df-ctbl tbody tr.sel { background: var(--bg-sunk); }
.df-ctbl tbody tr.sel .df-cn > span:first-child { color: var(--accent-ink); }
.df-pick { display: block; text-align: left; }
.df-ctbl .sym img, .df-ctbl .sym .cbadge { width: 22px; height: 22px; }
.df-cn { display: grid; line-height: 1.25; }
.df-cn > span:first-child { font-weight: 620; }
.df-sh { display: flex; align-items: center; gap: 10px; min-width: 170px; }
.df-sh .num { font-size: 13px; color: var(--text-2); min-width: 46px; text-align: right; }
.df-sb { flex: 1; height: 10px; border-radius: 3px; background: var(--bg-sunk); overflow: hidden; }
.df-sb i { display: block; height: 100%; background: var(--amber-deep); border-radius: 3px; }
.df-sp { width: 112px; }
.df-spark { width: 96px; height: 28px; display: inline-block; vertical-align: middle; }

/* protocol table */
.df-protos { margin-top: 16px; }
.df-protos .tbar { gap: 10px 12px; }
.df-protos .tbar .sel { max-width: 230px; }
.df-ptbl td { padding-top: 8px; padding-bottom: 8px; }
.df-pn a { font-weight: 620; }
.df-pn a:hover, .df-fn a:hover { color: var(--accent-ink); text-decoration: underline; text-underline-offset: 3px; }
.df-pn { max-width: 260px; overflow: hidden; text-overflow: ellipsis; }
.df-cat, .df-chs { font-size: 13px; }
.df-chs { max-width: 170px; overflow: hidden; text-overflow: ellipsis; }
.df-pfoot { justify-content: space-between; }
.df-pfoot .chip .i { width: 15px; height: 15px; }

/* categories and fees */
.df-pair { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); align-items: stretch; }
.df-pair > .panel { display: flex; flex-direction: column; }
.df-pair > .panel > .panel-b { flex: 1 1 auto; }
.df-pair > .panel > .panel-f { margin-top: auto; }
.df-cbars { display: grid; gap: 4px; }
.df-cr { display: grid; grid-template-columns: minmax(0, 150px) minmax(0, 1fr) 70px 46px; align-items: center; gap: 10px; width: 100%; padding: 5px 6px; margin: 0 -6px; border-radius: 8px; font-size: 13.5px; text-align: left; transition: background-color .14s var(--ease); }
.df-cr:hover { background: var(--bg-sunk); }
.df-ck { display: flex; align-items: baseline; gap: 6px; min-width: 0; }
.df-ck b { font-weight: 620; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.df-ck small { font-size: 11.5px; color: var(--text-3); white-space: nowrap; }
.df-cb { height: 12px; border-radius: 3px; background: var(--bg-sunk); overflow: hidden; }
.df-cb i { display: block; height: 100%; background: var(--amber-deep); border-radius: 3px; }
.df-cv { text-align: right; font-weight: 650; }
.df-cs { text-align: right; font-size: 12.5px; }
.df-fsum { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--line); border-bottom: 1px solid var(--line); }
.df-fs { display: grid; gap: 2px; padding: 12px 16px; background: var(--bg); }
html[data-theme="dark"] .df-fs { background: var(--bg-soft); }
.df-fs span { font-size: 12px; color: var(--text-3); font-weight: 600; }
.df-fs b { font-size: 16.5px; font-weight: 680; }
.df-ftbl td { padding-top: 7px; padding-bottom: 7px; }
.df-fn { max-width: 220px; overflow: hidden; text-overflow: ellipsis; }
.df-fn a { font-weight: 620; }
.df-fn .sub { font-size: 11.5px; }

@media (max-width: 1180px) {
  .df-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .df-pair { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  .df-ctbl .df-c1, .df-ctbl .df-sp, .df-ctbl .df-sph { display: none; }
  .df-ptbl .df-cat, .df-ptbl .df-chs, .df-ptbl .df-c1, .df-ptbl .df-mt { display: none; }
  .df-sh { min-width: 120px; }
  .df-ftbl .df-f30 { display: none; }
}
@media (max-width: 560px) {
  .df-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .df-stats .sv { font-size: 19px; }
  .df-hist .panel-h .sp { margin-left: 0; justify-content: flex-start; }
  .df-ctbl th, .df-ctbl td, .df-ptbl th, .df-ptbl td, .df-ftbl th, .df-ftbl td { padding-left: 7px; padding-right: 7px; }
  .df-sh .df-sb { display: none; }
  .df-sh { min-width: 0; }
  .df-ctbl .df-shh { text-align: right; }
  .df-ptbl .df-rk { display: none; }
  .df-protos .tbar .sel { flex: 1 1 calc(50% - 6px); max-width: none; min-width: 0; }
  .df-protos .search-in { flex: 1 1 100%; }
  .df-protos .tbar .grow { display: none; }
  .df-fsum { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .df-cr { grid-template-columns: minmax(0, 116px) minmax(0, 1fr) 62px; }
  .df-cs { display: none; }
  .df-fees .panel-h { flex-wrap: wrap; row-gap: 10px; }
  .df-fees .panel-h .sp { margin-left: 0; }
  .df-ftbl .df-fc { display: none; }
  .df-pfoot { flex-direction: column; align-items: flex-start; }
}
