/* Chapter 08 uses the same inline workspace and fixed controls as the existing labs. */
#wsChapterDialog:has(#topologyLab)>.wc-context{display:none!important}
#wsChapterDialog:has(#topologyLab)>.ws-header{flex:0 0 42px;min-height:42px;margin-bottom:4px}
#topologyLab.tp-lab{display:flex!important;flex-direction:column;flex:1;min-height:0;min-width:0;gap:10px;overflow:hidden;color:var(--text)}
#topologyLab[hidden]{display:none!important}
#topologyLab *{box-sizing:border-box}
#topologyLab :is(button,select,input){font:600 14px/20px 'Segoe UI',sans-serif}
#topologyLab select{height:36px;min-height:36px;padding:5px 28px 5px 10px;min-width:100px;max-width:210px;background:var(--control);color:var(--text);border:1px solid var(--control-border);border-radius:6px}
#topologyLab button{min-height:34px;padding:5px 12px;border-radius:6px;cursor:pointer}
#topologyLab .tp-settings{display:flex;align-items:center;gap:24px;flex:none;height:66px;min-height:66px;padding:10px 14px;background:var(--panel);border:1px solid var(--frame-border);border-radius:8px;overflow:visible}
#topologyLab .tp-field{display:flex;align-items:center;gap:10px;white-space:nowrap;min-width:0}
#topologyLab .tp-field>span{font-size:15px;font-weight:650;color:var(--section-ink)}
#topologyLab .tp-settings select#tpTopology{width:160px}
#topologyLab .tp-settings select:is(#tpSource,#tpTarget){width:100px}
#topologyLab .tp-check{display:flex;gap:8px;align-items:center;font-size:14px;line-height:19px;max-width:260px}
#topologyLab .tp-check input{width:18px;height:18px;flex:none;accent-color:var(--mint)}
#topologyLab .tp-range{display:grid;grid-template-columns:auto minmax(90px,140px) 100px;align-items:center;column-gap:10px;flex:1;min-width:0}
#topologyLab .tp-range>span{font-size:14px;line-height:19px;max-width:150px;font-weight:600}
#topologyLab .tp-range input{width:100%;min-width:0;accent-color:var(--purple);cursor:ew-resize}
#topologyLab .tp-range output{font-size:15px;font-weight:750;white-space:nowrap;font-variant-numeric:tabular-nums;width:100px}
#topologyLab .tp-transport{flex:none;height:50px;min-height:50px;padding:6px 10px;display:flex;gap:18px;align-items:center;background:var(--panel);border:1px solid var(--frame-border);border-radius:8px}
#topologyLab .tp-play{width:112px;min-width:112px;height:36px;background:#08785e;color:white;border-color:#42bd97}
#topologyLab #tpSpeed{width:94px;min-width:94px}
#topologyLab .tp-step-title{font-size:15px;font-weight:650;color:var(--section-ink);flex:1;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#topologyLab .tp-presenter{display:flex;gap:6px;align-items:center;margin-left:auto}
#topologyLab .tp-presenter>button{width:34px;height:34px;min-height:34px;padding:6px;color:var(--section-ink)}
#topologyLab .tp-presenter svg{width:20px;height:20px;stroke:currentColor;fill:none;stroke-width:1.8}
#topologyLab .tp-presenter output{font-variant-numeric:tabular-nums;font-size:14px;width:46px;text-align:center}
#topologyLab .tp-reserved{visibility:hidden;pointer-events:none}
#topologyLab .tp-content{flex:1;min-height:0;min-width:0;display:grid;grid-template-columns:238px minmax(0,1fr);gap:14px}
#topologyLab .tp-explanation{display:flex;flex-direction:column;min-height:0;border:1px solid var(--frame-border);border-radius:8px;padding:14px 15px;background:var(--panel);overflow:hidden}
#topologyLab h2{font:700 19px/25px 'Segoe UI',sans-serif;color:var(--section-ink);margin:0 0 12px}
#topologyLab .tp-description{font:16px/24px 'Segoe UI',sans-serif;margin:0 0 14px}
#topologyLab .tp-inspector{min-height:0;display:flex;flex-direction:column;gap:10px}
#topologyLab .tp-metric{display:flex;align-items:baseline;gap:12px}
#topologyLab .tp-metric>b{font-size:28px;line-height:32px;color:var(--purple);font-variant-numeric:tabular-nums}
#topologyLab .tp-metric>span{font-size:15px}
#topologyLab .tp-route-note,#topologyLab .tp-filter-info{font-size:13px;line-height:20px;color:var(--muted);margin:0}
#topologyLab .tp-history{margin-top:auto;padding-top:14px}
#topologyLab .tp-history h3{margin:0 0 7px;font-size:15px;line-height:21px;color:var(--section-ink)}
#topologyLab .tp-history p{margin:0 0 10px;font-size:14px;line-height:21px;color:var(--muted)}
#topologyLab .tp-history>button{font-size:13px;min-height:30px;padding:3px 10px}
#topologyLab .tp-visual{display:flex;flex-direction:column;min-height:0;min-width:0;border:1px solid var(--frame-border);border-radius:8px;background:var(--plot-surface);overflow:hidden}
#topologyLab .tp-graph-head{flex:none;min-height:36px;display:flex;align-items:center;justify-content:space-between;padding:8px 16px 0;gap:12px}
#topologyLab .tp-graph-head>strong{font-size:17px;color:var(--section-ink);line-height:24px}
#topologyLab .tp-graph-head>span{font-size:13px;color:var(--muted);line-height:20px}
#topologyLab #tpGraph{flex:1;min-height:0;width:100%;height:100%;display:block}
#topologyLab #tpGraph text{fill:var(--plot-ink);font:600 16px 'Segoe UI',sans-serif;user-select:none}
#topologyLab .tp-link-hit{fill:none;stroke:transparent;stroke-width:24px;cursor:pointer}
#topologyLab .tp-link-line{fill:none;stroke:var(--frame-border);stroke-width:3px;pointer-events:none}
#topologyLab .tp-active .tp-link-line{stroke:var(--section-ink);stroke-width:4px}
#topologyLab .tp-broken .tp-link-line{stroke:#dc5960;stroke-dasharray:8 8;stroke-width:3px}
#topologyLab .tp-break-mark{fill:#dc5960!important;font-size:36px!important;paint-order:stroke;stroke:var(--plot-surface);stroke-width:7px}
#topologyLab .tp-device{cursor:pointer;outline:none}
#topologyLab .tp-device>rect{fill:var(--panel);stroke:var(--frame-border);stroke-width:2px}
#topologyLab .tp-source>rect{fill:var(--panel);stroke:var(--purple);stroke-width:3px}
#topologyLab .tp-recipient>rect{fill:var(--panel);stroke:var(--mint);stroke-width:4px}
#topologyLab .tp-source .tp-device-name{fill:var(--purple)!important}
#topologyLab .tp-recipient .tp-device-name{fill:var(--mint)!important}
#topologyLab .tp-device:hover>rect,#topologyLab .tp-device:focus-visible>rect{stroke:var(--amber);stroke-width:4px}
#topologyLab .tp-device-icon{fill:none;stroke:var(--section-ink);stroke-width:2px}
#topologyLab .tp-device-name{font-size:15px!important;font-weight:750!important}
#topologyLab .tp-node-ports{fill:var(--control);stroke:var(--section-ink);stroke-width:1.5px}
#topologyLab .tp-node-ports text{font-size:11px!important;fill:var(--text);stroke:none}
#topologyLab .tp-node-ports>path:nth-child(2){stroke:var(--purple);stroke-width:5px}
#topologyLab .tp-medium-label{font-size:17px!important;fill:var(--section-ink)!important}
#topologyLab .tp-ring-forward{font-size:13px!important;fill:var(--muted)!important}
#topologyLab .tp-member-dot{fill:var(--mint);stroke:var(--plot-surface);stroke-width:2px}
#topologyLab .tp-junction{fill:var(--section-ink)}
#topologyLab .tp-termination{fill:none;stroke:var(--amber);stroke-width:6px}
#topologyLab .tp-packets{pointer-events:none}
#topologyLab .tp-packet rect{fill:#894ed9;stroke:#e0c8ff;stroke-width:1px}
#topologyLab .tp-packet text{fill:white!important;font-size:17px!important}
#topologyLab .tp-flow-1 rect{fill:#08785e;stroke:#63ddba}
#topologyLab .tp-domain-border{fill:none;stroke:var(--section-ink);stroke-width:2px;stroke-dasharray:5 6;opacity:.65}
#topologyLab .tp-status{flex:none;min-height:54px;padding:10px 16px;background:var(--panel);border-top:1px solid var(--frame-border);display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:15px;line-height:21px}
#topologyLab .tp-status>span{color:var(--muted);font-size:13px}
#topologyLab .tp-error{color:#dc454e!important}
#topologyLab .tp-legend{display:flex;align-items:center;gap:8px;white-space:nowrap}
#topologyLab .tp-legend i{width:18px;height:3px;background:var(--section-ink);margin-left:8px}
#topologyLab .tp-legend i.tp-off{background:#dc5960}
#topologyLab .tp-addresses{display:flex;align-items:center;justify-content:center;gap:24px;padding:8px 16px;min-height:59px;flex:none;border-bottom:1px solid var(--line)}
#topologyLab .tp-addresses[hidden]{display:none}
#topologyLab .tp-addresses label{display:flex;flex-direction:column;gap:3px;font-size:13px;color:var(--muted)}
#topologyLab .tp-addresses b{font-size:16px;letter-spacing:.03em;font-variant-numeric:tabular-nums;color:var(--purple);font-family:Consolas,monospace}
#topologyLab .tp-receiver-row{flex:none;display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:7px;padding:8px 12px}
#topologyLab .tp-receiver-row[hidden]{display:none}
#topologyLab .tp-receiver{display:flex;align-items:center;gap:8px;min-width:0;padding:5px 8px}
#topologyLab .tp-receiver b{font-size:21px;color:var(--section-ink)}
#topologyLab .tp-receiver span{font-size:12px;line-height:16px}
#topologyLab .tp-receiver.is-addressed{border:2px solid var(--mint);background:var(--panel)}
#topologyLab .tp-receiver-pending span{visibility:hidden}
#topologyLab .tp-load-label rect{fill:var(--panel);stroke:var(--frame-border);stroke-width:1px}
#topologyLab .tp-load-label text{font-size:13px!important;fill:var(--section-ink)!important}
#topologyLab .tp-load-label .tp-load-red{fill:#dc454e!important}
#topologyLab .tp-busy .tp-link-line{stroke:var(--amber);stroke-width:5px}
#topologyLab .tp-overloaded .tp-link-line{stroke:#dc454e;stroke-width:5px}
#topologyLab .tp-flow-key{font-size:14px;line-height:20px;display:grid;grid-template-columns:14px 1fr;gap:5px 9px}
#topologyLab .tp-flow-key i{width:12px;height:12px;background:var(--purple);border-radius:3px;margin-top:4px}
#topologyLab .tp-flow-key.second i{background:var(--mint)}
#topologyLab .tp-flow-key b{grid-column:2;color:var(--section-ink);font-size:18px}
.tp-summary{display:grid;gap:15px}.tp-summary p{font-size:18px;line-height:28px;margin:0}.tp-summary h3{margin:0;color:var(--section-ink)}
.tp-summary-sketch{display:flex;align-items:center;justify-content:center;gap:25px;min-height:100px;background:var(--bg);border:1px solid var(--frame-border);border-radius:8px;font-size:26px}
.tp-summary-sketch>b{padding:10px 20px;border:2px solid var(--purple);border-radius:8px;color:var(--text)}
.tp-course-credit{font-size:13px!important;color:var(--muted)}
@media(max-height:820px){#topologyLab .tp-content{grid-template-columns:226px minmax(0,1fr)}#topologyLab .tp-explanation{padding:10px 12px}#topologyLab h2{font-size:17px;line-height:22px;margin-bottom:8px}#topologyLab .tp-description{font-size:14px;line-height:21px;margin-bottom:8px}#topologyLab .tp-history{padding-top:9px}#topologyLab .tp-history p{font-size:12px;line-height:18px;margin-bottom:6px}#topologyLab .tp-metric>b{font-size:23px;line-height:26px}#topologyLab .tp-inspector{gap:6px}#topologyLab .tp-graph-head{min-height:30px;padding-top:4px}#topologyLab .tp-graph-head>strong{font-size:15px}#topologyLab .tp-status{min-height:44px;padding:7px 12px}#topologyLab .tp-addresses{min-height:50px;padding:4px 12px}#topologyLab .tp-settings{height:60px;min-height:60px;gap:15px}#topologyLab .tp-transport{height:46px;min-height:46px}#topologyLab .tp-filter-info{font-size:12px;line-height:18px}}
@media(max-width:1300px){#topologyLab .tp-settings{gap:14px}#topologyLab .tp-range{grid-template-columns:90px minmax(70px,1fr) 90px;gap:7px}#topologyLab .tp-range output{font-size:14px;width:90px}#topologyLab .tp-check{font-size:12px;max-width:200px}#topologyLab .tp-transport{gap:12px}#topologyLab .tp-graph-head>span{font-size:12px;max-width:45%;line-height:17px}#topologyLab .tp-status{font-size:13px}#topologyLab .tp-receiver{gap:4px;padding:4px}#topologyLab .tp-receiver span{font-size:11px}}
#topologyLab .tp-inspector{flex-shrink:0}
#topologyLab .tp-inspector>[data-tp-filter-info]{font-size:13px;line-height:18px;min-height:30px;align-self:flex-start}
#topologyLab .tp-link[data-medium=fibre].tp-active .tp-link-line{stroke:var(--amber)}
#topologyLab .tp-explanation h2>[data-ws-term]{font:inherit;color:inherit;padding:0;min-height:0;white-space:normal;text-align:left;line-height:inherit}
@media(max-height:820px){#topologyLab .tp-history p{display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}#topologyLab .tp-history{flex-shrink:0}#topologyLab .tp-flow-key{font-size:13px;line-height:18px;gap:3px 8px}#topologyLab .tp-flow-key b{font-size:16px}#topologyLab .tp-description{line-height:20px}#topologyLab .tp-receiver-row{padding-block:5px}#topologyLab .tp-addresses{min-height:44px}#topologyLab .tp-addresses b{font-size:14px}}
#topologyLab .tp-direction{fill:none;stroke:var(--section-ink);stroke-width:1.3px;pointer-events:none}
#topologyLab .tp-load-label text{font-size:12px!important}
#topologyLab .tp-device-name{font-size:17px!important}
#topologyLab .tp-history p{display:-webkit-box;-webkit-line-clamp:5;-webkit-box-orient:vertical;overflow:hidden}
@media(max-height:820px){#topologyLab .tp-history p{-webkit-line-clamp:3}}
#topologyLab .tp-flow-key{display:flex;align-items:center;gap:9px}
#topologyLab .tp-flow-key b{margin-left:8px;font-size:16px;white-space:nowrap}
@media(max-height:820px){#topologyLab .tp-history p{-webkit-line-clamp:2}}
#topologyLab .tp-topology-choices{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;margin:0 0 12px}
#topologyLab .tp-topology-choices button{padding:6px;min-height:34px;font-size:14px;line-height:19px;text-align:center}
#topologyLab .tp-topology-choices button.selected{background:var(--selected-bg);color:var(--selected-ink);border-color:var(--mint);box-shadow:inset 0 0 0 1px var(--mint)}
#topologyLab .tp-mii path{fill:none;stroke:var(--purple);stroke-width:2}
#topologyLab .tp-mii text{fill:var(--purple);font-size:15px;font-weight:700}
#topologyLab .tp-shared-phy .md-phy-name,#topologyLab .tp-shared-phy .md-phy-symbol>text{font:700 25px Consolas,monospace}
#topologyLab .tp-shared-phy .md-phy-role,#topologyLab .tp-shared-phy .md-sub{font:600 21px Consolas,monospace}
#topologyLab .tp-transit-core,#topologyLab .tp-endpoint-core{fill:var(--control);stroke:var(--section-ink);stroke-width:2}
#topologyLab .tp-transit-label{font-weight:750}
#topologyLab .tp-endpoint-data{stroke:var(--purple);fill:none;stroke-width:2}
#topologyLab .tp-node-internal{stroke:var(--purple);stroke-width:3;fill:none}
#topologyLab .tp-flow-2 rect{fill:#a65c0a;stroke:#ffce8a}
.tp-node-history-detail{display:grid;gap:15px}
.tp-history-links{display:flex;flex-wrap:wrap;gap:15px;font-size:15px}
#topologyLab #tpGraph .tp-shared-phy .md-phy-name,#topologyLab #tpGraph .tp-shared-phy .md-phy-symbol>text{font:700 25px Consolas,monospace}
#topologyLab #tpGraph .tp-shared-phy .md-phy-role,#topologyLab #tpGraph .tp-shared-phy .md-sub{font:600 21px Consolas,monospace}
#topologyLab #tpGraph .tp-mii text{fill:var(--purple);font:700 15px 'Segoe UI',sans-serif}
@media(max-height:820px){#topologyLab .tp-topology-choices{gap:5px;margin-bottom:9px}#topologyLab .tp-topology-choices button{min-height:31px;padding:4px;font-size:13px}}
#topologyLab .tp-history.lx-coding-history{margin:12px 0 0;margin-top:auto;padding:10px 11px;flex-shrink:0}
#topologyLab .tp-history.lx-coding-history>.lx-coding-history-body{display:-webkit-box;-webkit-line-clamp:4;-webkit-box-orient:vertical;overflow:hidden}
#topologyLab .tp-history.lx-coding-history>[data-tp-notes]{align-self:flex-start;border:0;background:transparent;box-shadow:none;min-height:0;padding:0;font:600 12px/17px 'Segoe UI',sans-serif;color:var(--section-ink);text-decoration:underline}
#topologyLab .tp-ring-pass>rect{stroke:var(--amber);stroke-width:4px;filter:drop-shadow(0 0 3px var(--amber))}
@media(max-height:820px){#topologyLab .tp-history.lx-coding-history{padding:8px;gap:4px}#topologyLab .tp-history.lx-coding-history>div:first-child>b{font-size:16px;line-height:21px}#topologyLab .tp-history.lx-coding-history>.lx-coding-history-body{-webkit-line-clamp:2;font-size:13px;line-height:18px}}
#topologyLab .tp-channel-device .tp-mii path{stroke-width:1.1px;opacity:.58}
#topologyLab #tpGraph .tp-channel-device .tp-mii text{fill:var(--muted);font-size:13px;font-weight:600}
#topologyLab .tp-insert-old-link{fill:none;stroke:var(--section-ink);stroke-width:3px;pointer-events:none;animation:tpOldLinkOut .85s ease both}
#topologyLab.tp-inserting .tp-link-line{animation:tpSplitLinkIn .85s ease both}
#topologyLab .tp-inserting-node{animation:tpNodeInsert .85s cubic-bezier(.2,.7,.2,1) both}
@keyframes tpOldLinkOut{0%,15%{opacity:1}80%,100%{opacity:0}}
@keyframes tpSplitLinkIn{0%,15%{opacity:0;stroke-dasharray:2 12}80%,100%{opacity:1;stroke-dasharray:none}}
@keyframes tpNodeInsert{0%,12%{opacity:0;clip-path:circle(0% at 50% 50%)}100%{opacity:1;clip-path:circle(80% at 50% 50%)}}
#topologyLab.tp-looping .tp-link-line{stroke:var(--amber);stroke-width:4px}
#topologyLab [data-tp-ring-info]{width:34px;min-width:34px;padding:5px;font-size:18px}
#topologyLab #tpRingRedundancy,#topologyLab #tpRingRemove{flex:none}
#topologyLab .tp-link-hit{pointer-events:stroke}
@media(max-height:820px){#topologyLab[data-tp-view=topology] .tp-description{display:-webkit-box;-webkit-line-clamp:4;-webkit-box-orient:vertical;overflow:hidden}}
#topologyLab[data-tp-view=node] .tp-graph-head,#topologyLab[data-tp-view=node] .tp-status{display:none}
#topologyLab .tp-history.lx-coding-history>.lx-coding-history-body{-webkit-line-clamp:3}
@media(max-height:820px){#topologyLab .tp-history.lx-coding-history>.lx-coding-history-body{-webkit-line-clamp:2}}
#topologyLab:is([data-tp-view=broadcast],[data-tp-view=unicast],[data-tp-view=multicast],[data-tp-view=receive]) .tp-status{display:none}
#topologyLab:is([data-tp-view=broadcast],[data-tp-view=unicast],[data-tp-view=multicast]) .tp-explanation h2{min-height:50px}
@media(max-height:820px){#topologyLab:is([data-tp-view=broadcast],[data-tp-view=unicast],[data-tp-view=multicast]) .tp-explanation h2{min-height:44px}}
#topologyLab .tp-graph-description{flex:none;margin:0;padding:3px 16px 10px;font:400 15px/21px 'Segoe UI',sans-serif;color:var(--text)}
#topologyLab .tp-graph-description[hidden]{display:none}
#topologyLab[data-tp-view=topology] .tp-graph-head{min-height:44px;padding-top:10px}
#topologyLab[data-tp-view=topology] .tp-graph-head>strong{font:650 26px/32px 'Segoe UI',sans-serif}
#topologyLab .tp-bus-examples{font:600 14px/21px 'Segoe UI',sans-serif;color:var(--section-ink);margin:0 0 12px;display:grid;gap:3px}
#topologyLab #tpGraph .tp-endpoint-device .tp-device-name{font:500 15px 'Segoe UI',sans-serif!important;letter-spacing:0}
#topologyLab #tpGraph .tp-simple-endpoint{fill:color-mix(in srgb,var(--purple) 62%,var(--panel));stroke:var(--purple);stroke-width:1.5px}
#topologyLab #tpGraph .tp-topology-device.tp-recipient .tp-simple-endpoint{fill:color-mix(in srgb,var(--mint) 35%,var(--panel));stroke:var(--mint);stroke-width:2px}
#topologyLab #tpGraph .tp-simple-node{fill:color-mix(in srgb,var(--muted) 22%,var(--panel));stroke:var(--section-ink);stroke-width:1.5px}
#topologyLab #tpGraph .tp-simple-node-label{font:600 14px 'Segoe UI',sans-serif}
#topologyLab .tp-mini-mii path{stroke:var(--purple);stroke-width:1px;opacity:.8;fill:none}
#topologyLab .tp-mini-phy .md-duplex-phy>path{stroke:var(--section-ink);stroke-width:10;fill:var(--panel)}
#topologyLab .tp-mini-mdi{fill:var(--amber);stroke:var(--plot-surface);stroke-width:.7px}
#topologyLab .tp-medium-rail{stroke-width:1.2px!important}
@media(max-height:820px){#topologyLab[data-tp-view=topology] .tp-graph-head>strong{font-size:23px;line-height:29px}#topologyLab .tp-graph-description{font-size:14px;line-height:20px;padding-bottom:7px}#topologyLab .tp-bus-examples{font-size:13px;line-height:18px;gap:2px}}

#topologyLab .tp-addresses{gap:24px;padding:12px 20px;font-size:18px}
#topologyLab .tp-addresses label{font-size:18px;gap:12px}
#topologyLab .tp-addresses b{font-size:24px;min-width:54px}
#topologyLab .tp-node-role{display:grid;gap:8px;margin:14px 0;color:var(--text);font-size:16px;line-height:1.45}
#topologyLab .tp-node-role strong{color:var(--section-ink);font-size:21px}
#topologyLab #tpGraph .tp-end-id{font:650 19px 'Segoe UI',sans-serif}
#topologyLab #tpGraph .tp-end-state{font:500 13px 'Segoe UI',sans-serif}

#topologyLab .tp-ring-local-link{pointer-events:none}

#topologyLab #tpGraph .tp-endpoint-label{font:600 16px 'Segoe UI',sans-serif;fill:var(--text)}
#topologyLab #tpGraph .tp-packet rect{stroke-width:1.2px}

#topologyLab:is([data-tp-view=topology],[data-tp-view=node]) .tp-graph-head{display:flex;align-items:center;min-height:54px;padding:8px 14px;gap:16px}
#topologyLab .tp-graph-head .tp-settings{height:auto;min-height:36px;border:0;padding:0;background:transparent;border-radius:0;gap:14px;margin-left:auto}
#topologyLab:is([data-tp-view=topology],[data-tp-view=node]) #tpGraphHint{display:none}
#topologyLab[data-tp-view=node] #tpGraphTitle{display:none}
#topologyLab[data-tp-view=node] .tp-graph-head .tp-settings{margin-left:0}
#topologyLab[data-tp-view=topology] .tp-graph-description{font-size:18px;line-height:25px;padding:0 16px 10px}
#topologyLab[data-tp-view=topology] .tp-description{font-size:16px;line-height:24px}
@media(max-width:1400px){#topologyLab .tp-graph-head .tp-settings{gap:10px}#topologyLab .tp-graph-head .tp-check{font-size:13px}#topologyLab .tp-graph-head button{font-size:13px}}

#topologyLab #tpGraph .tp-device-caption{font:600 15px 'Segoe UI',sans-serif;fill:var(--text);pointer-events:none}
#topologyLab #tpGraph .tp-end-state{font:500 13px 'Segoe UI',sans-serif;fill:var(--text);pointer-events:none}

#topologyLab .tp-border-phy path{fill:var(--panel);stroke:var(--section-ink);stroke-width:1.4px}
#topologyLab:is([data-tp-view=broadcast],[data-tp-view=unicast],[data-tp-view=multicast],[data-tp-view=receive]) .tp-graph-head{display:flex;min-height:64px;height:64px;padding:10px 16px;gap:16px;align-items:center;justify-content:space-between}
#topologyLab .tp-graph-head .tp-addresses{justify-content:flex-start;margin:0;padding:0;border:0;min-height:0;gap:16px}
#topologyLab .tp-graph-head .tp-addresses[hidden]{display:none}
#topologyLab .tp-graph-head .tp-addresses label{flex-direction:row;align-items:center;font-size:16px;gap:8px;white-space:nowrap}
#topologyLab .tp-graph-head .tp-addresses b{font-size:22px;min-width:0}
#topologyLab:is([data-tp-view=broadcast],[data-tp-view=unicast],[data-tp-view=multicast],[data-tp-view=receive]) #tpGraphTitle{display:none}
#topologyLab:is([data-tp-view=broadcast],[data-tp-view=unicast],[data-tp-view=multicast],[data-tp-view=receive]) #tpGraphHint{margin-left:auto;max-width:235px;font-size:13px;line-height:18px;text-align:right}
#topologyLab:is([data-tp-view=broadcast],[data-tp-view=unicast],[data-tp-view=multicast],[data-tp-view=receive]) .tp-link{cursor:default}

#wsChapterDialog.wi-lab:has(#topologyLab){padding-bottom:4px!important}
#topologyLab .tp-status[hidden]{display:none!important}

#topologyLab #tpGraph .tp-int-mii path{fill:none;stroke:var(--purple);stroke-width:1px;opacity:.85}
#topologyLab #tpGraph .tp-int-mii-label{fill:var(--purple);font:600 13px 'Segoe UI',sans-serif}

#topologyLab .tp-canvas{position:relative;display:flex;flex:1;min-height:0;min-width:0}
#topologyLab .tp-canvas-status{position:absolute;top:14px;right:16px;max-width:42%;font:650 21px/28px 'Segoe UI',sans-serif;color:var(--section-ink);text-align:right;pointer-events:none}
#topologyLab .tp-canvas-status[hidden]{display:none}
#topologyLab .tp-canvas-status strong{font:inherit}

#topologyLab{--tp-group-color:#22a88a;--tp-delivery-color:#22a88a}
#topologyLab[data-tp-group="2"]{--tp-group-color:#429bd1}
#topologyLab[data-tp-group="3"]{--tp-group-color:#d69a36}
#topologyLab[data-tp-view=broadcast]{--tp-delivery-color:#429bd1}
#topologyLab[data-tp-view=multicast]{--tp-delivery-color:var(--tp-group-color)}
#topologyLab .tp-full-branch{fill:none;stroke:var(--tp-delivery-color);stroke-width:5.5px;stroke-linecap:round;pointer-events:none}
#topologyLab:is([data-tp-view=broadcast],[data-tp-view=unicast],[data-tp-view=multicast]) .tp-active .tp-medium-rail{opacity:0}
#topologyLab:is([data-tp-view=broadcast],[data-tp-view=unicast],[data-tp-view=multicast]) .tp-idle .tp-medium-rail{opacity:.3}
#topologyLab:is([data-tp-view=broadcast],[data-tp-view=unicast],[data-tp-view=multicast]) .tp-flow-0 rect{fill:var(--tp-delivery-color);stroke:var(--plot-surface)}
#topologyLab[data-tp-view=multicast] #tpGraph .tp-topology-device.tp-recipient .tp-simple-endpoint{fill:color-mix(in srgb,var(--tp-group-color) 35%,var(--panel));stroke:var(--tp-group-color)}
#topologyLab[data-tp-view=multicast] #tpGraphHint{display:flex;gap:8px;max-width:none;align-items:center}
#topologyLab .tp-group-choice{min-width:42px;min-height:34px;background:var(--control);color:var(--text);border:1px solid var(--control-border)}
#topologyLab .tp-group-choice.selected{background:color-mix(in srgb,var(--tp-group-color) 30%,var(--panel))!important;color:var(--text)!important;border:2px solid var(--tp-group-color)!important;box-shadow:0 0 0 1px var(--tp-group-color)}

#topologyLab .tp-presenter.tp-reserved{display:none}

#topologyLab:focus{outline:none}

#topologyLab #tpGraph .tp-phy-label{font:700 7.5px Consolas,monospace;fill:var(--text);pointer-events:none}
#topologyLab .tp-node-role>.tp-role-symbol{justify-self:center;margin:0 0 2px;max-width:100%}
#topologyLab .tp-role-symbol{overflow:visible;pointer-events:none}
.tp-role-symbol .tp-role-wire{fill:none;stroke:var(--muted);stroke-width:2;opacity:.6}
.tp-role-symbol .tp-role-machine{fill:var(--panel);stroke:var(--section-ink);stroke-width:2}
.tp-role-symbol .tp-role-paper{fill:none;stroke:var(--section-ink);stroke-width:1.5}
.tp-role-symbol .tp-role-selected{fill:none;stroke:var(--mint);stroke-width:3}
.tp-role-symbol .tp-role-led{fill:var(--mint)}
.tp-role-symbol .tp-role-block{fill:none;stroke:var(--amber);stroke-width:2}
.tp-role-symbol [data-role-packet]{fill:var(--purple);stroke:var(--panel);stroke-width:.6}
.tp-role-symbol [data-role-packet^=pass]{fill:var(--mint)}
.tp-role-symbol [data-role-packet=blocked]{fill:var(--amber)}
#topologyLab #tpGraph .tp-node-operation .tp-role-symbol{font-size:10px}
#topologyLab[data-tp-view=topology] .tp-content{grid-template-columns:272px minmax(0,1fr)}
#topologyLab .tp-av-context{display:grid;gap:12px;margin:14px 0}
#topologyLab .tp-av-context section{border-left:3px solid var(--section-ink);padding-left:9px}
#topologyLab .tp-av-context h3{font:650 17px/22px 'Segoe UI',sans-serif;color:var(--section-ink);margin:0 0 4px}
#topologyLab .tp-av-context p{font:400 15px/21px 'Segoe UI',sans-serif;margin:0;color:var(--text)}
#topologyLab .tp-av-context .tp-av-pros{border-color:var(--mint)}#topologyLab .tp-av-pros h3{color:var(--mint)}
#topologyLab .tp-av-context .tp-av-cons{border-color:var(--amber)}#topologyLab .tp-av-cons h3{color:var(--amber)}
#miniNote .tp-av-context{display:grid;grid-template-columns:1.25fr 1fr 1fr;gap:18px;margin:18px 0}
#miniNote .tp-av-context h3{margin:0 0 6px;color:var(--section-ink);font-size:18px}#miniNote .tp-av-context p{margin:0;font-size:17px;line-height:25px}
#miniNote .tp-av-notes>p{font-size:18px;line-height:27px;margin:14px 0}.tp-av-principle{padding:12px;border-left:3px solid var(--section-ink);background:var(--bg)}
.tp-av-sources{display:flex;flex-wrap:wrap;gap:10px 20px;font-size:15px}
@media(max-height:820px){#topologyLab[data-tp-view=topology] .tp-content{grid-template-columns:264px minmax(0,1fr)}#topologyLab .tp-av-context{gap:10px;margin:10px 0}#topologyLab .tp-av-context h3{font-size:16px;line-height:21px}#topologyLab .tp-av-context p{font-size:15px;line-height:20px}}
#topologyLab .tp-link[data-medium=mmf].tp-active .tp-medium-rail{stroke:#c67d29}
#topologyLab .tp-link[data-medium=smf].tp-active .tp-medium-rail{stroke:#ac9426}
#topologyLab .tp-link[data-medium=wifi] .tp-wifi-line{stroke:var(--section-ink);stroke-width:2px;stroke-dasharray:6 7}
#topologyLab .tp-wifi-symbol rect{fill:var(--bg);stroke:none}#topologyLab .tp-wifi-symbol path{fill:none;stroke:var(--section-ink);stroke-width:2px}#topologyLab .tp-wifi-symbol circle{fill:var(--section-ink)}
#topologyLab :is(#tpMediumA,#tpMediumB){width:120px;min-width:120px}
#miniNote:has(.tp-av-notes){width:min(1160px,calc(100vw - 48px));max-width:calc(100vw - 48px)}
#miniNote .tp-av-notes>p{font-size:17px;line-height:25px}

#topologyLab[data-tp-cuttable=false] .tp-link-hit{cursor:default}
