/* Spatial topology: network-first controls and bundle-first cable rendering. */
.topology-panel{display:grid;gap:10px;padding:12px 18px 11px;background:linear-gradient(180deg,#fff,#f9fbfb);border-bottom:1px solid var(--line)}
.topology-panel[hidden]{display:none}
.topology-panel-head{display:flex;align-items:center;justify-content:space-between;gap:16px}
.topology-panel-head>div:first-child{display:grid;grid-template-columns:auto 1fr;align-items:baseline;column-gap:11px;row-gap:3px}
.topology-panel-head strong{font-size:13px;font-weight:650}
.topology-panel-head small{grid-column:2;color:var(--muted);font-size:10px}
.topology-summary{font:10px ui-monospace,monospace;color:#536c76;white-space:nowrap}
.topology-tabs{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:7px}
.topology-tabs button{display:flex;align-items:center;gap:9px;min-width:0;padding:8px 11px;text-align:left;border:1px solid #e3e9eb;border-left:3px solid var(--topology-color);background:#fff;border-radius:7px;transition:background .16s,border-color .16s,box-shadow .16s}
.topology-tabs button:hover{background:#f4f8f8;border-color:#cbdadd}
.topology-tabs button[aria-selected=true]{background:color-mix(in srgb,var(--topology-color) 9%,white);border-color:color-mix(in srgb,var(--topology-color) 43%,white);box-shadow:0 1px 4px #1939440c}
.topology-tabs button>i{display:block;width:9px;height:9px;flex:0 0 9px;border-radius:50%;background:var(--topology-color);box-shadow:0 0 0 3px color-mix(in srgb,var(--topology-color) 13%,white)}
.topology-tabs button span{display:grid;gap:3px;min-width:0}
.topology-tabs button b{font-size:11px;font-weight:650}
.topology-tabs button small{font-size:9px;color:var(--muted);white-space:nowrap}
.topology-panel-foot{display:flex;align-items:center;gap:12px;min-height:27px}
.plane-controls{display:flex;align-items:center;gap:5px}
.plane-controls>span{font-size:10px;color:var(--muted);margin-right:3px}
.plane-controls button,#collapseTopologyBundle{padding:5px 9px;font-size:10px;border-radius:5px}
.plane-controls button[aria-pressed=true]{background:#e9f3f5;border-color:#a9cbd1;color:#1b6579}
#topologyHint{font-size:10px;color:#71848c}
#collapseTopologyBundle{margin-left:auto;color:#315b67}
body[data-view=logic] .legend,body[data-view=logic] #allLines{display:none}
body[data-view=logic] .scene-heading{top:18px;left:20px}
body[data-view=logic] .scene-heading h1{font-size:20px}
body[data-view=logic] .scene-heading p{max-width:255px;line-height:1.6}
body[data-view=logic] .canvas-wrap{background:radial-gradient(ellipse at 48% 42%,#fff 0%,#eff5f6 78%)}
body[data-view=logic] .view-controls{bottom:44px}
@media(max-width:1100px){.topology-panel{padding:10px 12px}.topology-tabs{gap:5px}.topology-tabs button{padding:7px 8px;gap:7px}.topology-panel-head small{font-size:9px}}
@media(max-width:720px){.topology-panel-head{align-items:flex-start;flex-direction:column;gap:4px}.topology-panel-head>div:first-child{grid-template-columns:1fr;gap:3px}.topology-panel-head small{grid-column:1}.topology-summary{white-space:normal}.topology-tabs{grid-template-columns:repeat(2,minmax(0,1fr))}.topology-panel-foot{flex-wrap:wrap;gap:7px}.plane-controls{width:100%}#topologyHint{line-height:1.5}#collapseTopologyBundle{margin-left:0}body[data-view=logic] .scene-heading h1{font-size:17px}body[data-view=logic] .scene-heading p{max-width:205px;font-size:9px}}
#wbFabric{padding:14px 16px 16px;min-width:0}
#wbFabric .f3d-stage{height:clamp(420px,60vh,640px)}
/* 空间拓扑 uses the network view; controls that only drive the physical canvas are not shown there */
body[data-view=logic] #topologyPanel,body[data-view=logic] .toolbar .explode,body[data-view=logic] #reset,body[data-view=logic] #focus,body[data-view=logic] #export{display:none!important}
