/* IPvFull — lupa e visualizador da topologia real, sem criar uma segunda hero. */
.topology-preview{position:relative;isolation:isolate;overflow:hidden;border-radius:22px;background:#021b2a;box-shadow:0 18px 44px rgba(19,64,103,.085)}
.topology-preview-open{display:block;position:relative;width:100%;cursor:zoom-in;overflow:hidden;border-radius:inherit;line-height:0}
.topology-preview-open img{display:block;width:100%;height:auto;max-height:480px;object-fit:contain;background:#021b2a;border:0;border-radius:inherit;box-shadow:none}
.topology-preview-open:focus-visible{outline:3px solid #00bbff;outline-offset:-4px}
.topology-preview-tip{pointer-events:none;position:absolute;left:15px;bottom:14px;display:inline-flex;align-items:center;gap:9px;max-width:calc(100% - 30px);background:rgba(0,23,42,.88);border:1px solid rgba(130,225,250,.32);color:#f2fbff;border-radius:99px;padding:10px 14px;font:650 .73rem/1.35 Inter,Arial,sans-serif;box-shadow:0 7px 18px rgba(0,0,0,.24)}
.topology-preview-tip svg{display:block;width:18px;height:18px;min-width:18px;color:#44d9ff}
.topology-hint-touch{display:none}
.topology-lens{pointer-events:none;position:absolute;z-index:3;left:0;top:0;width:clamp(172px,13vw,224px);aspect-ratio:1;border:3px solid #fff;border-radius:50%;margin-left:calc(clamp(172px,13vw,224px) / -2);margin-top:calc(clamp(172px,13vw,224px) / -2);background-color:#021b2a;background-repeat:no-repeat;box-shadow:0 11px 38px rgba(0,9,28,.45),0 0 0 1px rgba(0,193,255,.6);opacity:0;visibility:hidden;transition:opacity .18s ease,visibility .18s ease;will-change:transform}
.topology-preview.is-lens-active .topology-lens{opacity:1;visibility:visible}
.topology-preview.is-lens-active .topology-preview-tip{opacity:0}
.topology-dialog{position:fixed;inset:0;margin:auto;padding:0;width:min(96vw,1640px);height:94vh;height:min(94dvh,1040px);max-width:none;max-height:none;overflow:hidden;border:1px solid rgba(96,196,251,.45);border-radius:16px;background:#001522;color:#fff;box-shadow:0 22px 90px rgba(0,5,17,.65)}
.topology-dialog::backdrop{background:rgba(0,11,24,.92);backdrop-filter:blur(8px)}
.topology-dialog-layout{display:flex;flex-direction:column;min-height:0;width:100%;height:100%}
.topology-dialog-toolbar{display:flex;justify-content:space-between;align-items:center;gap:15px;padding:15px 18px;border-bottom:1px solid rgba(115,194,240,.23);background:#062239}
.topology-dialog-heading{display:flex;flex-direction:column;gap:3px;min-width:0}
.topology-dialog-heading strong{font-size:.96rem;line-height:1.3;font-weight:750}
.topology-dialog-heading span{font-size:.72rem;line-height:1.45;color:#b1cfe1}
.topology-dialog-actions{display:flex;align-items:center;gap:8px;flex:none}
.topology-dialog-actions button{min-height:40px;min-width:40px;display:inline-flex;align-items:center;justify-content:center;padding:7px 13px;color:#e9f9ff;background:#0c3959;border:1px solid #2b6284;border-radius:8px;font-size:1.12rem;line-height:1.2;transition:background .2s}
.topology-dialog-actions button:hover{background:#14547d}
.topology-dialog-actions button:focus-visible{outline:2px solid #21bffd;outline-offset:2px}
.topology-dialog-actions output{min-width:47px;text-align:center;font-size:.82rem;font-weight:750;color:#f3fbff;font-variant-numeric:tabular-nums}
.topology-dialog-actions .topology-dialog-reset,.topology-dialog-actions .topology-dialog-close{font-size:.78rem;font-weight:750}
.topology-dialog-actions .topology-dialog-close{background:#0964a9;border-color:#0b8ccd;gap:9px}
.topology-dialog-actions .topology-dialog-close span{font-size:1.45rem;line-height:1}
.topology-dialog-viewport{position:relative;flex:1;min-height:0;overflow:hidden;cursor:grab;touch-action:none;overscroll-behavior:contain;background:linear-gradient(135deg,#00111e,#001f30)}
.topology-dialog-viewport.is-dragging{cursor:grabbing}
.topology-dialog-image{display:block;position:absolute;inset:0;width:100%;height:100%;object-fit:contain;transform-origin:center center;user-select:none;-webkit-user-select:none;pointer-events:none}
.topology-dialog-help{margin:0;padding:9px 16px;text-align:center;color:#a8c4d6;font-size:.73rem;line-height:1.3;border-top:1px solid rgba(115,194,240,.18);background:#062239}
body.topology-dialog-open{overflow:hidden}
@media(hover:none),(pointer:coarse){
 .topology-lens{display:none}
 .topology-hint-desktop{display:none}
 .topology-hint-touch{display:inline}
 .topology-preview-tip{left:10px;bottom:10px;padding:8px 10px;font-size:.67rem}
}
@media(max-width:760px){
 .topology-preview,.topology-preview-open{border-radius:18px}
 .topology-preview-open img{max-height:420px;border-radius:18px}
 .topology-dialog{width:100vw;height:100vh;height:100dvh;border:0;border-radius:0}
 .topology-dialog-toolbar{align-items:flex-start;flex-direction:column;padding:10px 13px;gap:9px}
 .topology-dialog-heading span{display:none}
 .topology-dialog-actions{width:100%;gap:6px}
 .topology-dialog-actions button{min-height:39px;min-width:39px;padding:7px 10px}
 .topology-dialog-actions .topology-dialog-reset{margin-left:auto}
 .topology-dialog-actions output{min-width:44px}
 .topology-dialog-help{font-size:.7rem}
}
@media(max-width:360px){
 .topology-dialog-actions .topology-dialog-close{font-size:0;padding:7px 9px}
 .topology-dialog-actions .topology-dialog-close span{font-size:1.5rem}
}
@media(prefers-reduced-motion:reduce){.topology-lens,.topology-dialog-actions button{transition:none!important}}
