/* Stage 3: verified price history and change tracking. */
.stage3-history-card p,
.stage3-method p,
.stage3-empty p { color: var(--muted); line-height: 1.65; }

.stage3-history-list {
  margin: 16px 0;
  padding: 0;
  list-style: none;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
}

.stage3-history-list li {
  display: grid;
  grid-template-columns: 110px minmax(150px, 220px) 1fr;
  gap: 14px;
  align-items: start;
  padding: 12px 14px;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.stage3-history-list li:last-child { border-bottom: 0; }
.stage3-history-list li > span { color: var(--muted); font-size: 12px; }
.stage3-history-list li > strong { font-size: 12px; }
.stage3-history-list li > p { margin: 0; font-size: 12px; color: var(--text); }

.stage3-chart-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 16px 0;
}

.stage3-chart-card {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px;
  background: var(--paper);
}

.stage3-chart-card > span,
.stage3-chart-card > small { display: block; color: var(--muted); font-size: 11px; }
.stage3-chart-card > strong { display: block; margin-top: 5px; font-size: 18px; }
.stage3-sparkline { width: 100%; height: 90px; margin: 8px 0 4px; overflow: visible; }
.stage3-chart-axis { stroke: var(--line); stroke-width: 1; }
.stage3-chart-line { fill: none; stroke: var(--accent); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }

.stage3-changes-table { min-width: 860px; }
.stage3-changes-table td:nth-child(1) { white-space: nowrap; color: var(--muted); }
.stage3-changes-table td:nth-child(2) small { display: block; margin-top: 3px; color: var(--muted); }
.stage3-change { display: inline-block; font-size: 12px; line-height: 1.45; }
.stage3-down { color: #087f5b; }
.stage3-up { color: #b42318; }
.stage3-mixed,
.stage3-route { color: var(--text); }
.stage3-empty { margin-top: 18px; }

@media (max-width: 760px) {
  .stage3-history-list li { grid-template-columns: 1fr; gap: 5px; }
  .stage3-chart-grid { grid-template-columns: 1fr; }
}
