/* Shared price-history axes and point inspection. */
.ph-chart { --ph-accent: var(--primary-hover, #ff7300); --ph-muted: #aaaab3; --ph-border: #333338; min-width: 0; color: #f2f2f3; font: 12px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
.ph-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 18px; font-size: 11px; color: var(--ph-muted); }
.ph-grid { display: grid; grid-template-columns: 54px minmax(0, 1fr); gap: 6px; }
.ph-y-axis { position: relative; height: 140px; }
.ph-y-tick { position: absolute; right: 0; transform: translateY(-50%); font-size: 11px; font-variant-numeric: tabular-nums; color: var(--ph-muted); white-space: nowrap; }
.ph-plot { position: relative; height: 140px; min-width: 0; }
.ph-svg { position: absolute; width: 100%; height: 100%; display: block; overflow: visible; pointer-events: none; }
.ph-grid-line { stroke: var(--ph-border); stroke-width: 1; vector-effect: non-scaling-stroke; }
.ph-line { stroke: var(--ph-accent); stroke-width: 2; fill: none; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.ph-guide { stroke: #888891; stroke-width: 1; stroke-dasharray: 3 3; opacity: 0; vector-effect: non-scaling-stroke; }
.ph-chart .ph-point { position: absolute; top: 0; bottom: 0; min-width: 0; height: 100%; margin: 0; padding: 0; border: 0; border-radius: 0; background: transparent; cursor: crosshair; z-index: 2; box-shadow: none; }
.ph-chart .ph-point:hover, .ph-chart .ph-point:active { background: transparent; }
.ph-chart .ph-point:focus-visible { outline: 1px dashed var(--ph-accent); outline-offset: 0; }
.ph-marker { position: absolute; width: 8px; height: 8px; border-radius: 50%; transform: translate(-50%, -50%); background: var(--ph-accent); box-shadow: 0 0 0 2px #18181b; z-index: 3; pointer-events: none; }
.ph-tooltip { position: absolute; top: 6px; display: flex; flex-direction: column; gap: 2px; min-width: 126px; padding: 8px 10px; border: 1px solid #50505a; border-radius: 4px; background: #222225; transform: translateX(-50%); z-index: 4; pointer-events: none; }
.ph-tooltip-date { font-size: 11px; color: #c7c7ce; }
.ph-tooltip-price { font-size: 14px; color: #f2f2f3; font-weight: 600; font-variant-numeric: tabular-nums; }
.ph-tooltip[hidden], .ph-marker[hidden] { display: none; }
.ph-x-axis { display: flex; justify-content: space-between; gap: 12px; margin: 10px 0 0 60px; color: var(--ph-muted); font-size: 10px; }
.ph-hint { margin: 12px 0 0; font-size: 10px; color: var(--ph-muted); }
.ph-chart .ph-stats { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--ph-border); color: var(--ph-muted); font-size: 11px; }
.ph-chart .ph-stats b { font-weight: 500; color: #f2f2f3; font-variant-numeric: tabular-nums; }
@media (max-width: 480px) {
  .ph-plot, .ph-y-axis { height: 120px; }
  .ph-grid { grid-template-columns: 46px minmax(0, 1fr); }
  .ph-x-axis { margin-left: 52px; font-size: 10px; }
}
