#nodePopup {
  position: fixed;
  border-radius: 10px;
  border: 1px solid #405080;
  box-shadow: 0 6px 24px rgba(0,0,0,0.24);
  z-index: 10000;
  transform: translateZ(0);
  width: 320px;
  max-width: 95vw;
  background: rgba(20,26,44,0.92);
  backdrop-filter: blur(6px);
}

.popup-body.compact {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 8px;
  padding: 8px;
}

.popup-col-left {
  display: grid;
  grid-template-rows: auto 1fr auto;
  align-items: start;
  gap: 6px;
}
.close-inline {
  background: none; border: none; color: inherit; font-size: 18px; cursor: pointer; padding: 0; margin-left: 4px;
}
.icon-fat-x {
  width: 56px; height: 56px; border-radius: 10px; border: 2px solid #ff4d4d; background: transparent; cursor: pointer;
  margin: 6px auto; position: relative;
}
.icon-fat-x::before, .icon-fat-x::after {
  content: ""; position: absolute; top: 50%; left: 50%; width: 36px; height: 4px; background: #ff4d4d; transform-origin: center;
}
.icon-fat-x::before { transform: translate(-50%, -50%) rotate(45deg); }
.icon-fat-x::after { transform: translate(-50%, -50%) rotate(-45deg); }

.icon-dup {
  width: 56px; height: 28px; border-radius: 8px; border: 2px dashed currentColor; background: transparent; cursor: pointer;
  margin: 0 auto 6px; position: relative;
}
.icon-dup::before, .icon-dup::after {
  content: ""; position: absolute; width: 10px; height: 10px; border: 2px solid currentColor; background: transparent;
}
.icon-dup::before { top: 7px; left: 10px; }
.icon-dup::after { top: 7px; left: 26px; }

.popup-col-right { display: grid; gap: 6px; padding-right: 6px; }

.field { position: relative; }
.field input[type="number"] {
  width: 100%; padding: 8px 10px; border-radius: 8px; border: 1px solid; outline: none; height: 34px;
  background: rgba(15,22,40,0.9);
  color: #eef4ff;
  border-color: #405080;
}
.ghost-label {
  position: absolute; right: 10px; top: 50%; transform: translateY(-50%); font-size: 11px; opacity: 0.65; pointer-events: none;
}

