/* Chart tokens for viz.js. Categorical slots: validated palette (light on #fff, dark on #1c1f23; adjacent CVD ΔE ≥ 8.9). */
:root{--viz-1:#2f6db5;--viz-2:#e0703f;--viz-3:#1a9c84;--viz-4:#d29a1e;--viz-5:#d0679a;--viz-6:#4f8f2f;--viz-7:#6c5bc4;--viz-8:#c94a4a;--viz-other:#a3abb5;
 --viz-up:#268166;--viz-down:#bd4c59;--viz-grid:#edf0f3;--viz-axis:#74808e;--viz-ink:#222d3c;--viz-surface:#fff;
 --viz-revenue:#3d5e7f;--viz-profit:#2f8a5f;--viz-cost:#c94a4a;--viz-expense:#d29a1e;--viz-price:#56657a;--viz-buy:#268166;--viz-sell:#d4434f;--viz-hold:#d6d6d9}
:root[data-theme=dark]{--viz-1:#4a86d0;--viz-2:#d96a3a;--viz-3:#22a58c;--viz-4:#b8861a;--viz-5:#d56c9c;--viz-6:#5c9a3a;--viz-7:#8b7be0;--viz-8:#d85c5c;--viz-other:#6b7480;
 --viz-up:#68c6a2;--viz-down:#ef8894;--viz-grid:#2a2f36;--viz-axis:#9ba4b0;--viz-ink:#e0e4e9;--viz-surface:#1c1f23;
 --viz-revenue:#7f9fc4;--viz-profit:#4fae7f;--viz-cost:#d85c5c;--viz-expense:#b8861a;--viz-price:#aab6c6;--viz-buy:#5cc19a;--viz-sell:#ef6f7a;--viz-hold:#4d4f54}
.viz{position:relative;min-width:0;user-select:none;-webkit-user-select:none}
.viz-svg{display:block;max-width:none;overflow:visible;touch-action:pan-y}
.viz-grid{stroke:var(--viz-grid);stroke-width:1;shape-rendering:crispEdges}
.viz-ref{stroke:var(--viz-axis);stroke-width:1;stroke-dasharray:3 4;opacity:.7}
.viz-axis{fill:var(--viz-axis);font:500 12.5px "IBM Plex Sans",sans-serif;font-variant-numeric:tabular-nums}
.viz-axis.is-strong{fill:var(--viz-ink);font-weight:600}
.viz-line{fill:none;stroke-width:2;stroke-linejoin:round;stroke-linecap:round}
.viz-wash{opacity:.11;stroke:none}
.viz-cross{stroke:var(--viz-axis);stroke-width:1;opacity:.55}
.viz-dot{stroke:var(--viz-surface);stroke-width:2}
.viz-hit{cursor:crosshair}.viz-hit.is-clickable{cursor:pointer}
.viz-col{transition:opacity .15s}.viz-col.is-dim{opacity:.38}
.viz-mark{fill:var(--gold,#c9971f)}
.viz-sankey{overflow-x:auto;overflow-y:hidden;scrollbar-width:thin}
.viz-band{opacity:.34;transition:opacity .15s}.viz-svg.is-focus .viz-band{opacity:.16}.viz-svg.is-focus .viz-band.is-on{opacity:.6}
.viz-node-label{fill:var(--viz-ink);font:600 13.5px "IBM Plex Sans",sans-serif}
.viz-node-value{fill:var(--viz-axis);font:500 12.5px "IBM Plex Sans",sans-serif;font-variant-numeric:tabular-nums}
.viz-node-label.is-halo,.viz-node-value.is-halo{paint-order:stroke;stroke:var(--viz-surface);stroke-width:4px;stroke-linejoin:round}
.viz-price{stroke:var(--viz-price);stroke-width:1.6}
.viz-trade{stroke:var(--viz-surface);stroke-width:2;cursor:pointer;opacity:.85;transition:opacity .15s}.viz-trade:hover{opacity:1}
.viz-trade.is-buy{fill:var(--viz-buy)}.viz-trade.is-sell{fill:var(--viz-sell)}
.viz-tip{position:absolute;left:0;top:0;z-index:5;pointer-events:none;min-width:150px;max-width:300px;padding:10px 12px;border-radius:8px;background:var(--surface,#fff);color:var(--ink);border:1px solid var(--line);box-shadow:0 10px 30px -12px rgba(15,34,56,.35);font-size:13px;line-height:1.45;display:flex;flex-direction:column;gap:2px}
.viz-tip[hidden]{display:none}
.viz-tip>b{font-weight:600;font-size:13px}
.viz-tip-value{font:600 16px "IBM Plex Sans",sans-serif;font-variant-numeric:tabular-nums}
.viz-tip ul{list-style:none;margin:6px 0 2px;padding:0;display:grid;gap:4px}
.viz-tip li{display:grid;grid-template-columns:10px 1fr auto auto;gap:8px;align-items:center;font-size:12.5px}
.viz-tip li i{width:10px;height:10px;border-radius:3px}
.viz-tip li b{font-weight:600;font-variant-numeric:tabular-nums}.viz-tip li em{font-style:normal;color:var(--muted);min-width:42px;text-align:right}
.viz-tip .viz-tip-trades li{grid-template-columns:1fr auto}
.viz-tip-total{display:flex;justify-content:space-between;border-top:1px solid var(--line);padding-top:6px;margin-top:4px;font-size:12.5px}
.viz-tip .gain{color:var(--viz-up)}.viz-tip .loss{color:var(--viz-down)}
/* Legend: swatch + text in ink colors (identity never by color alone). */
.viz-legend{display:flex;flex-wrap:wrap;gap:8px 18px;margin:0 0 14px;padding:0;list-style:none}
.viz-legend li{display:flex;align-items:center;gap:8px;font-size:13.5px;color:var(--ink)}
.viz-legend i{width:11px;height:11px;border-radius:3px;flex:none}
.viz-legend small{color:var(--muted);font-size:12.5px;font-variant-numeric:tabular-nums}
/* Segmented control shared by the new pages. */
.seg{display:inline-flex;gap:2px;padding:3px;border:1px solid var(--line);border-radius:9px;background:var(--raised)}
.seg button{border:0;background:none;color:var(--muted);font:500 13.5px "IBM Plex Sans",sans-serif;padding:7px 13px;border-radius:7px;cursor:pointer;min-height:34px;transition:background-color .15s,color .15s}
.seg button:hover{color:var(--ink)}
.seg button[aria-pressed=true]{background:var(--surface);color:var(--ink);font-weight:600;box-shadow:0 1px 2px rgba(15,34,56,.12)}
:root[data-theme=dark] .seg button[aria-pressed=true]{background:#2a3038}
/* 13F quarter on hover (superinvestor trades) and investor counts inside large dots */
.viz-quarter{fill:transparent;pointer-events:none;transition:fill .15s}
.viz-quarter.is-on.is-buy{fill:color-mix(in srgb,var(--viz-buy) 9%,transparent)}.viz-quarter.is-on.is-sell{fill:color-mix(in srgb,var(--viz-sell) 9%,transparent)}
.viz-trade-n{fill:#fff;font:600 11.5px "IBM Plex Sans",sans-serif;font-variant-numeric:tabular-nums;pointer-events:none}
.viz-tip .viz-tip-moves li{grid-template-columns:minmax(0,1fr) auto;gap:10px}
.viz-tip .viz-tip-moves li span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.viz-tip .viz-tip-moves li em{min-width:0;color:var(--muted)}
.viz-tip-note{display:block;margin-top:4px;font-size:12px;color:var(--muted)}
/* Option trades (Congress member charts) are hollow; holdings bars under the price (investor position charts). */
.viz-trade.is-option{stroke-width:2.6}.viz-trade.is-option.is-buy{fill:var(--viz-surface);stroke:var(--viz-buy)}.viz-trade.is-option.is-sell{fill:var(--viz-surface);stroke:var(--viz-sell)}
.viz-hold{pointer-events:none;transition:opacity .15s}.viz-hold.is-up{fill:var(--viz-buy);opacity:.72}.viz-hold.is-down{fill:var(--viz-sell);opacity:.72}.viz-hold.is-flat{fill:var(--viz-hold)}
.viz-hold-hit{cursor:pointer}.viz-quarter.is-on.is-flat{fill:color-mix(in srgb,var(--viz-hold) 28%,transparent)}
