/* The saved electrical graph remains authoritative: no added equipment or connections. */
html[data-embed=true] body{background:#031321}html[data-embed=true] #board{background:#031321;background-image:radial-gradient(#16456355 .8px,transparent .8px);background-size:24px 24px}
html[data-embed=true] .viewport-tools{background:linear-gradient(110deg,#052c43,#001828);border-bottom:1px solid #13769e;justify-content:flex-start;flex-wrap:wrap;padding:5px 7px;min-height:42px;gap:7px;box-shadow:inset 0 0 8px #17c5ff15}html[data-embed=true] .viewport-tools button{border:1px solid #1473ab;background:linear-gradient(140deg,#073758,#02182c);color:#d2efff;min-height:30px;font-size:10px;padding:5px 9px;border-radius:4px}html[data-embed=true] #fitDiagram{background:linear-gradient(120deg,#05825d,#005037);border-color:#1bdba3;color:white;box-shadow:inset 0 0 7px #3affb53d;order:-1}html[data-embed=true] .viewport-tools span{font-size:10px;color:#8cd0ea}
html[data-embed=true] .block{width:200px;height:100px;border-radius:7px;border-width:2px;padding:10px;box-shadow:0 0 7px #19cfff30,inset 0 0 14px #17baff10;font-family:'Arial Narrow','Segoe UI',sans-serif;background:linear-gradient(130deg,#063b55,#062638)!important}.block .block-type{font-size:9px}.block strong{white-space:normal;overflow-wrap:anywhere;line-height:1.2;font-size:16px}.block small{font-size:10px;line-height:1.2}.block .block-state{font-size:9px}.block .electrical-symbol{color:#9ddfff}.block.equipment-tdf,.block.equipment-tda{border-color:#f0af25;background:linear-gradient(130deg,#4c3714,#23190a)!important;box-shadow:0 0 7px #efb52d33,inset 0 0 10px #eebd1220}.block.equipment-tdf .electrical-symbol{color:#ffd265}.block.has-flow{box-shadow:0 0 7px #0be8aa20}.block.no-flow{border-color:#d95c6a}.edge{stroke:#1ee7f2;stroke-width:3;filter:drop-shadow(0 0 3px #1adff280)}.edge-glow{stroke:#14e4fa;stroke-width:10;stroke-opacity:.1}.edge-flow{stroke:#85fbff;stroke-width:3;filter:drop-shadow(0 0 2px #20dfff);stroke-dasharray:10 17}.edge.connection-off{stroke:#287a9c}.edge-flow.connection-off{display:none}
html[data-embed=true] #syncStatus{font-size:8px;padding:3px 7px;margin:0;line-height:1.3}html[data-embed=true] .maintenance-alert-bar{font-size:9px;min-height:0;padding:4px 8px}html[data-embed=true] .maintenance-alert-bar:empty{display:none}
@media(prefers-reduced-motion:reduce){.edge-flow{animation:none!important}}
.dmc-icon{display:inline-block;vertical-align:middle;width:20px;height:20px;color:#a4e6ff}html[data-embed=true] .viewport-tools .dmc-icon{width:19px;height:19px}.diagram-state-legend{display:flex;align-items:center;gap:17px;margin-left:8px}.diagram-state-legend span{display:flex;align-items:center;gap:5px;font-size:10px;color:#c3e5f4}.diagram-state-legend i{display:inline-block;width:13px;height:13px;border-radius:3px}.legend-normal{background:#17d873}.legend-alert{background:#f7bf2a}.legend-fault{background:#f44e59}.legend-unknown{background:#0d7eca}.diagram-state-legend span:last-child{display:flex!important}
@media(max-width:600px){.diagram-state-legend{gap:8px;margin:0}.diagram-state-legend span{font-size:9px}}

html[data-embed=true] .viewport-tools>span:not(#zoomLevel){display:none}
