/* crypto heatmap */
.hm-stats { margin-bottom: 16px; grid-template-columns: repeat(6, minmax(0, 1fr)); }
.hm-stats .ss { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hm-panel .tbar .seg[hidden] { display: none; }

.hm-stage { position: relative; height: clamp(520px, 62vh, 680px); margin: 10px; }
.hm-stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: manipulation; }
.hm-msg { position: absolute; inset: 0; display: grid; place-items: center; font-size: 14px; color: var(--text-3); text-align: center; padding: 20px; pointer-events: none; }
.hm-msg[hidden] { display: none; }
.hm-tip { position: absolute; z-index: 5; min-width: 210px; max-width: 280px; padding: 12px 14px; border-radius: 12px; background: var(--bg-raised); border: 1px solid var(--line-strong); box-shadow: 0 18px 40px -18px rgba(10, 6, 16, .45); font-size: 13px; pointer-events: none; }
.hm-th { display: flex; align-items: baseline; gap: 8px; margin-bottom: 6px; padding-bottom: 6px; border-bottom: 1px solid var(--line); }
.hm-th b { font-size: 14.5px; font-weight: 680; }
.hm-th span { color: var(--text-3); font-size: 12px; font-weight: 600; }
.hm-tr { display: flex; justify-content: space-between; gap: 14px; line-height: 1.75; }
.hm-tr span { color: var(--text-3); }
.hm-tr b { font-weight: 640; }
.hm-hint { margin-top: 6px; padding-top: 6px; border-top: 1px solid var(--line); font-size: 12px; color: var(--text-3); }

.hm-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; padding: 2px 18px 14px; font-size: 12.5px; color: var(--text-2); }
.hm-lg-bar { display: inline-flex; height: 10px; border-radius: 3px; overflow: hidden; border: 1px solid var(--line); }
.hm-lg-bar i { display: block; width: 22px; height: 100%; }
.hm-lg-t { margin-left: 6px; color: var(--text-3); }

.hm-lists { margin-top: 16px; }
.hm-list { list-style: none; margin: 0; padding: 6px 8px 10px; }
.hm-list li + li { border-top: 1px solid var(--line); }
.hm-li { display: grid; grid-template-columns: 22px 22px minmax(0, 1fr) minmax(60px, 34%) 72px; gap: 10px; align-items: center; padding: 9px 10px; border-radius: 10px; }
a.hm-li:hover { background: var(--bg-sunk); }
.hm-rk { font-size: 12.5px; color: var(--text-3); text-align: right; }
.hm-li img, .hm-li .cbadge { width: 22px; height: 22px; border-radius: 50%; }
.hm-nm { display: grid; line-height: 1.25; min-width: 0; }
.hm-nm b { font-size: 14px; font-weight: 650; }
.hm-nm small { font-size: 12px; color: var(--text-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hm-bar { height: 6px; border-radius: 3px; background: var(--bg-sunk); overflow: hidden; }
.hm-bar i { display: block; height: 100%; border-radius: 3px; }
.hm-bar i.up { background: var(--up); }
.hm-bar i.down { background: var(--down); }
.hm-pc { text-align: right; font-weight: 650; font-size: 14px; }
.hm-empty { padding: 18px 10px; color: var(--text-3); font-size: 14px; }

@media (max-width: 1100px) { .hm-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 760px) {
  .hm-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hm-stage { height: 560px; margin: 8px; }
  .hm-lg-bar i { width: 16px; }
}
@media (max-width: 520px) {
  .hm-li { grid-template-columns: 18px 22px minmax(0, 1fr) 64px; }
  .hm-bar { display: none; }
}
