/* Piese comune ale vizualizărilor: tooltip, legendă, container de grafic. */
.v-tip {
  position: fixed; z-index: 50; max-width: min(360px, calc(100vw - 16px)); pointer-events: none;
  background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: 8px;
  box-shadow: var(--shadow); padding: .55rem .7rem; font-size: var(--t-s); line-height: 1.4;
}
.v-tip b { display: block; margin-bottom: 2px; }
.v-tip .xs { color: var(--muted); }
.v-legend { display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-4); font-size: var(--t-xs); color: var(--muted); }
.v-legend span { display: inline-flex; align-items: center; gap: 6px; }
.v-legend i { width: 12px; height: 12px; border-radius: 3px; display: inline-block; flex: none; }
.v-chart { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: var(--s-4); overflow-x: auto; }
.v-chart svg { display: block; max-width: none; }
.v-chart svg text { font-family: var(--f-body); fill: var(--ink); }
.v-chart svg .v-muted { fill: var(--muted); }
.v-chart svg .v-mono { font-family: var(--f-mono); }
.v-chart svg [tabindex]:focus { outline: none; }
.v-chart svg [tabindex]:focus-visible { outline: 2px solid var(--accent); }
.v-controls { display: flex; flex-wrap: wrap; gap: var(--s-2); align-items: center; }
.v-hint { font-size: var(--t-xs); color: var(--muted); }
.v-detail { border-left: 3px solid var(--accent); background: var(--surface-2); border-radius: 0 8px 8px 0; padding: var(--s-3) var(--s-4); display: grid; gap: var(--s-2); }
