.fg-page {
  --fg-price: #60a5fa;
}
html[data-theme-mode="day"] .fg-page {
  --fg-price: #2563eb;
}
#fg-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.fg-page .bp-segment { flex-wrap: wrap; }
.fg-legend {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px 18px;
  padding: 12px 14px 0;
  font: 600 .76rem var(--sans);
  color: var(--text);
}
.fg-legend span::before {
  content: '';
  display: inline-block;
  vertical-align: middle;
  width: 18px;
  margin-right: 6px;
  height: 3px;
  background: var(--fg-price);
}
.fg-legend .fg-index-key::before {
  background: linear-gradient(to right, var(--fg-extreme-fear), var(--fg-fear), var(--fg-neutral), var(--fg-greed), var(--fg-extreme-greed));
}
.fg-legend a { color: var(--muted); margin-left: auto; }
#fg-plot { position: relative; margin: 0 8px; }
#fg-chart { display: block; width: 100%; height: clamp(270px, 30vw, 390px); touch-action: pan-y; }
.fg-price-line, .fg-index-line { fill: none; stroke-linejoin: round; stroke-linecap: round; }
.fg-price-line { stroke: var(--fg-price); stroke-width: 2; }
.fg-index-line { stroke: var(--fg-index-paint); stroke-width: 1.75; }
#fg-chart .fg-index-tick { fill: var(--fg-index-paint); }
#fg-tip { white-space: pre-line; min-width: 0; max-width: 96%; }
#fg-brush { height: 48px; margin: 0 18px; position: relative; }
#fg-overview { width: 100%; height: 100%; display: block; }
#fg-brush input {
  appearance: none; -webkit-appearance: none; background: transparent;
  position: absolute; inset: 0; width: 100%; height: 100%; margin: 0;
  pointer-events: none;
}
#fg-brush input::-webkit-slider-thumb {
  appearance: none; width: 11px; height: 38px; border-radius: 3px;
  background: var(--muted); opacity: .8; pointer-events: auto; cursor: ew-resize;
}
#fg-brush input::-moz-range-thumb {
  width: 11px; height: 38px; border-radius: 3px;
  background: var(--muted); opacity: .8; pointer-events: auto; cursor: ew-resize;
}
.fg-method { margin: 10px 14px 12px; }
@media (max-width: 600px) {
  .fg-legend a { margin-left: 0; }
}
