/* chart.css -- extracted verbatim from the page's inline <style> block
   (v3.0.0 frontend extraction). Palette tokens (__CHART_SURFACE__ etc.)
   became var(--...) refs; nothing else changed. */

#chart { width: 100%; flex: 1 1 auto; min-height: 0; transition: opacity 0.1s linear; }
/* Applied for the duration of a /data fetch so the previous ticker's chart
   doesn't just sit there unchanged looking idle while the new one loads --
   see load() in the script below. */
#chart.loading { opacity: 0.35; }
#chart.measure-mode .nsewdrag { cursor: crosshair !important; }
/* Full-height crosshair spanning all stacked rows (price/index/volume) --
   see handleHoverCrosshair() in the script below for why this can't just be
   each row's own built-in spike line: a hover label only covers the row it
   is in, and a spike's spikemode="across" only spans its own subplot's
   domain, not sibling subplots. `position: fixed` is deliberate: it's
   positioned from the native mouse event's clientX/Y directly, with no
   container-relative math needed. Lives outside #chart so Plotly's own DOM
   management of that div never touches it. */
#chartCrosshair {
  position: fixed; width: 0; border-left: 1px dashed var(--muted);
  pointer-events: none; z-index: 20; display: none;
}
/* The hovered bar's date, pinned to the bottom of the crosshair where a
   date axis would have printed it -- the x-axis is ordinal (bar positions,
   see the _BODY_WIDTH_FRACTION comment in chart_viewer.py), so nothing on
   the axis itself names the hovered day. labelHoverBoxDates() also puts the
   date in the hover box; this badge is the axis-anchored reading, right
   under the crosshair and legible from any row. */
#chartDateBadge {
  position: fixed; transform: translateX(-50%);
  pointer-events: none; z-index: 21; display: none;
  background: var(--text); color: var(--surface);
  border-radius: 3px; padding: 2px 6px; font-size: 11px; white-space: nowrap;
}
/* One chip per non-hovered row (see handleHoverCrosshair/formatSyncedTip),
   styled to read like Plotly's own unified hover box since it sits right
   next to it. Positioned/created fresh on every hover tick, not reused
   nodes -- there are at most 2 of these at once (index + volume, or just
   volume), so rebuilding is cheaper than diffing. */
.synced-tip {
  position: fixed; pointer-events: none; z-index: 20;
  background: var(--surface); border: 1px solid var(--grid); border-radius: 3px;
  padding: 4px 8px; font-size: 12px; line-height: 1.5; color: var(--text);
  box-shadow: 0 1px 3px rgba(0,0,0,0.15); white-space: nowrap;
}
#measureToggle { accent-color: var(--text); }
/* Shown instead of the chart/range-bar when zero tickers pass the trend
   template as of the current cutoff -- see refreshTickers()/showNoChartState(). */
#noChartMsg {
  display: none;
  width: 100%; flex: 1 1 auto; min-height: 0;
  align-items: center; justify-content: center;
  padding: 20px; box-sizing: border-box; text-align: center;
  color: var(--muted); font-size: 14px;
}
#noChartMsg.visible { display: flex; }
