/* Prevent the canvas' intrinsic pixels from enlarging the flex content column. */
.main-content:has(#tab-network.active),
.content-area:has(>#tab-network.active),
#tab-network { min-width: 0; }
#tab-network, #tab-network .panel, #vos-canvas { max-width: 100%; box-sizing: border-box; }
#tab-network .panel { min-width: 0; }
#vos-canvas { overflow: hidden; position: relative; }
#vos-canvas canvas, #vos-canvas > div { max-width: 100%; }
#tab-network .vis-tooltip { max-width: min(360px, 75vw); white-space: normal; overflow-wrap: anywhere; }
#net-cluster-legend .panel > div:last-child { display: grid !important; grid-template-columns: repeat(auto-fit,minmax(min(210px,100%),1fr)); }
#net-cluster-legend .panel > div:last-child > div { min-width: 0 !important; max-width: none !important; }
#net-controls-panel select, #net-controls-panel input { max-width: 100%; }
#net-methods summary { cursor: pointer; font-size: .85rem; font-weight: 600; }
body.net-fullscreen #net-methods { display: none !important; }
#net-2d-btn[aria-pressed="false"], #net-3d-btn[aria-pressed="false"] {
  background: var(--bg-elevated) !important; color: var(--text) !important;
}
