.topology-section{--bg:#101e2d;--surface:#182a3d;--text:#e7edf6;--muted:#adbed1;--line:#304154;--accent:#a5caff;--accent-soft:#233c59;--topology-up:#85bcad;--topology-down:#e8b580;--topology-unknown:#8998ad;overflow-anchor:none;background:var(--bg);color:var(--text);padding-block:36px 28px;color-scheme:dark}
.topology-section [hidden]{display:none!important}
.topology-heading{align-items:center;margin-bottom:18px}
.topology-toolbar{display:flex;justify-content:space-between;align-items:center;gap:20px;border-bottom:1px solid var(--line)}
.topology-tabs{display:flex;gap:24px;flex-shrink:0}
.topology-tabs a{display:inline-flex;align-items:center;min-height:48px;border-bottom:2px solid transparent;font-size:14px;font-weight:600;color:var(--muted)}
.topology-tabs a:hover,.topology-tabs a[aria-selected=true]{color:var(--accent);border-color:var(--accent)}
.topology-legend{display:flex;flex-wrap:wrap;gap:16px;list-style:none;margin:0;padding:0;font-size:11px;color:var(--muted)}
.topology-legend li{display:flex;align-items:center;gap:7px;white-space:nowrap}
.topology-legend i{display:block;width:22px;border-top:2px solid var(--state-color)}
.state-up{--state-color:var(--topology-up)}
.state-down{--state-color:var(--topology-down)}
.state-unknown{--state-color:var(--topology-unknown)}
.state-partial{--state-color:var(--topology-down)}
.topology-legend .state-down i{border-top-style:dashed}
.topology-legend .state-unknown i{border-top-style:dotted}
.topology-panel-heading{display:flex;align-items:center;gap:16px;min-height:64px;flex-wrap:wrap;padding-block:12px}
.topology-panel{scroll-margin-top:100px}
.topology-panel-heading h3{font-size:15px;letter-spacing:0}
.topology-panel-heading p{font-size:12px}
.topology-reset{display:inline-flex;align-items:center;gap:10px;margin-left:auto;border:0;border-radius:4px;background:var(--accent-soft);color:var(--accent);font-size:11px;min-height:36px;padding:6px 10px}
.topology-selection{font-weight:700}
.topology-scroll{overflow-x:auto;overscroll-behavior-x:contain;scrollbar-width:thin;border-block:1px solid var(--line)}
.topology-svg{display:block;width:100%;min-width:900px}
.topology-edge path{fill:none;stroke:var(--state-color);stroke-width:1.8;vector-effect:non-scaling-stroke;stroke-linecap:round}
.topology-edge.state-down path{stroke-dasharray:7 6}
.topology-edge.state-unknown path{stroke-dasharray:1 7}
.topology-node{cursor:pointer;outline:none}
.topology-node rect{fill:var(--bg);stroke:#51627a;stroke-width:1;vector-effect:non-scaling-stroke}
.topology-node-core rect{fill:#14263a;stroke:#759dce}
.topology-node:hover rect,.topology-node[aria-pressed=true] rect{stroke:var(--accent);stroke-width:2;fill:var(--accent-soft)}
.topology-node:focus-visible rect{stroke:var(--accent);stroke-width:3}
.topology-leader{fill:none;stroke:#72859b;stroke-width:.8;vector-effect:non-scaling-stroke}
.topology-pin{fill:#c1d6ed;stroke:var(--bg);stroke-width:1.5}
.topology-halo{fill:var(--bg);fill-opacity:.6;stroke:#718aa6;stroke-width:1}
.topology-node-core .topology-pin{fill:var(--accent)}
.topology-node-core .topology-halo{stroke:var(--accent)}
.topology-node[aria-pressed=true] .topology-halo{stroke-width:2;fill:var(--accent-soft)}
.topology-code{font:650 14px var(--font);fill:var(--text);letter-spacing:.06em}
.topology-city{font:12px var(--font);fill:var(--muted)}
.topology-edge.is-muted{opacity:.13}
.topology-node.is-muted{opacity:.35}
.topology-scope{font-size:12px;padding:14px 0 18px;line-height:1.8}
.topology-details{border-top:1px solid var(--line)}
.topology-scroll+.topology-details{border-top:0}
.topology-details:last-of-type{border-bottom:1px solid var(--line)}
.topology-details summary{min-height:48px;padding:12px 0;font-size:13px;font-weight:600;color:var(--text)}
.topology-details summary::marker{color:var(--muted);font-size:10px}
.topology-table-scroll{overflow:auto;scrollbar-width:thin;max-height:440px;margin-bottom:16px}
.topology-table{width:100%;border-collapse:collapse;text-align:left;font-size:12px;white-space:nowrap}
.topology-table th,.topology-table td{padding:10px 16px;border-bottom:1px solid var(--line);vertical-align:middle}
.topology-table th:first-child,.topology-table td:first-child{padding-left:0}
.topology-table thead th{position:sticky;top:0;background:var(--bg);font-size:11px;color:var(--muted);font-weight:500;z-index:1}
.topology-table tbody th{font-weight:600}
.topology-table td{color:var(--muted)}
.topology-table small{display:block;font-size:10px;color:var(--muted);margin-top:3px}
.topology-table .topology-asn{color:var(--text);font-variant-numeric:tabular-nums}
.topology-status{display:inline-flex;align-items:center;gap:7px;color:var(--state-color)}
.topology-status:before{content:'';width:5px;height:5px;border-radius:50%;background:currentColor;flex-shrink:0}
.topology-empty{font-size:12px;padding-bottom:16px}
.topology-note{font-size:11px;margin-top:12px;line-height:1.8}
.topology-scroll:focus-visible,.topology-table-scroll:focus-visible{outline:2px solid var(--accent);outline-offset:3px}
@media(max-width:760px){
  .topology-heading{align-items:start;gap:12px}
  .topology-heading h2{font-size:21px}
  .topology-toolbar{flex-wrap:wrap;gap:0}
  .topology-tabs{gap:24px}
  .topology-legend{width:100%;gap:16px;padding:10px 0 14px}
  .topology-panel-heading{gap:6px 14px}
  .topology-panel-heading p{font-size:11px}
  .topology-reset{margin-left:0}
  .topology-scope{font-size:11px}
}
