/* Visucio UI 1.2 · chart palette, measured geometry and motion for financial series. */
:is(.vsn,.vw-root,.vw-graphs,.wealth-client){
  --vc-primary:var(--visu-primary);
  --vc-secondary:var(--visu-muted);
  --vc-surface:var(--visu-surface);
  --vc-ink:var(--visu-text);
  --vc-muted:var(--visu-muted);
  --vc-line:var(--visu-divider);
  --vc-tint:var(--visu-surface-2);
  --vc-ease:var(--visu-ease);
}
.vsn .vc-card,.vw-graphs figure,.vsn .vx-panel,.vsn .vcr-detail-panel{
  border-radius:clamp(1.2rem,2vw,1.65rem);
  border:1px solid var(--vc-line);
  box-shadow:var(--visu-shadow-card);
  align-content:start;
}
.vsn .vc-card,.vw-graphs figure,html:is([data-theme=dark],[data-vis-theme=dark]) .vw-graphs figure{
  background:var(--vc-surface);
}
.vsn .vc-card{padding:clamp(1rem,2.5vw,1.75rem);gap:1rem}
.vsn .vsn-home-flow .vc-card{background:transparent;box-shadow:none}
.vsn .vc-head{display:flex;align-items:center;justify-content:flex-start;gap:.8rem;flex-wrap:nowrap}
.vsn .vc-head>div{flex:1;min-width:0}
.vsn .vc-head h2,.vsn .vx-panel h3,.vw-graphs figcaption{
  margin:0;color:var(--vc-ink);font-family:var(--visu-font,system-ui);
  font-size:clamp(1.05rem,1.76vw,1.4rem);line-height:1.18;font-weight:550;letter-spacing:-.048em;text-wrap:balance;
}
.vsn .vc-head p{margin:.28rem 0 0;font-size:.78rem;line-height:1.5}
.vsn .vc-head label{margin-inline-start:auto;align-content:start;gap:.2rem;max-width:32%;font-size:.7rem}
.vsn .vc-head select{max-width:100%;min-height:2.75rem;padding:.35rem .45rem;border-radius:.7rem;background:var(--vc-surface)}
.vsn .vc-chart-icon{
  display:grid;place-items:center;width:2.6rem;height:2.6rem;flex:0 0 2.6rem;
  color:var(--vc-primary);background:var(--vc-surface);border:1px solid var(--vc-line);border-radius:.85rem;
  box-shadow:0 4px 11px -8px #263f88aa;
}
.vsn .vc-legend{display:flex;flex-wrap:wrap;gap:.45rem 1rem;font-weight:500;color:var(--vc-muted);font-size:.78rem}
.vsn .vc-legend .vc-dot::before{width:.6rem;height:.6rem;border-radius:.17rem;background:var(--vc-primary)}
.vsn .vc-legend .vc-outgoing-dot::before{background:var(--visu-error)}
.vsn .vc-legend .vc-blue-dot::before,.vsn .vc-legend .vc-gray-dot::before{height:0;width:1.15rem;background:transparent;border-top:2px solid var(--vc-primary);border-radius:0}
.vsn .vc-legend .vc-gray-dot::before{border-top:2px dashed var(--vc-secondary)}
.vsn .vc-grid,.vw-graphs .vw-axis,.wealth-client .w-chart-baseline{stroke:var(--vc-line)}
.vsn .vc-income{fill:var(--vc-primary)}
.vsn .vc-outgoing{fill:var(--visu-error)}
.vsn .vc-area{fill:var(--vc-primary);fill-opacity:.07;stroke:none}
.vsn path.vc-current,.vw-graphs .vw-line,.wealth-client .w-chart-line{stroke:var(--vc-primary);stroke-width:3;stroke-linecap:round;stroke-linejoin:round}
.vsn path.vc-prev{stroke:var(--vc-secondary);stroke-dasharray:4 5;stroke-width:2}
.vsn circle.vc-point{fill:var(--vc-surface);stroke:var(--vc-primary);stroke-width:2}
.vsn circle.vc-point-prev{stroke:var(--vc-secondary)}
.vsn .vc-selection{stroke:var(--vc-muted);opacity:.65}
.vsn [data-vc-plot] text,.vsn .vx-explore :is(.vx-chart small,.vx-rule>span),.vw-chart-labels,.vw-scale>span{font-family:var(--visu-font,system-ui);font-variant-numeric:tabular-nums;font-weight:500}
.vsn .vc-tooltip{
  display:flex;align-items:center;gap:.7rem 1rem;flex-wrap:wrap;min-width:0;
  padding:.75rem .9rem;background:var(--vc-tint);border:1px solid var(--vc-line);border-radius:.92rem;
}
.vc-readout-date{font-size:.81rem;font-weight:600;line-height:1.38;color:var(--vc-ink)}
.vc-readout-date::first-letter{text-transform:uppercase}
.vc-readout-date small{display:block;color:var(--vc-muted);font-size:.69rem;font-weight:500}
.vsn .vc-tooltip dl{display:flex;gap:.7rem 1.1rem;flex:1 1 auto;flex-wrap:wrap;justify-content:flex-end;align-items:start;margin:0}
.vsn .vc-tooltip dl>div{display:grid;gap:.08rem;min-width:0}
.vsn .vc-tooltip dt{font-size:.7rem;color:var(--vc-muted);font-weight:500}
.vsn .vc-tooltip dd{margin:0;font-size:.88rem;line-height:1.3;font-weight:600;color:var(--vc-ink);overflow-wrap:anywhere}
.vsn :is(.vc-card,.vc-comparison) details{border:none;background:transparent;box-shadow:none;padding:0;margin:0}
.vsn .vc-card details>summary{width:fit-content;cursor:pointer;color:var(--vc-primary);padding:.48rem .1rem;font:600 .8rem/1.5 var(--visu-font,system-ui)}
.vsn .vc-comparison{margin:0;border:0;background:none;padding:0;display:grid;gap:.6rem}
.vsn .vc-comparison p{color:var(--vc-muted);font-size:.78rem;line-height:1.55;margin:0}
.vsn .vc-card details[open]{min-width:0;overflow-x:auto;overscroll-behavior-inline:contain}
.vsn .vc-card details .vsn-table{min-width:29rem;table-layout:auto}
.vsn .vc-card details .vsn-table :is(th,td):nth-child(2){display:table-cell}
.vsn .vc-card details .vsn-table td:first-child{width:auto}
.vsn .vc-card>.vsn-link{justify-self:start;width:fit-content}
.vsn .vx-panel .vx-track i:not(.vx-minus,.vx-missing,.vx-zero){background:var(--vc-primary);border-radius:.4rem .4rem 0 0}
.vsn .vx-explore .vx-chart-tip,.vsn .vcr-workspace .vcr-month-tip,.vw-graphs .vw-chart-tip{background:var(--vc-tint);border:1px solid var(--vc-line);border-radius:.85rem;color:var(--vc-ink)}
.vsn .vcr-bar[data-known]{background:var(--vc-secondary);border-radius:.35rem .35rem 0 0}
.vsn .vcr-months button[aria-pressed=true] .vcr-bar[data-known]{background:var(--vc-primary)}
.vsn .vcr-months button[aria-pressed=true]{color:var(--vc-primary)}
.vsn .vcr-credit-limit progress{height:.72rem}
.vsn .vcr-limit-total>strong,.vsn .vx-total{font-weight:550;letter-spacing:-.045em}
.vsn .vsn-chart{display:block;width:100%;height:auto;touch-action:pan-y}
.vsn .vsn-chart circle{fill:var(--vc-surface);stroke:var(--vc-primary);stroke-width:2}
.vsn .vsn-chart path{stroke:var(--vc-primary);stroke-linecap:round;stroke-linejoin:round}
.vw-graphs .vw-dot,.wealth-client .w-history-chart circle{fill:var(--vc-surface);stroke:var(--vc-primary);stroke-width:2;vector-effect:non-scaling-stroke}
.wealth-client .w-history .w-history-chart{width:100%;height:auto;max-height:none;aspect-ratio:600/156}
.wealth-client .w-history-chart .w-chart-line{stroke:var(--vc-primary);stroke-width:3;vector-effect:non-scaling-stroke}
.wealth-client .w-history .w-history-dates{font-variant-numeric:tabular-nums;font-size:.73rem}
.vw-graphs .vw-positive{fill:var(--vc-primary)}
@media(max-width:600px){
  .vsn .vc-head{flex-wrap:wrap}
  .vsn .vc-head label{font-size:.72rem;max-width:100%;display:flex;align-items:center}
  .vsn .vc-tooltip dl{justify-content:flex-start}
  .vsn .vc-tooltip{gap:.6rem}
}
@media(prefers-reduced-motion:no-preference){
  .vsn :is(.vc-income,.vc-outgoing),.vsn .vx-track i:not(.vx-missing,.vx-zero),.vsn .vcr-bar[data-known]{transform-box:fill-box;transform-origin:center bottom;animation:vc56-grow .65s var(--vc-ease) both}
  .vsn path.vc-current{stroke-dasharray:1;animation:vc56-ink .9s var(--vc-ease) both}
  .vsn .vc-area{animation:vc56-fade .5s var(--vc-ease) both}
  @keyframes vc56-grow{from{transform:scaleY(.05);opacity:.4}to{transform:scaleY(1);opacity:1}}
  @keyframes vc56-ink{from{stroke-dashoffset:1}to{stroke-dashoffset:0}}
  @keyframes vc56-fade{from{opacity:0}to{opacity:1}}
}
