/* Shared application chart styles, loaded after either theme. */
.chart-card[data-performance-chart]{min-width:0;overflow:visible}
[data-performance-chart] .performance-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin:0 0 12px;padding:0}
[data-performance-chart] .performance-heading h3{margin:0;color:var(--ink,#263355);font-size:16px;font-weight:600;line-height:1.4}
[data-performance-chart] .performance-average{flex:none;text-align:right;display:flex;flex-direction:column;gap:5px}
[data-performance-chart] .performance-average strong{color:var(--blue,#465abd);font-size:32px;font-weight:650;letter-spacing:-1px;line-height:1;font-variant-numeric:tabular-nums}
[data-performance-chart] .performance-average strong span{font-size:19px;margin-left:2px;font-weight:500}
[data-performance-chart] .performance-average small{color:var(--muted,#63718c);font-size:11px;line-height:1.3;font-weight:400;letter-spacing:0}
.performance-plot{position:relative;padding-bottom:8px}
.performance-svg{display:block;width:100%;height:auto;overflow:visible}
.performance-grid{stroke:var(--line,#e8edf4);stroke-width:1;stroke-dasharray:3 5}
.performance-axis{fill:var(--muted,#63718c);font-size:10px;font-family:inherit}
.performance-line{stroke:var(--blue,#465abd);stroke-width:2.5;fill:none;stroke-linecap:round;stroke-linejoin:round}
.performance-area{fill:var(--blue,#465abd);opacity:.055}
.performance-dot{fill:var(--blue,#465abd);stroke:var(--white,#fff);stroke-width:1.5}
.performance-bar{fill:var(--blue,#465abd);opacity:.8}
.performance-zero{stroke:var(--blue,#465abd);stroke-width:2;stroke-linecap:round;opacity:.35}
.performance-hit{fill:transparent;cursor:crosshair;outline:none}
.performance-mark.is-active .performance-dot{r:5;stroke-width:2}
.performance-mark.is-active .performance-bar{opacity:1}
.performance-mark.is-active .performance-hit{fill:var(--blue,#465abd);fill-opacity:.045}
.performance-mark:focus-within .performance-hit{stroke:var(--blue,#465abd);stroke-width:1;stroke-dasharray:3 4}
.chart-months.performance-months{display:block;position:relative;height:18px;font-size:10px;color:var(--muted,#63718c)}
.performance-months span{position:absolute;transform:translateX(-50%);white-space:nowrap}
.performance-tooltip{position:absolute;z-index:5;top:0;left:0;display:flex;align-items:center;gap:16px;max-width:calc(100% - 16px);padding:10px 14px;border:1px solid var(--line,#e3e8f0);border-radius:8px;background:#fff;color:#263355;box-shadow:0 6px 24px #25335418;pointer-events:none;white-space:nowrap;font-size:12px;line-height:1.5}
.performance-tooltip[hidden]{display:none}
.performance-tooltip strong{font-size:15px;font-variant-numeric:tabular-nums;color:var(--blue,#465abd)}
@media(max-width:600px){
  [data-performance-chart] .performance-heading{gap:12px}
  [data-performance-chart] .performance-heading h3{font-size:15px}
  [data-performance-chart] .performance-average strong{font-size:28px}
  .performance-months{font-size:9px!important}
  .performance-axis{font-size:13px}
}
