.topology{--topo-border:var(--im-line,#465267);color:var(--im-text,#e9eef6);background:var(--im-surface,#16202b);border:1px solid var(--topo-border);border-radius:12px;padding:16px;margin:12px 0;min-width:0;font:14px/1.5 system-ui,sans-serif;overflow-wrap:anywhere}
.topology *{box-sizing:border-box}.topology header,.topo-controls,.topo-pager,.topo-coverage{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.topology header{justify-content:space-between}.topology h3,.topology h4{margin:4px 0 12px}.topo-eyebrow{letter-spacing:.09em;font-size:11px;color:var(--im-muted,#b7c3d4);margin:0}.topo-badge{border:1px solid var(--topo-border);padding:4px 8px;border-radius:5px;font-size:12px}.topo-notice,.topo-warning{padding:10px;border-left:3px solid var(--im-focus,#88bbff);background:var(--im-surface,#202c3b)}.topo-warning{border-color:var(--im-warn,#ffd084)}.topo-controls{margin:16px 0;align-items:flex-end}.topo-controls label,.topo-relationships>label{display:flex;flex-direction:column;gap:5px;max-width:100%}.topo-controls label:has(input[type=checkbox]){display:block}.topology input:not([type=checkbox]),.topology select{padding:8px;border:1px solid var(--topo-border);background:var(--im-surface,#16202b);color:inherit;border-radius:5px;max-width:100%}.topology button{font:inherit;color:var(--im-text,#e9eef6);background:var(--im-surface,#202c3b);border:1px solid var(--topo-border);border-radius:5px;padding:7px 10px;cursor:pointer;min-height:36px;text-align:left}.topology button[aria-pressed=true]{border-color:var(--im-focus,#88bbff);box-shadow:inset 3px 0 var(--im-focus,#88bbff)}.topology button:disabled{opacity:.55;cursor:default}.topology :is(button,input,select,summary):focus-visible,.topology [data-topo-focus]:focus{outline:2px solid var(--im-focus,#88bbff);outline-offset:3px}.topo-layout{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(240px,1fr);gap:16px}.topo-layout>*,.topo-inspector{min-width:0}.topo-inspector{border:1px solid var(--topo-border);padding:12px;border-radius:8px}.topology dl{display:grid;gap:8px;margin:0}.topology dl>div{display:grid;grid-template-columns:minmax(85px,.45fr) minmax(0,1fr);gap:8px}.topology dt{color:var(--im-muted,#b7c3d4)}.topology dd{margin:0;overflow-wrap:anywhere}.topology pre{white-space:pre-wrap;overflow-wrap:anywhere;max-height:360px;overflow:auto;padding:10px;background:var(--im-surface,#202c3b);font:12px/1.55 ui-monospace,monospace}.topology details{margin:10px 0;border-top:1px solid var(--topo-border);padding-top:8px}.topology summary{cursor:pointer}.topo-table-wrap{overflow:auto;max-width:100%}.topology table{width:100%;border-collapse:collapse}.topology th,.topology td{padding:9px;text-align:left;vertical-align:top;border-bottom:1px solid var(--topo-border)}.topology th{font-weight:600}.topology caption{text-align:left;color:var(--im-muted,#b7c3d4);padding:6px}.topology code{font-size:12px;word-break:break-all}.topo-pager{justify-content:space-between;margin:10px 0}.topo-diagram{margin:16px 0}.topo-diagram svg{max-height:680px;width:100%;color:var(--im-muted,#b7c3d4);background:var(--im-surface,#202c3b);border:1px solid var(--topo-border);border-radius:8px}.topo-diagram rect{fill:var(--im-surface,#16202b);stroke:var(--topo-border)}.topo-diagram .topo-selected{stroke:var(--im-focus,#88bbff);stroke-width:2}.topo-diagram text{fill:var(--im-text,#e9eef6);font:12px system-ui}.topo-diagram .topo-type{font-size:10px}.topo-edge{fill:none;stroke:var(--im-muted,#b7c3d4);stroke-width:1.5}.topo-inferred,.topo-unknown{stroke-dasharray:5 4}.topo-observed{stroke-width:2.5}.topo-diagram figcaption{margin:8px 0;color:var(--im-muted,#b7c3d4)}.topo-empty{padding:16px;color:var(--im-muted,#b7c3d4)}
@media(max-width:850px){.topo-layout{grid-template-columns:1fr}.topology{padding:12px}.topo-controls>*{flex:1 1 160px}.topo-pager{justify-content:flex-start}}
@media(prefers-reduced-motion:reduce){.topology *{scroll-behavior:auto}}

.topology{container-type:inline-size}.topology td small{display:block;color:var(--im-muted,#b7c3d4)}
@container(max-width:650px){.topo-layout{grid-template-columns:1fr}.topo-controls>*{flex:1 1 160px}}
