/* Interactive marks preserve the chart's geometry and the editorial palette. */
.chart-mark { cursor: pointer; transition: opacity .18s ease, filter .18s ease, box-shadow .18s ease; -webkit-tap-highlight-color: transparent; }
.chart-scope svg text { pointer-events: none; }
.chart-mark.chart-muted, .chart-related.chart-muted { opacity: .18; }
.chart-mark.chart-selected, .chart-mark.chart-connected { opacity: 1; }
.chart-mark.chart-selected { filter: drop-shadow(0 2px 3px #252a2640); }
.chart-mark:focus-visible { outline: 2px solid #a23829; outline-offset: 4px; }
.chart-scope svg circle.chart-mark { pointer-events: visiblePainted; }
.chart-scope svg circle[stroke-dasharray].chart-mark { pointer-events: visibleStroke; }
.chart-scope svg circle.chart-mark.chart-selected:not([stroke-dasharray]) { stroke: #252a26; stroke-width: 2.5px; }
.chart-line-point { fill: #a23829; stroke: #f6f5f0; stroke-width: 2.5px; opacity: 0; pointer-events: all!important; }
.chart-line-point.chart-muted { opacity: 0; }
.chart-line-point.chart-selected, .chart-line-point:focus-visible { opacity: 1; }
.chart-crosshair { stroke: #a23829; stroke-width: 1; stroke-dasharray: 3 4; opacity: .6; pointer-events: none; }
.chart-center-snapshot { fill: #a23829; }
.chart-exploring .record-donut circle:first-child { opacity: .12; }
.tm-c.chart-selected { z-index: 2; box-shadow: inset 0 0 0 3px #f6f5f0; }
.hm-c.chart-selected { box-shadow: inset 0 0 0 2px #252a26; }
.icons .chart-selected { box-shadow: 0 0 0 3px #f6f5f0, 0 0 0 4px #a23829; }
.record-breakdown li.chart-selected, .record-breakdown li.chart-connected { color: #a23829; background: #a2382909; }
.record-breakdown li.chart-mark { border-radius: 2px; }
.fingerprint-mark.chart-selected { filter: none; box-shadow: 0 0 0 2px #f6f5f0,0 0 0 3px #252a26; }
.chart-popup { position: fixed; z-index: 110; width: max-content; max-width: min(320px,calc(100vw - 24px)); padding: 16px 18px; color: #252a26; background: #faf9f5; border: 1px solid #b9b7ac; border-top: 2px solid #a23829; border-radius: 3px; box-shadow: 0 8px 32px #252a261a; pointer-events: none; animation: chart-detail-in .16s ease-out; }
@keyframes chart-detail-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: translateY(0); } }
.chart-popup[hidden] { display: none; }
.chart-popup-pinned { pointer-events: auto; }
.chart-popup-label { font: 500 13px/1.45 Arial,sans-serif; margin: 0 0 8px; color: #a23829; max-width: 34ch; }
.chart-popup-value { font: 12px/1.65 Arial,sans-serif; margin: 0; white-space: pre-line; overflow-wrap: anywhere; max-width: 40ch; }
.chart-popup-hint { font: 9px/1.5 var(--mono); margin: 12px 0 0; color: #797467; }
.chart-popup-actions { display: flex; gap: 12px; align-items: center; justify-content: space-between; margin-top: 16px; padding-top: 12px; border-top: 1px solid #dedbd0; }
.chart-popup-actions a, .chart-popup-close { font: 12px/1.5 Arial,sans-serif; }
.chart-popup-actions a { color: #a23829; text-decoration: underline; text-underline-offset: 3px; }
.chart-popup-close { border: 0; padding: 4px 0; background: transparent; color: #625f54; cursor: pointer; margin-left: auto; white-space: nowrap; }
.chart-popup:focus-within { border-color: #a23829; }
.archive-filter-context { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; font: 12px/1.6 Arial,sans-serif; color: #716d64; margin-top: 14px; }
.archive-filter-context:empty { display: none; }
.archive-filter-context button { border: 0; border-bottom: 1px solid #b9b7ac; color: #a23829; background: transparent; padding: 4px 0; font: inherit; cursor: pointer; }
.forecast-target { border-color: #a23829; box-shadow: 0 0 0 2px #a2382920; scroll-margin-top: 32px; }
@media (prefers-reduced-motion: reduce) {
  .chart-mark, .chart-related { transition: none; }
  .chart-popup { animation: none; }
}
@media (hover: none) {
  .chart-popup-hint { font-size: 10px; }
  .chart-popup-actions a, .chart-popup-close { padding-block: 8px; }
}
