.history-picker {
  display: flex;
  gap: 2px;
  width: fit-content;
  padding: 2px;
  margin: 7px 0 8px;
  border-radius: 8px;
  background: #0c1723;
}
.history-picker button {
  padding: 4px 11px;
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  border: 1px solid transparent;
  border-radius: 6px;
  color: #a8bbcb;
  background: transparent;
}
.history-picker button[aria-pressed=true] {
  background: #1c3940;
  border-color: #37565a;
  color: #94edd4;
}
.history-legend {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 4px 14px;
  margin-top: 5px;
  color: #b9cbd7;
  font-size: 11px;
}
.history-legend span {display: inline-flex; align-items: center; gap: 5px;}
.deal-key::before {content: ''; width: 7px; height: 7px; border-radius: 50%; background: #68e0bb;}
.median-key::before {content: ''; width: 12px; height: 2px; background: #ffb679;}
#detail {
  --history-label: #496271;
  --history-grid: #dbe4ea;
  --history-trade: #087d73;
  --history-median: #ad5f1a;
}
#detail .history-picker {background: #edf2f4;}
#detail .history-picker button {color: #476071;}
#detail .history-picker button[aria-pressed=true] {background: #fff; border-color: #b6ccc9; color: #09665e;}
#detail .history-range, #detail .history-legend {color: var(--history-label);}
#detail .deal-key::before {background: var(--history-trade);}
#detail .median-key::before {background: var(--history-median);}
#detail .history-chart.compact {background: #fff;}
#detail .history-scroll th {background: #eff5f6;}
#detail .history-scroll tbody tr:nth-child(even) {background: #f6f9f9;}
