/* Keep the original network-map identity; remove the screen texture. */
body.scan #stage::after, #boot .scan { content:none !important; display:none !important; }
#backlink { font-family:var(--ui); font-size:12px; color:var(--cy); border:1px solid var(--line2); padding:7px 10px; border-radius:4px; text-decoration:none; }
#demo-ribbon { font:11px/16px var(--ui); letter-spacing:0; z-index:38; pointer-events:none; }
body.demo:not(.embed) #stage { top:calc(var(--hud-h) + 20px); }
:focus-visible { outline:2px solid var(--cy); outline-offset:3px; }

/* The original toolbar stays usable inside the portfolio frame and on phones. */
#hud { height:auto; min-height:52px; flex-wrap:wrap; padding-block:8px; }
#hud .brand, #hud .seg, #hud > .chip { flex-shrink:0; }
#search { flex:1 1 180px; min-width:180px; }
#hud .sp { display:none; }
#hud .seg { max-width:100%; }
body.portfolio #backlink { display:none; }
#hud .brand .ed, .pill { border-radius:4px; }
@media (max-width:700px) {
  #hud { min-height:42px; }
  #search { flex-basis:130px; min-width:130px; }
  #hud .seg { order:5; }
  #hud .brand { flex:1; }
  #backlink { order:0; }
}
@media (prefers-reduced-motion:reduce) {
  #map *, #rail button, #exitZone::before, #vlanhint, #brief *, #subwin .win { animation:none !important; transition:none !important; }
}
