/* Natural-height connections panel: the viewport owns any necessary scrolling. */
.vdc-overlay{
  position:fixed;inset:0;margin:0;width:100%;height:100dvh;max-width:none;max-height:none;
  padding:16px 24px;border:0;background:transparent;color:inherit;box-sizing:border-box;
  overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain;
}
.vdc-overlay::backdrop{background:var(--visu-overlay)}
.vdc-overlay[open]{display:flex;align-items:flex-start;justify-content:center}
.vdc-overlay .vdc-dialog{
  --vdc-blue:var(--visu-primary);--surface:var(--visu-surface);
  --surface-2:var(--visu-surface-2);--text:var(--visu-text);
  --border:var(--visu-divider);--muted:var(--visu-muted);
  width:min(1100px,100%);max-width:100%;height:auto;min-height:0;max-height:none;
  min-width:0;margin:auto 0;padding:0;border:0;border-radius:var(--visu-radius-panel);overflow:visible;flex:none;
  background:var(--surface);color:var(--text);box-shadow:var(--visu-shadow-float);
  font-family:var(--visu-font);
}
.vdc-dialog *{box-sizing:border-box}
.vdc-dialog>header{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;padding:18px 24px 12px}
.vdc-dialog h2{font-size:24px;line-height:32px;font-weight:500;margin:0;letter-spacing:-.02em}
.vdc-eyebrow{margin:0 0 5px!important;text-transform:uppercase;font-size:12px!important;letter-spacing:.13em;font-weight:600;color:var(--vdc-blue)}
.vdc-close{display:grid;place-items:center;width:48px;height:48px;min-width:48px;min-height:48px;padding:12px;border:0;border-radius:50%;background:transparent;color:inherit;cursor:pointer;line-height:1}
.vdc-close svg{display:block;width:22px;height:22px;flex:none}
.vdc-tabs{display:flex;gap:8px;padding:0 24px 12px}
.vdc-tabs button{flex:1;min-width:0;min-height:64px;display:flex;align-items:center;justify-content:center;gap:13px;padding:9px 12px;border:1px solid var(--border);border-radius:16px;background:var(--surface);color:inherit;font:inherit;font-size:13px;text-align:left;cursor:pointer}
.vdc-tabs button[aria-pressed=true]{background:color-mix(in srgb,var(--vdc-blue) 8%,var(--surface));border-color:var(--vdc-blue);font-weight:600}
.vdc-tabs button>span:last-child{line-height:1.4}
.vdc-tabs button small{margin-top:4px;font-size:11px;font-weight:400}
.vdc-logo-stack{display:flex;flex-shrink:0;padding-left:10px}
.vdc-logo-stack>span{display:grid;place-items:center;width:36px;height:36px;border-radius:12px;background:#fff;border:2px solid var(--surface);margin-left:-10px;padding:5px;box-shadow:0 2px 8px #13213c12}
.vdc-logo-stack img{display:block;width:100%;height:100%;object-fit:contain}
.vdc-logo-stack svg{width:22px;height:22px;color:#365dcc}
.vdc-search{display:grid;gap:6px;font-size:12px;padding:0 24px 16px}
.vdc-search input{font:inherit;font-size:14px;width:100%;min-width:0;min-height:44px;border:1px solid var(--visu-control);background:var(--surface);color:inherit;border-radius:12px;padding:12px 14px}
.vdc-body{padding:0 24px 16px;min-height:0;overflow:visible}
.vdc-dialog p{font-size:14px;line-height:1.5;margin:6px 0}
.vdc-dialog h3{font-size:15px;margin:16px 0 9px}
.vdc-dialog h4{font-size:13px;margin:0 0 4px}
.vdc-dialog small{display:block;font-size:12px;line-height:1.45;color:var(--muted)}
.vdc-notice{padding:12px 16px;border:0;border-radius:16px;background:var(--surface-2)}
.vdc-notice strong{font-size:13px}
.vdc-capacity{padding:5px 0}
.vdc-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:9px}
.vdc-button{display:inline-flex;justify-content:center;align-items:center;min-height:48px;gap:8px;padding:10px 16px;border:1px solid transparent;border-radius:999px;background:var(--vdc-blue);color:var(--visu-on-primary);font:inherit;font-size:13px;font-weight:600;line-height:20px;text-align:center;white-space:normal;text-decoration:none;cursor:pointer}
.vdc-button.secondary{border-color:transparent;background:var(--surface-2);color:inherit}
.vdc-button:disabled{opacity:.6;cursor:wait}
.vdc-cards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:stretch;gap:10px;overflow:visible}
.vdc-card{display:grid;grid-template-columns:40px minmax(0,1fr) auto;align-items:start;gap:10px;min-width:0;padding:12px;border:0;border-radius:20px;background:var(--surface-2);overflow:visible;box-shadow:var(--visu-shadow-card)}
.vdc-card>div{min-width:0}
.vdc-card h3{font-size:14px;line-height:20px;margin:0 0 5px}
.vdc-card>div>p{font-size:14px;line-height:1.5;margin:6px 0}
.vdc-card>div>small{font-size:12px}
.vdc-card>.vdc-button{align-self:center;width:auto;font-size:12px;padding:10px 12px}
.vdc-logo{display:grid;place-items:center;width:40px;height:40px;flex-shrink:0;padding:5px;border:1px solid #dae0eb;border-radius:10px;background:#fff}
.vdc-logo img{max-width:100%;max-height:100%;object-fit:contain}
.vdc-logo svg{width:26px;height:26px;color:#365dcc}
.vdc-state{display:inline-block;padding:3px 6px;border-radius:6px;background:var(--visu-action-soft);color:var(--visu-on-action-soft);font-size:12px;font-weight:500;line-height:1.5}
.vdc-card.vdc-investment{grid-template-columns:40px minmax(0,1fr)}
.vdc-investment .vdc-actions{margin-top:8px}
.vdc-card .vdc-actions>*{flex:1}
.vdc-card details{margin-top:9px}
.vdc-card summary{min-height:44px;align-content:center;font-size:14px;cursor:pointer;line-height:1.5;color:var(--vdc-blue)}
.vdc-supported{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.vdc-supported article{display:flex;align-items:center;gap:10px;padding:10px;border-radius:12px;font-size:12px;overflow-wrap:anywhere}
.vdc-supported .vdc-logo{width:42px;height:36px}
.vdc-empty{grid-column:1/-1;padding:24px;border-radius:14px;background:var(--surface-2);color:var(--muted)}
.vdc-error{padding:12px 16px;margin-bottom:16px;border:1px solid var(--visu-error);border-radius:12px;background:var(--visu-error-bg);color:var(--visu-on-error);font-size:13px}
.vdc-dialog footer{position:static;bottom:auto;display:flex;justify-content:flex-end;flex-wrap:wrap;gap:10px;padding:10px 24px;border:0;border-radius:0 0 28px 28px;background:transparent;overflow:visible}
.vdc-dialog :focus-visible{outline:3px solid var(--visu-focus);outline-offset:3px}
.vdc-loading{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
.vdc-loading span{height:80px;background:linear-gradient(90deg,#678fff0a,#678fff24,#678fff0a);border-radius:16px;animation:vdc-pulse 1.5s ease infinite}
.vdc-loading p{grid-column:1/-1;text-align:center}
.vdc-intro{margin-bottom:12px!important}
/* Keep panel geometry independent of the general Material button/card layers. */
:root body:is([data-m3],.vis-ui) .vdc-overlay .vdc-dialog .vdc-card{border:0;border-radius:20px}
:root body:is([data-m3],.vis-ui) .vdc-overlay .vdc-dialog .vdc-button{min-height:48px;padding:10px 14px;font-size:13px;line-height:20px}
:root body:is([data-m3],.vis-ui) .vdc-overlay .vdc-dialog footer{position:static;bottom:auto;border:0;background:transparent}
@keyframes vdc-pulse{50%{opacity:.45}}
@media(min-width:1000px){.vdc-dialog[data-vdc-kind="investments"] .vdc-cards{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:760px){.vdc-card{grid-template-columns:36px minmax(0,1fr)}.vdc-card>.vdc-button{grid-column:2;justify-self:start}.vdc-logo{width:36px;height:36px}.vdc-card.vdc-investment{grid-template-columns:36px minmax(0,1fr)}}
@media(max-width:600px){
  .vdc-overlay{padding:10px}
  .vdc-overlay .vdc-dialog{width:100%;border-radius:24px}
  .vdc-dialog>header{padding:16px 16px 12px}.vdc-dialog h2{font-size:21px;line-height:28px}
  .vdc-tabs{padding:0 16px 12px;gap:8px}.vdc-tabs button{flex-direction:column;text-align:center;min-height:94px;padding:10px 5px;gap:6px}
  .vdc-tabs button small{font-size:12px}.vdc-logo-stack>span{width:30px;height:30px;border-radius:10px}
  .vdc-body{padding:0 16px 16px}.vdc-cards{grid-template-columns:1fr}.vdc-card{padding:14px}
  .vdc-dialog footer{padding:12px 16px;border-radius:0 0 24px 24px}.vdc-dialog footer>*{flex:1;min-width:0}
  .vdc-notice{padding:12px}.vdc-supported{grid-template-columns:repeat(2,minmax(0,1fr))}.vdc-supported article{flex-direction:column;align-items:flex-start;font-size:11px}
  .vdc-dialog :is(p,small,h3,h4,a,button,summary){overflow-wrap:anywhere}
  .vdc-loading{grid-template-columns:1fr}.vdc-loading span{height:56px}
}
@media(prefers-reduced-motion:reduce){.vdc-dialog *{animation:none!important;transition:none!important}}
@media(forced-colors:active){:root body:is([data-m3],.vis-ui) .vdc-overlay .vdc-dialog,:root body:is([data-m3],.vis-ui) .vdc-overlay .vdc-dialog .vdc-card,.vdc-tabs button{border:1px solid CanvasText}.vdc-tabs button[aria-pressed=true]{outline:2px solid Highlight}}
