.market-heatmap-card {
  display: flex;
  flex-direction: column;
  gap: 9px;
  min-width: 0;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
}

.market-heatmap-header, .market-heatmap-exchanges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}
.market-heatmap-header { justify-content: space-between; }
.market-heatmap-selects { display: flex; flex-wrap: wrap; gap: 6px; max-width: 100%; }
.market-heatmap-selects select { max-width: 100%; }
.market-heatmap-header h2 { margin: 0; font-size: 16px; }
.market-heatmap-header select, .market-heatmap-exchanges button {
  padding: 4px 8px;
  border: 1px solid var(--border);
  border-radius: 5px;
  background: var(--page);
  color: var(--ink);
  font: inherit;
  font-size: 12px;
  cursor: pointer;
}
.market-heatmap-exchanges button[aria-pressed="true"] {
  border-color: #19b992;
  background: #18a88128;
}
#marketHeatmapStatus { margin: 0; color: var(--muted); font-size: 12px; }
.market-heatmap-plot {
  position: relative;
  flex: 1 0 340px;
  min-width: 0;
  overflow: hidden;
  border-radius: 5px;
  background: var(--page);
}
.market-heatmap-tile {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: inset 0 0 0 .5px #08131e;
  color: #fff;
  font-size: 11px;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
}
.market-heatmap-tile:hover, .market-heatmap-tile:focus-visible {
  z-index: 1;
  outline: 1px solid #fff;
  outline-offset: -1px;
  color: #fff;
}
.market-heatmap-tile strong { font-size: 12px; }
.market-heatmap-scale {
  display: flex;
  justify-content: space-between;
  padding-top: 6px;
  background: linear-gradient(90deg, var(--market-heatmap-gradient, #a5233a, #374453, #078856)) top / 100% 4px no-repeat;
  color: var(--muted);
  font-size: 11px;
}
@media (max-width: 400px) {
  .market-heatmap-card { padding: 10px; }
  .market-heatmap-plot { flex-basis: 290px; }
}
