.ops-shell {
  display: grid;
  gap: 1rem;
}

.ops-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.8rem;
  flex-wrap: wrap;
  padding: 1.25rem 1.5rem;
  margin-bottom: 0;
}

.ops-header h1 { margin: 0; font-size: 1.55rem; }

.topology-card {
  position: relative;
  border-radius: 14px;
  border: 1px solid rgba(0, 229, 255, 0.25);
  background: radial-gradient(circle at 50% 20%, rgba(0, 229, 255, 0.08), rgba(8, 15, 29, 0.95));
  overflow: hidden;
  padding: 0.5rem;
}

.topology-canvas {
  width: 100%;
  min-height: 560px;
  display: block;
}

.ops-layer-line {
  stroke: rgba(148, 163, 184, 0.12);
  stroke-width: 1;
  stroke-dasharray: 6 8;
}

.ops-layer-label {
  fill: #64748b;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
}

.topology-line {
  stroke: rgba(59, 130, 246, 0.35);
  stroke-width: 2;
}

.pulse-line {
  stroke: rgba(0, 229, 255, 0.95);
  stroke-width: 2.5;
  stroke-dasharray: 8 16;
  animation: ops-line-pulse 1.6s linear infinite;
  filter: drop-shadow(0 0 6px rgba(0, 229, 255, 0.8));
}

.ops-node-circle {
  fill: #0f172a;
  stroke-width: 2.5;
}

.ops-node-title {
  fill: #e2e8f0;
  font-size: 11px;
  font-weight: 700;
  text-anchor: middle;
}

.ops-node-sub {
  fill: #94a3b8;
  font-size: 9px;
  text-anchor: middle;
  letter-spacing: 0.06em;
}

.ops-node-agent {
  fill: #ffd700;
  font-size: 9px;
  text-anchor: middle;
  font-weight: 600;
}

.ops-node-role {
  fill: #64748b;
  font-size: 8px;
  text-anchor: middle;
}

.node-proxmox .ops-node-circle {
  stroke: #f59e0b;
  filter: drop-shadow(0 0 12px rgba(245, 158, 11, 0.55));
}

.node-vm .ops-node-circle {
  stroke: #38bdf8;
  filter: drop-shadow(0 0 10px rgba(56, 189, 248, 0.45));
}

.node-service .ops-node-circle {
  stroke: #22c55e;
}

.status-online .ops-node-circle { stroke: #22c55e; }
.status-offline .ops-node-circle { stroke: #ef4444; filter: drop-shadow(0 0 10px rgba(239, 68, 68, 0.5)); }
.status-degraded .ops-node-circle { stroke: #f59e0b; }

.ops-monitor-box {
  fill: rgba(13, 18, 25, 0.92);
  stroke: rgba(0, 229, 255, 0.35);
  stroke-width: 1.5;
}

.ops-monitor.status-healthy .ops-monitor-box { stroke: #22c55e; }
.ops-monitor.status-warn .ops-monitor-box { stroke: #f59e0b; }
.ops-monitor.status-idle .ops-monitor-box { stroke: #38bdf8; }
.ops-monitor.status-offline .ops-monitor-box { stroke: #64748b; }

.ops-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 0.5rem 0.75rem;
  font-size: 0.78rem;
  color: #94a3b8;
}

.ops-legend .dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 0.35rem;
}

.dot-online { background: #22c55e; box-shadow: 0 0 6px #22c55e; }
.dot-offline { background: #ef4444; }
.dot-degraded { background: #f59e0b; }

.ops-meta {
  color: #8ba3c4;
  font-size: 0.85rem;
}

.ops-panels-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
@media (max-width: 900px) { .ops-panels-grid { grid-template-columns: 1fr; } }

.ops-side-panel h2 { margin: 0 0 0.35rem; font-size: 1rem; }
.ops-maint-list { display: grid; gap: 0.5rem; max-height: 220px; overflow-y: auto; margin-top: 0.5rem; }
.ops-maint-item {
  border: 1px solid rgba(148,163,184,0.15); border-radius: 10px; padding: 0.55rem 0.65rem;
  background: rgba(0,0,0,0.2); font-size: 0.82rem;
}
.ops-maint-item strong { display: block; color: #e2e8f0; }
.ops-maint-item small { color: #64748b; font-size: 0.72rem; }
.ops-maint-item p { margin: 0.25rem 0 0; color: #94a3b8; font-size: 0.78rem; }
.ops-maint-item.sev-critical { border-color: rgba(239,68,68,0.45); }
.ops-maint-item.sev-warning { border-color: rgba(245,158,11,0.4); }
.ops-maint-item.sev-info { border-color: rgba(56,189,248,0.25); }

.ops-hardware-box {
  fill: rgba(13, 18, 25, 0.95);
  stroke: rgba(245, 158, 11, 0.55);
  stroke-width: 2;
  filter: drop-shadow(0 0 14px rgba(245, 158, 11, 0.25));
}
.ops-hardware-slot { fill: rgba(30, 41, 59, 0.9); stroke: rgba(148,163,184,0.2); }
.node-hardware.status-online .ops-hardware-box { stroke: #22c55e; }
.ops-title-left { text-anchor: start; }

.topology-canvas a { cursor: pointer; }
.topology-canvas a:hover .ops-node-circle { stroke-width: 3.5; }

@keyframes ops-line-pulse {
  from { stroke-dashoffset: 24; }
  to { stroke-dashoffset: 0; }
}
